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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 107.5 kB / 20.44 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001349/0.001349, allocations: 187.7 kB / 23.7 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] 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=720000,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=720000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0016/0.0016, allocations: 47.86 kB / 370.9 MB, free: 9.305 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.2623, allocations: 52.19 MB / 423.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003677/0.266, allocations: 2.137 MB / 425.2 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00178/0.2678, allocations: 1.033 MB / 426.2 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.968e-05/0.2679, allocations: 7.938 kB / 426.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003401/0.2682, allocations: 91.56 kB / 426.3 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003687/0.2686, allocations: 119.2 kB / 426.4 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00036/0.269, allocations: 155.2 kB / 426.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003423/0.2693, allocations: 290.8 kB / 426.9 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001752/0.2695, allocations: 52.8 kB / 426.9 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001456/0.2696, allocations: 115.6 kB / 427 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002095/0.2698, allocations: 119.5 kB / 427.2 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.984e-05/0.2699, allocations: 20 kB / 427.2 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001327/0.27, allocations: 43.98 kB / 427.2 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001004/0.2701, allocations: 63.75 kB / 427.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001258/0.2702, allocations: 99.47 kB / 427.4 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003828/0.2706, allocations: 292.1 kB / 427.7 MB, free: 9.855 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2706, allocations: 4 kB / 427.7 MB, free: 9.852 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2706, allocations: 0 / 427.7 MB, free: 9.852 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.2706, allocations: 0 / 427.7 MB, free: 9.852 MB / 334.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.0008463/0.2715, allocations: 485.5 kB / 428.1 MB, free: 9.348 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.271e-05/0.2715, allocations: 8.031 kB / 428.1 MB, free: 9.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001463/0.2717, allocations: 32.75 kB / 428.2 MB, free: 9.309 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000311/0.272, allocations: 191.1 kB / 428.4 MB, free: 9.094 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.071e-05/0.272, allocations: 16.38 kB / 428.4 MB, free: 9.078 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.371e-05/0.272, allocations: 20.12 kB / 428.4 MB, free: 9.059 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003319/0.2724, allocations: 169.3 kB / 428.6 MB, free: 8.887 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.59e-05/0.2724, allocations: 3.953 kB / 428.6 MB, free: 8.883 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.148e-05/0.2724, allocations: 8 kB / 428.6 MB, free: 8.875 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.2724, allocations: 4 kB / 428.6 MB, free: 8.871 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002642/0.2727, allocations: 119.9 kB / 428.7 MB, free: 8.754 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008578/0.2735, allocations: 479.8 kB / 429.2 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003267/0.2739, allocations: 154.5 kB / 429.3 MB, free: 8.094 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001608/0.274, allocations: 79.92 kB / 429.4 MB, free: 8.016 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.98e-05/0.2741, allocations: 4 kB / 429.4 MB, free: 8.012 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002277/0.2743, allocations: 115.3 kB / 429.5 MB, free: 7.887 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.553e-06/0.2743, allocations: 0 / 429.5 MB, free: 7.887 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005149/0.2748, allocations: 237.7 kB / 429.7 MB, free: 7.648 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.456e-05/0.2748, allocations: 55.41 kB / 429.8 MB, free: 7.582 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002642/0.2751, allocations: 251.2 kB / 430 MB, free: 7.328 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.262e-05/0.2751, allocations: 25.7 kB / 430.1 MB, free: 7.297 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001114/0.2752, allocations: 152.3 kB / 430.2 MB, free: 7.145 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.577e-05/0.2753, allocations: 75.42 kB / 430.3 MB, free: 7.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.86e-05/0.2754, allocations: 41.64 kB / 430.3 MB, free: 7.023 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.2755, allocations: 338.8 kB / 430.7 MB, free: 6.684 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.2757, allocations: 51.98 kB / 430.7 MB, free: 6.633 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/0.2758, allocations: 87.39 kB / 430.8 MB, free: 6.535 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002624/0.2761, allocations: 149 kB / 430.9 MB, free: 6.379 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.2761, allocations: 7.984 kB / 430.9 MB, free: 6.371 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003678/0.2764, allocations: 206.8 kB / 431.2 MB, free: 6.164 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/0.2765, allocations: 8 kB / 431.2 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.2765, allocations: 3.938 kB / 431.2 MB, free: 6.152 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.2765, allocations: 4 kB / 431.2 MB, free: 6.148 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002117/0.2767, allocations: 47.97 kB / 431.2 MB, free: 6.102 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.2767, allocations: 3.938 kB / 431.2 MB, free: 6.098 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.791e-05/0.2768, allocations: 23.92 kB / 431.2 MB, free: 6.074 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.51e-05/0.2768, allocations: 8 kB / 431.2 MB, free: 6.066 MB / 334.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.000139/0.2769, allocations: 141.8 kB / 431.4 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.799e-05/0.277, allocations: 23.86 kB / 431.4 MB, free: 5.895 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004331/0.2774, allocations: 219.3 kB / 431.6 MB, free: 5.668 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.2774, allocations: 0 / 431.6 MB, free: 5.668 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.2774, allocations: 0 / 431.6 MB, free: 5.668 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.2774, allocations: 0 / 431.6 MB, free: 5.668 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002444/0.2777, allocations: 217 kB / 431.8 MB, free: 5.426 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.2777, allocations: 0 / 431.8 MB, free: 5.426 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001932/0.2779, allocations: 47.92 kB / 431.9 MB, free: 5.379 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.2779, allocations: 0 / 431.9 MB, free: 5.379 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.993e-05/0.2779, allocations: 7.984 kB / 431.9 MB, free: 5.371 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.2779, allocations: 4 kB / 431.9 MB, free: 5.367 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2779, allocations: 0 / 431.9 MB, free: 5.367 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005311/0.2784, allocations: 303.8 kB / 432.2 MB, free: 5.055 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.631e-05/0.2785, allocations: 19.83 kB / 432.2 MB, free: 5.035 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.191e-05/0.2785, allocations: 8 kB / 432.2 MB, free: 5.027 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.336e-05/0.2786, allocations: 11.98 kB / 432.2 MB, free: 5.016 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.154e-05/0.2786, allocations: 11.92 kB / 432.2 MB, free: 5.004 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.902e-05/0.2786, allocations: 8.047 kB / 432.3 MB, free: 4.996 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001786/0.2788, allocations: 192.6 kB / 432.4 MB, free: 4.809 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2788, allocations: 0 / 432.4 MB, free: 4.809 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002769/0.2791, allocations: 63.89 kB / 432.5 MB, free: 4.746 MB / 334.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.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.001592/0.2807, allocations: 445.5 kB / 432.9 MB, free: 4.484 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003292/0.281, allocations: 139.9 kB / 433.1 MB, free: 4.348 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.281, allocations: 0 / 433.1 MB, free: 4.348 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001638/0.2812, allocations: 79.41 kB / 433.1 MB, free: 4.273 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003316/0.2815, allocations: 47.91 kB / 433.2 MB, free: 4.227 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009894/0.2825, allocations: 0.5484 MB / 433.7 MB, free: 3.652 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001429/0.2826, allocations: 144.8 kB / 433.9 MB, free: 3.492 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001029/0.2827, allocations: 25.62 kB / 433.9 MB, free: 3.469 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.69e-05/0.2828, allocations: 27.44 kB / 433.9 MB, free: 3.441 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2828, allocations: 0 / 433.9 MB, free: 3.441 MB / 334.1 MB Notification: Performance of Templates: time 0.006952/0.2898, allocations: 2.884 MB / 436.8 MB, free: 0.6133 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 8.676879871636629]