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.0015/0.0015, allocations: 115.8 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00191/0.00191, allocations: 203.5 kB / 19.36 MB, free: 3.746 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 / 247.5 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 59.75 kB / 308.4 MB, free: 15.92 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1031, allocations: 50.53 MB / 358.9 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003817/0.1069, allocations: 2.241 MB / 361.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002049/0.109, allocations: 1.234 MB / 362.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.1091, allocations: 4 kB / 362.4 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003257/0.1095, allocations: 91.5 kB / 362.5 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003621/0.1099, allocations: 163.1 kB / 362.6 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002454/0.1101, allocations: 119.6 kB / 362.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003208/0.1104, allocations: 294.8 kB / 363 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001955/0.1106, allocations: 92.56 kB / 363.1 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001385/0.1108, allocations: 107.6 kB / 363.2 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001636/0.111, allocations: 131.4 kB / 363.4 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.06e-05/0.111, allocations: 27.94 kB / 363.4 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001224/0.1111, allocations: 51.98 kB / 363.4 MB, free: 8.812 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.544e-05/0.1112, allocations: 55.81 kB / 363.5 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001144/0.1113, allocations: 119.3 kB / 363.6 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003175/0.1117, allocations: 287 kB / 363.9 MB, free: 8.359 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1117, allocations: 0 / 363.9 MB, free: 8.359 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1117, allocations: 0 / 363.9 MB, free: 8.359 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.1117, allocations: 0 / 363.9 MB, free: 8.359 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.0007566/0.1125, allocations: 0.5573 MB / 364.4 MB, free: 7.754 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.256e-05/0.1125, allocations: 12.03 kB / 364.5 MB, free: 7.742 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001334/0.1126, allocations: 32.64 kB / 364.5 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003201/0.113, allocations: 259.6 kB / 364.7 MB, free: 7.418 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.903e-05/0.113, allocations: 8.375 kB / 364.8 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.457e-05/0.113, allocations: 20.12 kB / 364.8 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002974/0.1134, allocations: 165.5 kB / 364.9 MB, free: 7.223 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.1134, allocations: 4 kB / 364.9 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.734e-05/0.1134, allocations: 4 kB / 364.9 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.1134, allocations: 4 kB / 364.9 MB, free: 7.211 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002518/0.1137, allocations: 119.7 kB / 365.1 MB, free: 7.094 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008279/0.1145, allocations: 0.5624 MB / 365.6 MB, free: 6.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002984/0.1148, allocations: 170.5 kB / 365.8 MB, free: 6.305 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001514/0.115, allocations: 84.83 kB / 365.9 MB, free: 6.219 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.971e-05/0.115, allocations: 4 kB / 365.9 MB, free: 6.215 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002033/0.1152, allocations: 113.8 kB / 366 MB, free: 6.094 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.653e-06/0.1152, allocations: 0 / 366 MB, free: 6.094 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004677/0.1157, allocations: 237.6 kB / 366.2 MB, free: 5.855 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/0.1158, allocations: 55.41 kB / 366.3 MB, free: 5.789 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002426/0.116, allocations: 257 kB / 366.5 MB, free: 5.527 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.229e-05/0.116, allocations: 33.64 kB / 366.6 MB, free: 5.488 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.999e-05/0.1161, allocations: 148.3 kB / 366.7 MB, free: 5.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.021e-05/0.1162, allocations: 75.03 kB / 366.8 MB, free: 5.266 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.024e-05/0.1163, allocations: 37.7 kB / 366.8 MB, free: 5.223 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.1164, allocations: 338.8 kB / 367.1 MB, free: 4.883 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001167/0.1165, allocations: 55.98 kB / 367.2 MB, free: 4.828 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001252/0.1166, allocations: 84.48 kB / 367.3 MB, free: 4.734 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002341/0.1169, allocations: 142.9 kB / 367.4 MB, free: 4.586 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1169, allocations: 4 kB / 367.4 MB, free: 4.582 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003351/0.1172, allocations: 209.2 kB / 367.6 MB, free: 4.371 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.1173, allocations: 4 kB / 367.6 MB, free: 4.367 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.1173, allocations: 0 / 367.6 MB, free: 4.367 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.1173, allocations: 4 kB / 367.6 MB, free: 4.363 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002219/0.1175, allocations: 43.97 kB / 367.7 MB, free: 4.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.1175, allocations: 7.875 kB / 367.7 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.591e-05/0.1176, allocations: 23.75 kB / 367.7 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.455e-05/0.1177, allocations: 4.094 kB / 367.7 MB, free: 4.285 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.0001323/0.1178, allocations: 158.3 kB / 367.9 MB, free: 4.121 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.396e-05/0.1178, allocations: 23.72 kB / 367.9 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.745e-05/0.1179, allocations: 30.17 kB / 367.9 MB, free: 4.066 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.1179, allocations: 0 / 367.9 MB, free: 4.066 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.1179, allocations: 7.938 kB / 367.9 MB, free: 4.059 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.1179, allocations: 0 / 367.9 MB, free: 4.059 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002692/0.1182, allocations: 285.5 kB / 368.2 MB, free: 3.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1182, allocations: 0 / 368.2 MB, free: 3.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001847/0.1184, allocations: 39.92 kB / 368.2 MB, free: 3.691 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.1184, allocations: 8 kB / 368.3 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.1184, allocations: 0 / 368.3 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.1185, allocations: 0 / 368.3 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.1185, allocations: 3.938 kB / 368.3 MB, free: 3.68 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000462/0.1189, allocations: 287.8 kB / 368.5 MB, free: 3.383 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.914e-05/0.119, allocations: 96.8 kB / 368.6 MB, free: 3.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.396e-05/0.119, allocations: 11.94 kB / 368.6 MB, free: 3.258 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.5e-05/0.1191, allocations: 16 kB / 368.7 MB, free: 3.242 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.982e-05/0.1192, allocations: 11.98 kB / 368.7 MB, free: 3.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.239e-05/0.1192, allocations: 7.984 kB / 368.7 MB, free: 3.223 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001601/0.1194, allocations: 196.4 kB / 368.9 MB, free: 3.031 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1194, allocations: 0 / 368.9 MB, free: 3.031 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002791/0.1197, allocations: 67.83 kB / 368.9 MB, free: 2.965 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.0009306/0.1206, allocations: 394.3 kB / 369.3 MB, free: 2.711 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003077/0.1209, allocations: 142.8 kB / 369.5 MB, free: 2.574 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.1209, allocations: 4 kB / 369.5 MB, free: 2.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001391/0.1211, allocations: 71.91 kB / 369.5 MB, free: 2.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003358/0.1214, allocations: 51.84 kB / 369.6 MB, free: 2.453 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009356/0.1224, allocations: 0.5407 MB / 370.1 MB, free: 1.883 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003128/0.1227, allocations: 0.744 MB / 370.9 MB, free: 1.109 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.275e-05/0.1228, allocations: 37.86 kB / 370.9 MB, free: 1.074 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.534e-05/0.1229, allocations: 27.44 kB / 370.9 MB, free: 1.047 MB / 302.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1229, allocations: 0 / 370.9 MB, free: 1.047 MB / 302.1 MB Notification: Performance of Templates: time 0.1566/0.2795, allocations: 2.662 MB / 373.6 MB, free: 19.61 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 -s cvode -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