Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1440000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor") translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1440000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008751/0.0008753, allocations: 178.6 kB / 17.36 MB, free: 4.324 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.6/1.6, allocations: 205.6 MB / 223.7 MB, free: 8.961 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007498/0.0007497, allocations: 93.62 kB / 272.1 MB, free: 8.137 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002564/0.0002565, allocations: 12 kB / 329 MB, free: 15.09 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2406/0.2409, allocations: 47.57 MB / 376.6 MB, free: 45.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.00243/0.2434, allocations: 1.862 MB / 378.5 MB, free: 44.12 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001438/0.2448, allocations: 1.061 MB / 379.5 MB, free: 43.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001256/0.245, allocations: 3.906 kB / 379.5 MB, free: 43.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003638/0.2453, allocations: 84.28 kB / 379.6 MB, free: 43.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002764/0.2456, allocations: 110.7 kB / 379.7 MB, free: 43.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003194/0.246, allocations: 115.4 kB / 379.8 MB, free: 43.01 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002843/0.2463, allocations: 271.2 kB / 380.1 MB, free: 42.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001974/0.2465, allocations: 84.38 kB / 380.2 MB, free: 42.81 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001324/0.2466, allocations: 95.39 kB / 380.3 MB, free: 42.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001496/0.2468, allocations: 113.1 kB / 380.4 MB, free: 42.7 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.73e-05/0.2468, allocations: 12.97 kB / 380.4 MB, free: 42.7 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001207/0.2469, allocations: 35.27 kB / 380.4 MB, free: 42.69 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.195e-05/0.247, allocations: 45.33 kB / 380.5 MB, free: 42.66 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001082/0.2471, allocations: 129.8 kB / 380.6 MB, free: 42.56 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002889/0.2474, allocations: 273.8 kB / 380.9 MB, free: 42.38 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.2474, allocations: 4.984 kB / 380.9 MB, free: 42.37 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2474, allocations: 0 / 380.9 MB, free: 42.37 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.2475, allocations: 0 / 380.9 MB, free: 42.37 MB / 298.7 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.0007079/0.2482, allocations: 0.5008 MB / 381.4 MB, free: 41.89 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.2482, allocations: 8.969 kB / 381.4 MB, free: 41.89 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001475/0.2484, allocations: 32.69 kB / 381.4 MB, free: 41.88 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002416/0.2486, allocations: 246.8 kB / 381.6 MB, free: 41.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.148e-05/0.2487, allocations: 11.06 kB / 381.7 MB, free: 41.61 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.288e-05/0.2487, allocations: 23.83 kB / 381.7 MB, free: 41.6 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003141/0.249, allocations: 165.3 kB / 381.8 MB, free: 41.49 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.2491, allocations: 11.88 kB / 381.9 MB, free: 41.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.061e-05/0.2491, allocations: 5.406 kB / 381.9 MB, free: 41.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.2491, allocations: 4.031 kB / 381.9 MB, free: 41.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002418/0.2493, allocations: 118 kB / 382 MB, free: 41.42 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008147/0.2502, allocations: 0.5611 MB / 382.5 MB, free: 40.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000315/0.2505, allocations: 164.7 kB / 382.7 MB, free: 40.84 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001579/0.2507, allocations: 84.2 kB / 382.8 MB, free: 40.8 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.826e-05/0.2507, allocations: 6.375 kB / 382.8 MB, free: 40.8 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002905/0.251, allocations: 119.2 kB / 382.9 MB, free: 40.7 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 2.495e-06/0.251, allocations: 0 / 382.9 MB, free: 40.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.0005275/0.2516, allocations: 230 kB / 383.1 MB, free: 40.58 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.285e-05/0.2516, allocations: 57.77 kB / 383.2 MB, free: 40.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00029/0.2519, allocations: 249.6 kB / 383.4 MB, free: 40.35 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.237e-05/0.2519, allocations: 31.11 kB / 383.5 MB, free: 40.31 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.641e-05/0.252, allocations: 143.3 kB / 383.6 MB, free: 40.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.258e-05/0.2521, allocations: 63.25 kB / 383.7 MB, free: 40.12 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.072e-05/0.2521, allocations: 9.469 kB / 383.7 MB, free: 40.12 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.2522, allocations: 336.1 kB / 384 MB, free: 39.79 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001176/0.2523, allocations: 50.81 kB / 384 MB, free: 39.76 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001438/0.2525, allocations: 86.5 kB / 384.1 MB, free: 39.7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002658/0.2528, allocations: 147.7 kB / 384.3 MB, free: 39.61 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.2528, allocations: 1.688 kB / 384.3 MB, free: 39.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003631/0.2532, allocations: 201.2 kB / 384.5 MB, free: 39.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/0.2532, allocations: 9.312 kB / 384.5 MB, free: 39.49 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.2532, allocations: 0.9375 kB / 384.5 MB, free: 39.49 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.2532, allocations: 2.156 kB / 384.5 MB, free: 39.49 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002252/0.2535, allocations: 40.39 kB / 384.5 MB, free: 39.49 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.2535, allocations: 6.781 kB / 384.5 MB, free: 39.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001188/0.2536, allocations: 31.45 kB / 384.6 MB, free: 39.46 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.588e-05/0.2536, allocations: 10.31 kB / 384.6 MB, free: 39.46 MB / 298.7 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 ($whenCondition1,$PRE.lossTable.nextTimeEvent,lossTable.nextTimeEvent,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEventScaled) * 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.0001809/0.2538, allocations: 160 kB / 384.7 MB, free: 39.31 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.039e-05/0.2538, allocations: 18.06 kB / 384.7 MB, free: 39.3 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.784e-05/0.2539, allocations: 33.36 kB / 384.8 MB, free: 39.28 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.2539, allocations: 2.031 kB / 384.8 MB, free: 39.28 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.2539, allocations: 3.938 kB / 384.8 MB, free: 39.27 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.254, allocations: 5.156 kB / 384.8 MB, free: 39.27 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002368/0.2542, allocations: 281.9 kB / 385.1 MB, free: 39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2542, allocations: 0 / 385.1 MB, free: 39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001902/0.2544, allocations: 36.95 kB / 385.1 MB, free: 38.99 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.2544, allocations: 1.031 kB / 385.1 MB, free: 38.99 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.2544, allocations: 9.078 kB / 385.1 MB, free: 38.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.2544, allocations: 1.219 kB / 385.1 MB, free: 38.98 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.2545, allocations: 8.938 kB / 385.1 MB, free: 38.97 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004839/0.2549, allocations: 281.5 kB / 385.4 MB, free: 38.8 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.432e-05/0.255, allocations: 102.4 kB / 385.5 MB, free: 38.69 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.554e-05/0.2551, allocations: 6.875 kB / 385.5 MB, free: 38.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.541e-05/0.2551, allocations: 11.84 kB / 385.5 MB, free: 38.68 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.198e-05/0.2552, allocations: 14.48 kB / 385.5 MB, free: 38.67 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.213e-05/0.2552, allocations: 9.078 kB / 385.5 MB, free: 38.66 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001549/0.2554, allocations: 184.4 kB / 385.7 MB, free: 38.54 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2554, allocations: 0 / 385.7 MB, free: 38.54 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000262/0.2557, allocations: 63.78 kB / 385.8 MB, free: 38.52 MB / 298.7 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.0008975/0.2566, allocations: 472 kB / 386.2 MB, free: 38.21 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003524/0.2569, allocations: 146.8 kB / 386.4 MB, free: 38.15 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.2569, allocations: 0 / 386.4 MB, free: 38.15 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001509/0.2571, allocations: 78.64 kB / 386.5 MB, free: 38.12 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003412/0.2575, allocations: 49.7 kB / 386.5 MB, free: 38.09 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009726/0.2584, allocations: 0.6541 MB / 387.2 MB, free: 37.59 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000198/0.2587, allocations: 0.7496 MB / 387.9 MB, free: 36.86 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001068/0.2588, allocations: 29.94 kB / 387.9 MB, free: 36.83 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.214e-05/0.2588, allocations: 23.42 kB / 388 MB, free: 36.81 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.2588, allocations: 3.938 kB / 388 MB, free: 36.8 MB / 298.7 MB Notification: Performance of Templates: time 0.005401/0.2642, allocations: 2.517 MB / 390.5 MB, free: 34.29 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (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 & ./Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","../files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches