Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1440000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001391/0.001391, allocations: 101 kB / 17.59 MB, free: 5.422 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.001497/0.001497, allocations: 191.3 kB / 18.51 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001592/0.001593, allocations: 46.36 kB / 301.3 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1125, allocations: 49.45 MB / 350.7 MB, free: 4.438 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003545/0.1161, allocations: 2.228 MB / 353 MB, free: 2.188 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002034/0.1181, allocations: 1.083 MB / 354 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001257/0.1183, allocations: 4 kB / 354 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003507/0.1187, allocations: 91.5 kB / 354.1 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000327/0.119, allocations: 127.2 kB / 354.3 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004224/0.1194, allocations: 154.9 kB / 354.4 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003065/0.1198, allocations: 286.8 kB / 354.7 MB, free: 460 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002002/0.12, allocations: 80.58 kB / 354.8 MB, free: 368 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001436/0.1201, allocations: 107.6 kB / 354.9 MB, free: 260 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001884/0.1203, allocations: 123.5 kB / 355 MB, free: 136 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.688e-05/0.1204, allocations: 20 kB / 355 MB, free: 116 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001589/0.1205, allocations: 55.91 kB / 355.1 MB, free: 60 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.473e-05/0.1206, allocations: 55.83 kB / 355.1 MB, free: 4 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001619/0.1208, allocations: 119.5 kB / 355.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004288/0.1212, allocations: 279.2 kB / 355.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.1213, allocations: 3.984 kB / 355.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1213, allocations: 0 / 355.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.012e-06/0.1213, allocations: 0 / 355.5 MB, free: 15.61 MB / 302.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.0007878/0.1221, allocations: 0.542 MB / 356.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.1221, allocations: 8.031 kB / 356.1 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001619/0.1223, allocations: 32.56 kB / 356.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002805/0.1226, allocations: 256.7 kB / 356.3 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.628e-05/0.1226, allocations: 8.375 kB / 356.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.296e-05/0.1227, allocations: 24.11 kB / 356.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003051/0.123, allocations: 165.2 kB / 356.5 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.057e-05/0.123, allocations: 7.984 kB / 356.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.756e-05/0.123, allocations: 7.938 kB / 356.6 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.123, allocations: 4 kB / 356.6 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002401/0.1233, allocations: 119.9 kB / 356.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007825/0.1241, allocations: 0.5661 MB / 357.2 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003102/0.1244, allocations: 162.5 kB / 357.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001532/0.1246, allocations: 84.83 kB / 357.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.325e-05/0.1246, allocations: 8 kB / 357.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003083/0.1249, allocations: 119.3 kB / 357.6 MB, free: 13.35 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.503e-06/0.1249, allocations: 0 / 357.6 MB, free: 13.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004848/0.1254, allocations: 232.6 kB / 357.8 MB, free: 13.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.481e-05/0.1255, allocations: 55.41 kB / 357.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002468/0.1257, allocations: 249 kB / 358.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.087e-05/0.1258, allocations: 25.7 kB / 358.2 MB, free: 12.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.622e-05/0.1259, allocations: 152.3 kB / 358.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.847e-05/0.1259, allocations: 67.08 kB / 358.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.268e-05/0.126, allocations: 37.72 kB / 358.4 MB, free: 12.51 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.1261, allocations: 342.7 kB / 358.7 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.1262, allocations: 51.97 kB / 358.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001318/0.1264, allocations: 87.34 kB / 358.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002352/0.1266, allocations: 143.4 kB / 359 MB, free: 11.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.1266, allocations: 7.938 kB / 359 MB, free: 11.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003284/0.127, allocations: 203.3 kB / 359.2 MB, free: 11.65 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.127, allocations: 8 kB / 359.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.74e-06/0.127, allocations: 96 / 359.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.127, allocations: 4 kB / 359.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002084/0.1272, allocations: 51.92 kB / 359.3 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.1273, allocations: 3.938 kB / 359.3 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.328e-05/0.1274, allocations: 23.67 kB / 359.3 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.796e-05/0.1274, allocations: 12 kB / 359.3 MB, free: 11.55 MB / 302.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.0001405/0.1275, allocations: 137.8 kB / 359.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.413e-05/0.1276, allocations: 23.73 kB / 359.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.932e-05/0.1276, allocations: 30.19 kB / 359.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.1277, allocations: 8 kB / 359.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.1277, allocations: 3.938 kB / 359.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.1277, allocations: 3.984 kB / 359.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002552/0.1279, allocations: 277.4 kB / 359.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.128, allocations: 0 / 359.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001775/0.1281, allocations: 35.98 kB / 359.8 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.69e-06/0.1281, allocations: 7.984 kB / 359.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.571e-05/0.1282, allocations: 0 / 359.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1282, allocations: 0 / 359.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.1282, allocations: 3.938 kB / 359.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004817/0.1287, allocations: 292.7 kB / 360.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.548e-05/0.1287, allocations: 92.89 kB / 360.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.703e-05/0.1288, allocations: 8 kB / 360.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.044e-05/0.1289, allocations: 11.92 kB / 360.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.62e-05/0.1289, allocations: 11.98 kB / 360.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.1289, allocations: 4 kB / 360.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000192/0.1291, allocations: 184.5 kB / 360.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1292, allocations: 64 / 360.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002879/0.1294, allocations: 71.83 kB / 360.5 MB, free: 10.27 MB / 302.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.001021/0.1305, allocations: 418.3 kB / 360.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003354/0.1308, allocations: 147.8 kB / 361.1 MB, free: 9.875 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1308, allocations: 0 / 361.1 MB, free: 9.875 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001427/0.131, allocations: 71.91 kB / 361.1 MB, free: 9.805 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003433/0.1313, allocations: 45.95 kB / 361.2 MB, free: 9.762 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00105/0.1324, allocations: 0.584 MB / 361.8 MB, free: 9.148 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003188/0.1327, allocations: 0.7441 MB / 362.5 MB, free: 8.375 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.553e-05/0.1328, allocations: 27.42 kB / 362.5 MB, free: 8.348 MB / 302.1 MB Notification: Performance of SimCode: time 7.32e-07/0.1328, allocations: 0 / 362.5 MB, free: 8.348 MB / 302.1 MB Notification: Performance of Templates: time 0.005256/0.1381, allocations: 3.138 MB / 365.7 MB, free: 5.215 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches