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.001808/0.001808, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.00253/0.00253, allocations: 211.4 kB / 23.73 MB, free: 4.41 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.492/1.492, allocations: 230.6 MB / 257.5 MB, free: 7.812 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.001556/0.001556, allocations: 51.89 kB / 378.2 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2257/0.2273, allocations: 53.37 MB / 431.6 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003635/0.2309, allocations: 2.139 MB / 433.7 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002078/0.233, allocations: 1.177 MB / 434.9 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001094/0.2331, allocations: 4 kB / 434.9 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003624/0.2335, allocations: 91.5 kB / 435 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004316/0.2339, allocations: 163.1 kB / 435.1 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002731/0.2342, allocations: 119.6 kB / 435.3 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003623/0.2345, allocations: 298.8 kB / 435.5 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001804/0.2347, allocations: 64.77 kB / 435.6 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001478/0.2349, allocations: 115.6 kB / 435.7 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001944/0.2351, allocations: 119.5 kB / 435.8 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.815e-05/0.2351, allocations: 23.94 kB / 435.9 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001325/0.2352, allocations: 51.98 kB / 435.9 MB, free: 2.355 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.672e-05/0.2353, allocations: 59.75 kB / 436 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001191/0.2354, allocations: 95.47 kB / 436.1 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003784/0.2358, allocations: 297.1 kB / 436.4 MB, free: 1.918 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2358, allocations: 0 / 436.4 MB, free: 1.918 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2358, allocations: 3.938 kB / 436.4 MB, free: 1.914 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.2358, allocations: 0 / 436.4 MB, free: 1.914 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.0008273/0.2367, allocations: 0.4895 MB / 436.8 MB, free: 1.395 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.2367, allocations: 8.031 kB / 436.9 MB, free: 1.387 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001437/0.2368, allocations: 32.75 kB / 436.9 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003391/0.2372, allocations: 210 kB / 437.1 MB, free: 1.125 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.963e-05/0.2372, allocations: 8.375 kB / 437.1 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.478e-05/0.2372, allocations: 20.12 kB / 437.1 MB, free: 1.098 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003276/0.2376, allocations: 165.5 kB / 437.3 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.2376, allocations: 0 / 437.3 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.406e-05/0.2376, allocations: 8 kB / 437.3 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.2376, allocations: 4 kB / 437.3 MB, free: 0.918 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002606/0.2379, allocations: 119.7 kB / 437.4 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008506/0.2387, allocations: 483.8 kB / 437.9 MB, free: 304 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003389/0.2391, allocations: 154.5 kB / 438 MB, free: 140 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001705/0.2392, allocations: 80.83 kB / 438.1 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.115e-05/0.2392, allocations: 0 / 438.1 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002404/0.2395, allocations: 122.4 kB / 438.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.523e-06/0.2395, allocations: 3.938 kB / 438.2 MB, free: 15.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005219/0.24, allocations: 237.4 kB / 438.5 MB, free: 15.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.88e-05/0.24, allocations: 55.41 kB / 438.5 MB, free: 15.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002762/0.2403, allocations: 260.1 kB / 438.8 MB, free: 15.35 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.285e-05/0.2404, allocations: 33.7 kB / 438.8 MB, free: 15.31 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.2405, allocations: 148.3 kB / 439 MB, free: 15.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.634e-05/0.2405, allocations: 75.38 kB / 439 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.449e-05/0.2406, allocations: 41.7 kB / 439.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.2408, allocations: 338.8 kB / 439.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001203/0.2409, allocations: 51.97 kB / 439.4 MB, free: 14.65 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001469/0.241, allocations: 83.41 kB / 439.5 MB, free: 14.56 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002693/0.2413, allocations: 155.3 kB / 439.7 MB, free: 14.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2413, allocations: 0 / 439.7 MB, free: 14.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003696/0.2417, allocations: 212 kB / 439.9 MB, free: 14.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.2417, allocations: 7.984 kB / 439.9 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.2417, allocations: 4 kB / 439.9 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.2417, allocations: 0 / 439.9 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002234/0.2419, allocations: 39.98 kB / 439.9 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.24e-05/0.2419, allocations: 15.86 kB / 440 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.722e-05/0.242, allocations: 23.92 kB / 440 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.815e-05/0.2421, allocations: 8 kB / 440 MB, free: 14.09 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.0001364/0.2422, allocations: 141.8 kB / 440.1 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.43e-05/0.2422, allocations: 23.86 kB / 440.1 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004222/0.2427, allocations: 219.3 kB / 440.4 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.031e-05/0.2427, allocations: 7.984 kB / 440.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2427, allocations: 0 / 440.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.2427, allocations: 0 / 440.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002564/0.2429, allocations: 217.1 kB / 440.6 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2429, allocations: 4 kB / 440.6 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002038/0.2431, allocations: 35.92 kB / 440.6 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.2431, allocations: 4 kB / 440.6 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.2432, allocations: 4 kB / 440.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.2432, allocations: 4 kB / 440.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2432, allocations: 0 / 440.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005297/0.2437, allocations: 306.5 kB / 440.9 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.131e-05/0.2437, allocations: 27.83 kB / 441 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.986e-05/0.2438, allocations: 3.938 kB / 441 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.359e-05/0.2439, allocations: 8 kB / 441 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.473e-05/0.2439, allocations: 23.97 kB / 441 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.732e-05/0.2439, allocations: 4 kB / 441 MB, free: 13.01 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000192/0.2441, allocations: 193.6 kB / 441.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2441, allocations: 0 / 441.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002832/0.2444, allocations: 63.89 kB / 441.2 MB, free: 12.76 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.001591/0.246, allocations: 444.1 kB / 441.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003192/0.2463, allocations: 141.9 kB / 441.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.2463, allocations: 192 / 441.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001484/0.2464, allocations: 79.84 kB / 441.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003047/0.2468, allocations: 44.16 kB / 441.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009884/0.2477, allocations: 0.5602 MB / 442.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001453/0.2479, allocations: 149.7 kB / 442.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.783e-05/0.248, allocations: 29.94 kB / 442.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.973e-05/0.248, allocations: 23.42 kB / 442.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.248, allocations: 0 / 442.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of Templates: time 0.006881/0.2549, allocations: 2.903 MB / 445.6 MB, free: 8.59 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.605766812339425]