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.00138/0.00138, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 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.001489/0.001489, allocations: 213.6 kB / 23.72 MB, free: 4.531 MB / 14.72 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 1.47/1.47, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001587/0.001587, allocations: 43.92 kB / 378.2 MB, free: 2.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2361/0.2377, allocations: 53.37 MB / 431.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003626/0.2413, allocations: 2.147 MB / 433.7 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002124/0.2434, allocations: 1.165 MB / 434.9 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000109/0.2435, allocations: 7.938 kB / 434.9 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003279/0.2439, allocations: 95.48 kB / 435 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000414/0.2443, allocations: 159.1 kB / 435.1 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002765/0.2446, allocations: 127.5 kB / 435.3 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003601/0.2449, allocations: 294.8 kB / 435.5 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000187/0.2451, allocations: 68.77 kB / 435.6 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001574/0.2453, allocations: 119.5 kB / 435.7 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002191/0.2455, allocations: 131.5 kB / 435.9 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.214e-05/0.2455, allocations: 20 kB / 435.9 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001226/0.2456, allocations: 47.94 kB / 435.9 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.315e-05/0.2457, allocations: 59.77 kB / 436 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001263/0.2459, allocations: 99.52 kB / 436.1 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003894/0.2462, allocations: 297 kB / 436.4 MB, free: 1.895 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.2462, allocations: 8 kB / 436.4 MB, free: 1.887 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2462, allocations: 0 / 436.4 MB, free: 1.887 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.75e-06/0.2463, allocations: 3.938 kB / 436.4 MB, free: 1.883 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.0008337/0.2471, allocations: 489.2 kB / 436.9 MB, free: 1.375 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.2471, allocations: 12.03 kB / 436.9 MB, free: 1.363 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001469/0.2473, allocations: 28.75 kB / 436.9 MB, free: 1.336 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003443/0.2476, allocations: 209.9 kB / 437.1 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.2476, allocations: 16.38 kB / 437.1 MB, free: 1.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.537e-05/0.2477, allocations: 16.12 kB / 437.1 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003301/0.248, allocations: 161.6 kB / 437.3 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.248, allocations: 3.938 kB / 437.3 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.346e-05/0.248, allocations: 12 kB / 437.3 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.2481, allocations: 4 kB / 437.3 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000286/0.2483, allocations: 123.7 kB / 437.4 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008571/0.2492, allocations: 475.8 kB / 437.9 MB, free: 280 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003443/0.2495, allocations: 162.5 kB / 438.1 MB, free: 108 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001579/0.2497, allocations: 79.23 kB / 438.1 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.076e-05/0.2497, allocations: 0 / 438.1 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002649/0.25, allocations: 123.6 kB / 438.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.823e-06/0.25, allocations: 0 / 438.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005398/0.2505, allocations: 236.5 kB / 438.5 MB, free: 15.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.092e-05/0.2506, allocations: 55.34 kB / 438.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002858/0.2509, allocations: 268.1 kB / 438.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.47e-05/0.2509, allocations: 29.7 kB / 438.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000127/0.251, allocations: 148.3 kB / 439 MB, free: 15.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.872e-05/0.2511, allocations: 71.39 kB / 439 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.205e-05/0.2512, allocations: 41.7 kB / 439.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.2513, allocations: 338.8 kB / 439.4 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001231/0.2514, allocations: 55.97 kB / 439.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001553/0.2516, allocations: 87.34 kB / 439.6 MB, free: 14.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002716/0.2519, allocations: 153.4 kB / 439.7 MB, free: 14.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2519, allocations: 4 kB / 439.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004041/0.2523, allocations: 208.4 kB / 439.9 MB, free: 14.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.2523, allocations: 8 kB / 439.9 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.2523, allocations: 0 / 439.9 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.2523, allocations: 0 / 439.9 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002378/0.2526, allocations: 47.92 kB / 440 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.2526, allocations: 0 / 440 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.936e-05/0.2527, allocations: 19.83 kB / 440 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.989e-05/0.2527, allocations: 16.08 kB / 440 MB, free: 14.07 MB / 350.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.0001433/0.2528, allocations: 144.4 kB / 440.1 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.646e-05/0.2529, allocations: 19.86 kB / 440.2 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00045/0.2533, allocations: 219.3 kB / 440.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.2533, allocations: 7.922 kB / 440.4 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.2533, allocations: 4 kB / 440.4 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.2533, allocations: 0 / 440.4 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002704/0.2536, allocations: 221 kB / 440.6 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.2536, allocations: 0 / 440.6 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002163/0.2538, allocations: 39.98 kB / 440.6 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.2538, allocations: 0 / 440.6 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.818e-05/0.2538, allocations: 4 kB / 440.6 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.2538, allocations: 4 kB / 440.6 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.2538, allocations: 3.938 kB / 440.7 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000566/0.2544, allocations: 310 kB / 441 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.095e-05/0.2544, allocations: 27.83 kB / 441 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.379e-05/0.2545, allocations: 0 / 441 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.156e-05/0.2546, allocations: 11.94 kB / 441 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.413e-05/0.2546, allocations: 15.91 kB / 441 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.468e-05/0.2546, allocations: 12.06 kB / 441 MB, free: 12.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002035/0.2548, allocations: 193.6 kB / 441.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2548, allocations: 4 kB / 441.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002918/0.2551, allocations: 59.89 kB / 441.3 MB, free: 12.73 MB / 350.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.001686/0.2568, allocations: 440.7 kB / 441.7 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003673/0.2572, allocations: 142.1 kB / 441.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2572, allocations: 0 / 441.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001564/0.2574, allocations: 76.03 kB / 441.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003425/0.2577, allocations: 44.64 kB / 442 MB, free: 12.22 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001076/0.2588, allocations: 0.5602 MB / 442.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001559/0.2589, allocations: 149.7 kB / 442.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.965e-05/0.259, allocations: 25.94 kB / 442.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.543e-05/0.2591, allocations: 31.42 kB / 442.7 MB, free: 11.42 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2591, allocations: 0 / 442.7 MB, free: 11.42 MB / 350.1 MB Notification: Performance of Templates: time 0.007295/0.2664, allocations: 2.963 MB / 445.7 MB, free: 8.5 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.37875427864492]