Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009957/0.0009958, allocations: 113.4 kB / 17.73 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 176.2 kB / 18.66 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.271/1.271, allocations: 205.1 MB / 224.5 MB, free: 12.22 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 55.92 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07998/0.08119, allocations: 46.62 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003791/0.08503, allocations: 2.232 MB / 376.9 MB, free: 2.844 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001712/0.08677, allocations: 0.9516 MB / 377.8 MB, free: 1.883 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002355/0.08703, allocations: 7.938 kB / 377.8 MB, free: 1.875 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004228/0.08749, allocations: 95.55 kB / 377.9 MB, free: 1.781 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004133/0.08791, allocations: 123.2 kB / 378 MB, free: 1.66 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004841/0.08841, allocations: 131.6 kB / 378.2 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004043/0.08883, allocations: 282.8 kB / 378.4 MB, free: 1.254 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000224/0.08906, allocations: 92.56 kB / 378.5 MB, free: 1.164 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000199/0.08927, allocations: 115.6 kB / 378.6 MB, free: 1.051 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001937/0.08947, allocations: 119.5 kB / 378.8 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.547e-05/0.08952, allocations: 20 kB / 378.8 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001406/0.08967, allocations: 47.94 kB / 378.8 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.09e-05/0.08976, allocations: 63.75 kB / 378.9 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000126/0.08989, allocations: 119.3 kB / 379 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003574/0.09025, allocations: 283.4 kB / 379.3 MB, free: 420 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.09027, allocations: 4 kB / 379.3 MB, free: 416 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.09028, allocations: 0 / 379.3 MB, free: 416 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.024e-05/0.09029, allocations: 0 / 379.3 MB, free: 416 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.1696/0.2599, allocations: 0.5353 MB / 379.8 MB, free: 13.02 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.2599, allocations: 9.625 kB / 379.8 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.594e-05/0.26, allocations: 56.03 kB / 379.9 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001547/0.2602, allocations: 29.14 kB / 379.9 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003378/0.2605, allocations: 251 kB / 380.2 MB, free: 12.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.825e-05/0.2605, allocations: 12.06 kB / 380.2 MB, free: 12.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.675e-05/0.2606, allocations: 18.25 kB / 380.2 MB, free: 12.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003171/0.2609, allocations: 168.7 kB / 380.3 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.2609, allocations: 4.906 kB / 380.4 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.971e-05/0.261, allocations: 4.625 kB / 380.4 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.261, allocations: 4.453 kB / 380.4 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002378/0.2612, allocations: 117.4 kB / 380.5 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007593/0.262, allocations: 0.5641 MB / 381 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002596/0.2622, allocations: 160.5 kB / 381.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001319/0.2624, allocations: 91.12 kB / 381.3 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.655e-05/0.2624, allocations: 6.688 kB / 381.3 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001918/0.2626, allocations: 117.2 kB / 381.4 MB, free: 12.33 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.413e-06/0.2626, allocations: 0 / 381.4 MB, free: 12.33 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004345/0.2631, allocations: 225.8 kB / 381.6 MB, free: 12.29 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.726e-05/0.2631, allocations: 53.94 kB / 381.7 MB, free: 12.22 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002418/0.2634, allocations: 255.1 kB / 381.9 MB, free: 12.12 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.2634, allocations: 30.03 kB / 382 MB, free: 12.09 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.343e-05/0.2635, allocations: 147.3 kB / 382.1 MB, free: 11.98 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.665e-05/0.2635, allocations: 72.36 kB / 382.2 MB, free: 11.93 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.497e-05/0.2636, allocations: 40.09 kB / 382.2 MB, free: 11.9 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.012e-05/0.2636, allocations: 340 kB / 382.5 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001052/0.2637, allocations: 49.19 kB / 382.6 MB, free: 11.55 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001312/0.2639, allocations: 94.47 kB / 382.7 MB, free: 11.5 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002146/0.2641, allocations: 148.3 kB / 382.8 MB, free: 11.42 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2641, allocations: 3.781 kB / 382.8 MB, free: 11.42 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003661/0.2645, allocations: 206.2 kB / 383 MB, free: 11.32 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.2645, allocations: 6.031 kB / 383 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.2645, allocations: 2.109 kB / 383 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.2645, allocations: 6.141 kB / 383 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002327/0.2648, allocations: 46.16 kB / 383.1 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.2648, allocations: 4.5 kB / 383.1 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.237e-05/0.2649, allocations: 21.08 kB / 383.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.377e-05/0.2649, allocations: 16.84 kB / 383.1 MB, free: 11.29 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.lossTable.nextTimeEvent,$whenCondition1,lossTable.nextTimeEventScaled,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.634e-05/0.265, allocations: 145.2 kB / 383.3 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.225e-05/0.265, allocations: 23.5 kB / 383.3 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.371e-05/0.2651, allocations: 33.77 kB / 383.3 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.2651, allocations: 2.656 kB / 383.3 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.2651, allocations: 0 / 383.3 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.2651, allocations: 2.609 kB / 383.3 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002133/0.2654, allocations: 284.2 kB / 383.6 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.2654, allocations: 3.656 kB / 383.6 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001779/0.2656, allocations: 37.33 kB / 383.7 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.2656, allocations: 3.219 kB / 383.7 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.607e-05/0.2656, allocations: 1.969 kB / 383.7 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.2656, allocations: 1.766 kB / 383.7 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.2656, allocations: 3.938 kB / 383.7 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000406/0.266, allocations: 288 kB / 383.9 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.545e-05/0.2661, allocations: 100 kB / 384 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.305e-05/0.2661, allocations: 5.812 kB / 384.1 MB, free: 10.61 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.657e-05/0.2662, allocations: 7.062 kB / 384.1 MB, free: 10.61 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.645e-05/0.2662, allocations: 15.66 kB / 384.1 MB, free: 10.61 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.71e-05/0.2662, allocations: 5.859 kB / 384.1 MB, free: 10.61 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001329/0.2664, allocations: 187.7 kB / 384.3 MB, free: 10.5 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2664, allocations: 4.062 kB / 384.3 MB, free: 10.5 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002514/0.2666, allocations: 59.91 kB / 384.3 MB, free: 10.48 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (winding.T,core.T) * Number of discrete variables: 3 ($whenCondition1,lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of discrete states: 2 (lossTable.nextTimeEventScaled,lossTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001261/0.2679, allocations: 1.115 MB / 385.4 MB, free: 9.59 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002805/0.2682, allocations: 146.6 kB / 385.6 MB, free: 9.543 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2682, allocations: 3.938 kB / 385.6 MB, free: 9.539 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001206/0.2683, allocations: 74.91 kB / 385.7 MB, free: 9.516 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003177/0.2687, allocations: 50.58 kB / 385.7 MB, free: 9.488 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002284/0.271, allocations: 2.37 MB / 388.1 MB, free: 7.832 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001688/0.2711, allocations: 0.7505 MB / 388.8 MB, free: 7.129 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001055/0.2713, allocations: 33.69 kB / 388.9 MB, free: 7.121 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.341e-05/0.2714, allocations: 68.7 kB / 388.9 MB, free: 7.074 MB / 318.1 MB Notification: Performance of SimCode: time 9.92e-07/0.2714, allocations: 0 / 388.9 MB, free: 7.074 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02648/0.2978, allocations: 5.358 MB / 394.3 MB, free: 6.074 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.678/7.976, allocations: 14.11 kB / 394.3 MB, free: 6.062 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches