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.001026/0.001026, allocations: 91.45 kB / 18 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001436/0.001436, allocations: 201.3 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 227.7 MB / 247.5 MB, free: 9.559 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002471/0.0002471, allocations: 4 kB / 308.4 MB, free: 0.5859 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09484/0.09511, allocations: 51.53 MB / 359.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002567/0.09772, allocations: 1.94 MB / 361.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001997/0.09975, allocations: 1.193 MB / 363 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001933/0.09998, allocations: 4 kB / 363 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003676/0.1004, allocations: 91.62 kB / 363.1 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004663/0.1008, allocations: 139.3 kB / 363.3 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000314/0.1012, allocations: 95.78 kB / 363.4 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003602/0.1015, allocations: 270.8 kB / 363.6 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001941/0.1018, allocations: 81 kB / 363.7 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001758/0.1019, allocations: 99.56 kB / 363.8 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001926/0.1021, allocations: 119.5 kB / 363.9 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.7e-05/0.1022, allocations: 8 kB / 363.9 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001454/0.1023, allocations: 39.98 kB / 364 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.926e-05/0.1024, allocations: 43.84 kB / 364 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001294/0.1025, allocations: 141 kB / 364.1 MB, free: 8.789 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002636/0.1028, allocations: 211.8 kB / 364.4 MB, free: 8.582 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.1028, allocations: 8 kB / 364.4 MB, free: 8.574 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.1028, allocations: 0 / 364.4 MB, free: 8.574 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.373e-05/0.1029, allocations: 0 / 364.4 MB, free: 8.574 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.0007318/0.1036, allocations: 0.5031 MB / 364.9 MB, free: 8.023 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.1037, allocations: 8.031 kB / 364.9 MB, free: 8.016 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001539/0.1038, allocations: 32.56 kB / 364.9 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002969/0.1041, allocations: 271.4 kB / 365.2 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.269e-05/0.1042, allocations: 12.38 kB / 365.2 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.966e-05/0.1042, allocations: 20.12 kB / 365.2 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003208/0.1045, allocations: 157.6 kB / 365.4 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.1046, allocations: 0 / 365.4 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.212e-05/0.1046, allocations: 11.94 kB / 365.4 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.1046, allocations: 4 kB / 365.4 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002709/0.1049, allocations: 115.7 kB / 365.5 MB, free: 7.359 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008646/0.1057, allocations: 0.5663 MB / 366 MB, free: 6.742 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003064/0.1061, allocations: 166.5 kB / 366.2 MB, free: 6.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001471/0.1062, allocations: 91.22 kB / 366.3 MB, free: 6.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.003e-05/0.1063, allocations: 4 kB / 366.3 MB, free: 6.477 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002397/0.1065, allocations: 103.4 kB / 366.4 MB, free: 6.363 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.653e-06/0.1065, allocations: 4 kB / 366.4 MB, free: 6.359 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004837/0.107, allocations: 236.7 kB / 366.6 MB, free: 6.125 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.96e-05/0.1071, allocations: 55.41 kB / 366.7 MB, free: 6.059 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002448/0.1073, allocations: 265 kB / 367 MB, free: 5.789 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.1e-05/0.1073, allocations: 29.7 kB / 367 MB, free: 5.754 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.509e-05/0.1074, allocations: 144.3 kB / 367.1 MB, free: 5.609 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.701e-05/0.1075, allocations: 70.94 kB / 367.2 MB, free: 5.539 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.609e-05/0.1076, allocations: 29.7 kB / 367.2 MB, free: 5.504 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.1077, allocations: 338.8 kB / 367.6 MB, free: 5.164 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001078/0.1078, allocations: 47.98 kB / 367.6 MB, free: 5.117 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001249/0.1079, allocations: 92.48 kB / 367.7 MB, free: 5.016 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002374/0.1082, allocations: 145.5 kB / 367.8 MB, free: 4.863 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.1082, allocations: 0 / 367.8 MB, free: 4.863 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003335/0.1085, allocations: 208.7 kB / 368 MB, free: 4.656 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.1085, allocations: 8 kB / 368 MB, free: 4.648 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.1086, allocations: 0 / 368 MB, free: 4.648 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.1086, allocations: 7.875 kB / 368.1 MB, free: 4.641 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002168/0.1088, allocations: 47.97 kB / 368.1 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.1088, allocations: 3.938 kB / 368.1 MB, free: 4.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001184/0.1089, allocations: 19.84 kB / 368.1 MB, free: 4.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.728e-05/0.109, allocations: 15.98 kB / 368.1 MB, free: 4.555 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.0001254/0.1091, allocations: 146.4 kB / 368.3 MB, free: 4.402 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.274e-05/0.1091, allocations: 23.72 kB / 368.3 MB, free: 4.379 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.093e-05/0.1092, allocations: 30.17 kB / 368.3 MB, free: 4.348 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.1092, allocations: 4 kB / 368.3 MB, free: 4.344 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.1092, allocations: 3.938 kB / 368.3 MB, free: 4.34 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.1092, allocations: 3.984 kB / 368.3 MB, free: 4.336 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002643/0.1095, allocations: 277.5 kB / 368.6 MB, free: 4.016 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.1095, allocations: 4 kB / 368.6 MB, free: 4.012 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001716/0.1097, allocations: 39.92 kB / 368.7 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.1097, allocations: 0 / 368.7 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/0.1097, allocations: 8 kB / 368.7 MB, free: 3.965 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.1097, allocations: 3.984 kB / 368.7 MB, free: 3.961 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.1098, allocations: 3.938 kB / 368.7 MB, free: 3.957 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004477/0.1102, allocations: 276.7 kB / 368.9 MB, free: 3.668 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.791e-05/0.1103, allocations: 108.8 kB / 369 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.081e-05/0.1103, allocations: 0 / 369 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.166e-05/0.1104, allocations: 16 kB / 369.1 MB, free: 3.527 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.247e-05/0.1105, allocations: 19.88 kB / 369.1 MB, free: 3.508 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.182e-05/0.1105, allocations: 11.98 kB / 369.1 MB, free: 3.496 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001608/0.1107, allocations: 188.5 kB / 369.3 MB, free: 3.312 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1107, allocations: 0 / 369.3 MB, free: 3.312 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002731/0.1109, allocations: 59.84 kB / 369.3 MB, free: 3.254 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.0009341/0.1119, allocations: 424.4 kB / 369.8 MB, free: 2.973 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002971/0.1122, allocations: 139.9 kB / 369.9 MB, free: 2.836 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1122, allocations: 0 / 369.9 MB, free: 2.836 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001284/0.1123, allocations: 75.84 kB / 370 MB, free: 2.762 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003637/0.1127, allocations: 48.03 kB / 370 MB, free: 2.719 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001005/0.1137, allocations: 0.6996 MB / 370.7 MB, free: 1.984 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002746/0.114, allocations: 0.7482 MB / 371.5 MB, free: 1.211 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.494e-05/0.1141, allocations: 23.44 kB / 371.5 MB, free: 1.188 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1141, allocations: 0 / 371.5 MB, free: 1.188 MB / 302.1 MB Notification: Performance of Templates: time 0.1764/0.2905, allocations: 3.14 MB / 374.6 MB, free: 18.1 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/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_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches