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.001151/0.001151, allocations: 113.2 kB / 17.73 MB, free: 5.324 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.001119/0.001119, allocations: 188.2 kB / 18.67 MB, free: 4.391 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.361/1.361, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.00121/0.00121, allocations: 55.91 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08476/0.08597, allocations: 46.61 MB / 374.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003538/0.08956, allocations: 2.224 MB / 376.8 MB, free: 2.855 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001609/0.0912, allocations: 0.971 MB / 377.8 MB, free: 1.875 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001537/0.09141, allocations: 7.938 kB / 377.8 MB, free: 1.867 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003593/0.09178, allocations: 91.56 kB / 377.9 MB, free: 1.777 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003507/0.09214, allocations: 123.2 kB / 378 MB, free: 1.656 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000352/0.09251, allocations: 123.7 kB / 378.2 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003349/0.09285, allocations: 290.8 kB / 378.4 MB, free: 1.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001958/0.09306, allocations: 92.56 kB / 378.5 MB, free: 1.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001726/0.09324, allocations: 107.6 kB / 378.6 MB, free: 1.055 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000188/0.09343, allocations: 123.5 kB / 378.8 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.603e-05/0.09348, allocations: 16 kB / 378.8 MB, free: 0.918 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001317/0.09361, allocations: 55.91 kB / 378.8 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.024e-05/0.09371, allocations: 55.83 kB / 378.9 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001215/0.09384, allocations: 119.3 kB / 379 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003575/0.09421, allocations: 286.8 kB / 379.3 MB, free: 420 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.09422, allocations: 0 / 379.3 MB, free: 420 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.09423, allocations: 0 / 379.3 MB, free: 420 kB / 318.1 MB Notification: Performance of Transformations before backend: time 7.194e-06/0.09424, allocations: 0 / 379.3 MB, free: 420 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.1679/0.2621, allocations: 0.5486 MB / 379.8 MB, free: 13 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.2622, allocations: 10.53 kB / 379.8 MB, free: 13 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.822e-05/0.2622, allocations: 52.61 kB / 379.9 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001757/0.2624, allocations: 29.94 kB / 379.9 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002957/0.2627, allocations: 252.5 kB / 380.2 MB, free: 12.74 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.877e-05/0.2628, allocations: 16.16 kB / 380.2 MB, free: 12.74 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.562e-05/0.2628, allocations: 17.75 kB / 380.2 MB, free: 12.74 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003098/0.2631, allocations: 167.4 kB / 380.4 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.2631, allocations: 5.781 kB / 380.4 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.821e-05/0.2632, allocations: 8.875 kB / 380.4 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.2632, allocations: 3.969 kB / 380.4 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002253/0.2634, allocations: 112.5 kB / 380.5 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007513/0.2642, allocations: 0.5575 MB / 381 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002864/0.2645, allocations: 171.1 kB / 381.2 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001433/0.2646, allocations: 84.27 kB / 381.3 MB, free: 12.37 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.574e-05/0.2646, allocations: 6.281 kB / 381.3 MB, free: 12.37 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002086/0.2649, allocations: 120.7 kB / 381.4 MB, free: 12.32 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.492e-06/0.2649, allocations: 0 / 381.4 MB, free: 12.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004601/0.2653, allocations: 235.2 kB / 381.7 MB, free: 12.27 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.654e-05/0.2654, allocations: 54.72 kB / 381.7 MB, free: 12.21 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002308/0.2656, allocations: 257.2 kB / 382 MB, free: 12.11 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.2656, allocations: 31.64 kB / 382 MB, free: 12.07 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.977e-05/0.2657, allocations: 144.6 kB / 382.1 MB, free: 11.96 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.903e-05/0.2658, allocations: 70.28 kB / 382.2 MB, free: 11.91 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.768e-05/0.2658, allocations: 44.52 kB / 382.2 MB, free: 11.88 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.346e-05/0.2659, allocations: 336.1 kB / 382.6 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001149/0.266, allocations: 53.91 kB / 382.6 MB, free: 11.54 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001401/0.2662, allocations: 94.81 kB / 382.7 MB, free: 11.48 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002513/0.2664, allocations: 145.9 kB / 382.9 MB, free: 11.4 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.2664, allocations: 3.469 kB / 382.9 MB, free: 11.4 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003842/0.2668, allocations: 202.1 kB / 383.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.2669, allocations: 5.438 kB / 383.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.363e-06/0.2669, allocations: 2.688 kB / 383.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.2669, allocations: 2.812 kB / 383.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002335/0.2671, allocations: 54.2 kB / 383.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.2672, allocations: 3.047 kB / 383.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.961e-05/0.2673, allocations: 17.14 kB / 383.1 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.449e-05/0.2673, allocations: 9.938 kB / 383.1 MB, free: 11.28 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 0.0001002/0.2674, allocations: 152.7 kB / 383.3 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.43e-05/0.2674, allocations: 22.23 kB / 383.3 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.055e-05/0.2675, allocations: 32 kB / 383.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.2675, allocations: 6.922 kB / 383.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.2675, allocations: 0 / 383.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.471e-06/0.2675, allocations: 2.281 kB / 383.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002287/0.2678, allocations: 292.4 kB / 383.6 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.2678, allocations: 0 / 383.6 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001774/0.2679, allocations: 33 kB / 383.7 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.268, allocations: 5.625 kB / 383.7 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.664e-05/0.268, allocations: 10.05 kB / 383.7 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.268, allocations: 1.25 kB / 383.7 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.268, allocations: 1.5 kB / 383.7 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004369/0.2684, allocations: 279.4 kB / 384 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.475e-05/0.2685, allocations: 103.2 kB / 384.1 MB, free: 10.6 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.441e-05/0.2685, allocations: 1.891 kB / 384.1 MB, free: 10.6 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.816e-05/0.2686, allocations: 7.688 kB / 384.1 MB, free: 10.6 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.076e-05/0.2687, allocations: 16.66 kB / 384.1 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.878e-05/0.2687, allocations: 9.438 kB / 384.1 MB, free: 10.59 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001445/0.2688, allocations: 186.5 kB / 384.3 MB, free: 10.48 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2688, allocations: 5.312 kB / 384.3 MB, free: 10.48 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002622/0.2691, allocations: 56.33 kB / 384.3 MB, free: 10.47 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.001334/0.2705, allocations: 1.121 MB / 385.5 MB, free: 9.57 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002906/0.2708, allocations: 152.1 kB / 385.6 MB, free: 9.52 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2708, allocations: 0 / 385.6 MB, free: 9.52 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000124/0.2709, allocations: 81.3 kB / 385.7 MB, free: 9.488 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003272/0.2712, allocations: 47.97 kB / 385.7 MB, free: 9.461 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002356/0.2736, allocations: 2.375 MB / 388.1 MB, free: 7.797 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001922/0.2738, allocations: 0.7464 MB / 388.9 MB, free: 7.098 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001149/0.2739, allocations: 32.61 kB / 388.9 MB, free: 7.09 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.925e-05/0.274, allocations: 71.98 kB / 389 MB, free: 7.039 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.274, allocations: 0 / 389 MB, free: 7.039 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02673/0.3008, allocations: 5.283 MB / 394.3 MB, free: 6.047 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.803/8.104, allocations: 13.14 kB / 394.3 MB, free: 6.035 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 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.csv","/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) "Warning: Resultfile and Reference have different end time points! Reffile[1440025]=7200.000000 File[98317]=1024.060000 " Variables in the reference:time,core.T,winding.T Variables in the result:time,core.T,winding.T