Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001412/0.001412, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001712/0.001712, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.4 MB / 246.8 MB, free: 10.65 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 59.72 kB / 306.9 MB, free: 0.6797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09837/0.09954, allocations: 50.53 MB / 357.5 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003474/0.103, allocations: 2.252 MB / 359.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001954/0.105, allocations: 1.223 MB / 360.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001887/0.1053, allocations: 7.938 kB / 360.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003302/0.1056, allocations: 87.56 kB / 361 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00042/0.106, allocations: 167.1 kB / 361.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002947/0.1063, allocations: 119.5 kB / 361.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003233/0.1067, allocations: 290.8 kB / 361.6 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001981/0.1069, allocations: 92.55 kB / 361.7 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001668/0.107, allocations: 111.6 kB / 361.8 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001957/0.1073, allocations: 131.5 kB / 361.9 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.532e-05/0.1073, allocations: 16 kB / 361.9 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001397/0.1074, allocations: 59.97 kB / 362 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.357e-05/0.1075, allocations: 51.78 kB / 362 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000133/0.1077, allocations: 123.3 kB / 362.2 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003277/0.108, allocations: 287.3 kB / 362.4 MB, free: 9.129 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.108, allocations: 0 / 362.4 MB, free: 9.129 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.108, allocations: 0 / 362.4 MB, free: 9.129 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.108, allocations: 0 / 362.4 MB, free: 9.129 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.0007565/0.1088, allocations: 0.5535 MB / 363 MB, free: 8.527 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.1088, allocations: 12.03 kB / 363 MB, free: 8.516 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000144/0.109, allocations: 28.66 kB / 363 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002999/0.1093, allocations: 263.4 kB / 363.3 MB, free: 8.191 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.127e-05/0.1093, allocations: 16.3 kB / 363.3 MB, free: 8.176 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.609e-05/0.1094, allocations: 24.12 kB / 363.3 MB, free: 8.152 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003032/0.1097, allocations: 157.6 kB / 363.5 MB, free: 7.992 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.1097, allocations: 4 kB / 363.5 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.915e-05/0.1097, allocations: 4 kB / 363.5 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.1097, allocations: 4 kB / 363.5 MB, free: 7.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002517/0.11, allocations: 123.7 kB / 363.6 MB, free: 7.859 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008439/0.1108, allocations: 0.5585 MB / 364.2 MB, free: 7.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003122/0.1112, allocations: 158.5 kB / 364.3 MB, free: 7.086 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001531/0.1113, allocations: 84.83 kB / 364.4 MB, free: 7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.884e-05/0.1114, allocations: 7.984 kB / 364.4 MB, free: 6.992 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002579/0.1116, allocations: 125.7 kB / 364.6 MB, free: 6.859 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.944e-06/0.1116, allocations: 0 / 364.6 MB, free: 6.859 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004835/0.1121, allocations: 233.6 kB / 364.8 MB, free: 6.625 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.677e-05/0.1122, allocations: 55.41 kB / 364.8 MB, free: 6.559 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002474/0.1124, allocations: 257 kB / 365.1 MB, free: 6.297 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3e-05/0.1125, allocations: 33.7 kB / 365.1 MB, free: 6.258 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.076e-05/0.1126, allocations: 148.3 kB / 365.3 MB, free: 6.109 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.903e-05/0.1126, allocations: 71.03 kB / 365.3 MB, free: 6.039 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.648e-05/0.1127, allocations: 41.7 kB / 365.4 MB, free: 5.992 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.1128, allocations: 338.8 kB / 365.7 MB, free: 5.652 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001132/0.113, allocations: 47.98 kB / 365.7 MB, free: 5.605 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001308/0.1131, allocations: 88.42 kB / 365.8 MB, free: 5.508 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002489/0.1134, allocations: 147.4 kB / 366 MB, free: 5.352 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1134, allocations: 0 / 366 MB, free: 5.352 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003345/0.1137, allocations: 205.2 kB / 366.2 MB, free: 5.145 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.1137, allocations: 4 kB / 366.2 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.1137, allocations: 4 kB / 366.2 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.1138, allocations: 8.078 kB / 366.2 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000209/0.114, allocations: 43.92 kB / 366.2 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.114, allocations: 7.938 kB / 366.2 MB, free: 5.078 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.574e-05/0.1141, allocations: 23.75 kB / 366.3 MB, free: 5.055 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.558e-05/0.1141, allocations: 12 kB / 366.3 MB, free: 5.043 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.000119/0.1142, allocations: 153.5 kB / 366.4 MB, free: 4.887 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.752e-05/0.1143, allocations: 19.72 kB / 366.5 MB, free: 4.867 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.865e-05/0.1144, allocations: 34.17 kB / 366.5 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.1144, allocations: 4 kB / 366.5 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.1144, allocations: 7.938 kB / 366.5 MB, free: 4.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.1144, allocations: 0 / 366.5 MB, free: 4.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002471/0.1146, allocations: 285.5 kB / 366.8 MB, free: 4.492 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1146, allocations: 0 / 366.8 MB, free: 4.492 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001742/0.1148, allocations: 35.98 kB / 366.8 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.1148, allocations: 0 / 366.8 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.525e-05/0.1149, allocations: 4 kB / 366.8 MB, free: 4.453 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.1149, allocations: 4 kB / 366.8 MB, free: 4.449 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.1149, allocations: 3.938 kB / 366.8 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004572/0.1153, allocations: 287.1 kB / 367.1 MB, free: 4.148 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.948e-05/0.1154, allocations: 100.8 kB / 367.2 MB, free: 4.031 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.241e-05/0.1154, allocations: 4 kB / 367.2 MB, free: 4.027 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.196e-05/0.1155, allocations: 7.938 kB / 367.2 MB, free: 4.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.895e-05/0.1156, allocations: 15.97 kB / 367.2 MB, free: 4.004 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.162e-05/0.1156, allocations: 8 kB / 367.2 MB, free: 3.996 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001613/0.1158, allocations: 188.5 kB / 367.4 MB, free: 3.812 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1158, allocations: 0 / 367.4 MB, free: 3.812 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002669/0.1161, allocations: 67.89 kB / 367.5 MB, free: 3.746 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.0008902/0.1169, allocations: 414.5 kB / 367.9 MB, free: 3.473 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003365/0.1173, allocations: 150.9 kB / 368 MB, free: 3.328 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1173, allocations: 0 / 368 MB, free: 3.328 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001414/0.1175, allocations: 71.92 kB / 368.1 MB, free: 3.258 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003303/0.1178, allocations: 47.84 kB / 368.2 MB, free: 3.215 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009747/0.1188, allocations: 0.5482 MB / 368.7 MB, free: 2.637 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004883/0.1193, allocations: 0.748 MB / 369.5 MB, free: 1.859 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002328/0.1195, allocations: 29.94 kB / 369.5 MB, free: 1.832 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.119e-05/0.1196, allocations: 27.42 kB / 369.5 MB, free: 1.805 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1196, allocations: 0 / 369.5 MB, free: 1.805 MB / 302.1 MB Notification: Performance of Templates: time 0.144/0.2636, allocations: 2.666 MB / 372.2 MB, free: 19.32 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (rm -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches