Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00092/0.00092, allocations: 80.8 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.004299/0.004299, allocations: 172.1 kB / 24.91 MB, free: 8.613 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9557/0.9557, allocations: 177.1 MB / 205.3 MB, free: 5.5 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=720000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor") translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=720000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.282e-06/1.282e-06, allocations: 0 / 273.5 MB, free: 1.293 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.358e-05/1.486e-05, allocations: 2.312 kB / 273.5 MB, free: 1.289 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002561/0.002576, allocations: 2.316 MB / 275.8 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00153/0.004106, allocations: 1.231 MB / 277 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000109/0.004215, allocations: 4 kB / 277 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003034/0.004518, allocations: 91.39 kB / 277.1 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003478/0.004866, allocations: 171 kB / 277.3 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002367/0.005103, allocations: 107.6 kB / 277.4 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002532/0.005356, allocations: 310.5 kB / 277.7 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.005487, allocations: 66.73 kB / 277.7 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001524/0.00564, allocations: 159.7 kB / 277.9 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001408/0.00578, allocations: 95.77 kB / 278 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.595e-05/0.005806, allocations: 20 kB / 278 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001131/0.005919, allocations: 67.84 kB / 278.1 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.451e-05/0.005974, allocations: 55.77 kB / 278.1 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.368e-05/0.006038, allocations: 83.77 kB / 278.2 MB, free: 12.51 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002275/0.006265, allocations: 215.2 kB / 278.4 MB, free: 12.3 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.006267, allocations: 3.938 kB / 278.4 MB, free: 12.3 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.006268, allocations: 0 / 278.4 MB, free: 12.3 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.557e-06/0.006272, allocations: 0 / 278.4 MB, free: 12.3 MB / 266.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.0004701/0.006742, allocations: 475.8 kB / 278.9 MB, free: 11.81 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.736e-05/0.006769, allocations: 8.031 kB / 278.9 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001079/0.006877, allocations: 40.84 kB / 278.9 MB, free: 11.76 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000171/0.007048, allocations: 181.3 kB / 279.1 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.536e-05/0.007063, allocations: 12.38 kB / 279.1 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.237e-05/0.007086, allocations: 16.38 kB / 279.1 MB, free: 11.53 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000151/0.007237, allocations: 129.7 kB / 279.3 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.007247, allocations: 3.938 kB / 279.3 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.007259, allocations: 7.984 kB / 279.3 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.007264, allocations: 4 kB / 279.3 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.008e-05/0.007344, allocations: 63.47 kB / 279.3 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004227/0.007767, allocations: 353.3 kB / 279.7 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001365/0.007903, allocations: 145.2 kB / 279.8 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.542e-05/0.007949, allocations: 44.83 kB / 279.9 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.32e-05/0.007962, allocations: 4 kB / 279.9 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001054/0.008067, allocations: 101.4 kB / 280 MB, free: 10.64 MB / 266.7 MB Notification: Performance of pre-optimization done (n=20): time 1.442e-06/0.008069, allocations: 4 kB / 280 MB, free: 10.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=20): time 0.0001647/0.008233, allocations: 125.8 kB / 280.1 MB, free: 10.51 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.593e-05/0.008259, allocations: 59.41 kB / 280.2 MB, free: 10.44 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001208/0.00838, allocations: 213.1 kB / 280.4 MB, free: 10.21 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.697e-05/0.008397, allocations: 29.7 kB / 280.4 MB, free: 10.18 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.256e-05/0.00845, allocations: 136.8 kB / 280.5 MB, free: 10.04 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.534e-05/0.008485, allocations: 63.42 kB / 280.6 MB, free: 9.977 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.608e-05/0.008531, allocations: 49.67 kB / 280.6 MB, free: 9.922 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.458e-05/0.008616, allocations: 330.8 kB / 281 MB, free: 9.59 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.038e-05/0.008646, allocations: 22.81 kB / 281 MB, free: 9.566 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.423e-05/0.00869, allocations: 61.8 kB / 281.1 MB, free: 9.496 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.869e-05/0.008779, allocations: 103.9 kB / 281.2 MB, free: 9.383 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.008781, allocations: 0 / 281.2 MB, free: 9.383 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001197/0.008901, allocations: 116.4 kB / 281.3 MB, free: 9.262 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/0.008914, allocations: 11.94 kB / 281.3 MB, free: 9.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.008917, allocations: 3.938 kB / 281.3 MB, free: 9.246 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.00893, allocations: 0 / 281.3 MB, free: 9.246 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000168/0.009098, allocations: 63.3 kB / 281.3 MB, free: 9.188 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.156e-06/0.009101, allocations: 0 / 281.3 MB, free: 9.188 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.741e-05/0.009149, allocations: 19.84 kB / 281.4 MB, free: 9.168 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.538e-06/0.009158, allocations: 4 kB / 281.4 MB, free: 9.164 MB / 266.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 ($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 7.807e-05/0.009236, allocations: 131.1 kB / 281.5 MB, free: 9.027 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.147e-05/0.009258, allocations: 19.92 kB / 281.5 MB, free: 9.008 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001516/0.009409, allocations: 130.4 kB / 281.6 MB, free: 8.879 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.389e-06/0.009414, allocations: 7.984 kB / 281.7 MB, free: 8.871 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.009417, allocations: 3.938 kB / 281.7 MB, free: 8.867 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.009421, allocations: 7.984 kB / 281.7 MB, free: 8.859 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001335/0.009554, allocations: 145.7 kB / 281.8 MB, free: 8.699 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.009556, allocations: 0 / 281.8 MB, free: 8.699 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001224/0.009678, allocations: 43.98 kB / 281.8 MB, free: 8.656 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.624e-06/0.009681, allocations: 0 / 281.8 MB, free: 8.656 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.009693, allocations: 4 kB / 281.9 MB, free: 8.652 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.009695, allocations: 3.984 kB / 281.9 MB, free: 8.648 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.009696, allocations: 0 / 281.9 MB, free: 8.648 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001916/0.009888, allocations: 182.5 kB / 282 MB, free: 8.449 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.835e-05/0.009906, allocations: 15.86 kB / 282.1 MB, free: 8.434 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.094e-05/0.009927, allocations: 12.03 kB / 282.1 MB, free: 8.422 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.608e-05/0.009963, allocations: 11.92 kB / 282.1 MB, free: 8.41 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.963e-05/0.009993, allocations: 7.984 kB / 282.1 MB, free: 8.402 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/0.01001, allocations: 11.98 kB / 282.1 MB, free: 8.391 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.95e-05/0.01007, allocations: 74 kB / 282.2 MB, free: 8.316 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01007, allocations: 4 kB / 282.2 MB, free: 8.312 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001599/0.01023, allocations: 63.8 kB / 282.2 MB, free: 8.25 MB / 266.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.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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.001004/0.01123, allocations: 0.5041 MB / 282.7 MB, free: 7.969 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001366/0.01137, allocations: 87.94 kB / 282.8 MB, free: 7.883 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.01137, allocations: 4 kB / 282.8 MB, free: 7.879 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.777e-05/0.01143, allocations: 60.75 kB / 282.9 MB, free: 7.816 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001655/0.0116, allocations: 52.92 kB / 282.9 MB, free: 7.77 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006608/0.01226, allocations: 454.6 kB / 283.4 MB, free: 7.293 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.728e-05/0.0123, allocations: 87.97 kB / 283.5 MB, free: 7.188 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.82e-05/0.01237, allocations: 37.91 kB / 283.5 MB, free: 7.148 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001031/0.01248, allocations: 83.36 kB / 283.6 MB, free: 7.066 MB / 266.7 MB Notification: Performance of SimCode: time 7.21e-07/0.01248, allocations: 0 / 283.6 MB, free: 7.066 MB / 266.7 MB Notification: Performance of Templates: time 0.004535/0.01701, allocations: 3.003 MB / 286.6 MB, free: 4.121 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 5.844634054694325]