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.001264/0.001264, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.001375/0.001375, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.393/1.393, allocations: 230.6 MB / 258.3 MB, free: 7.996 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.001547/0.001547, allocations: 51.92 kB / 379 MB, free: 2.637 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.228/0.2296, allocations: 53.36 MB / 432.4 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003635/0.2332, allocations: 2.279 MB / 434.7 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002104/0.2353, allocations: 1.255 MB / 435.9 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.977e-05/0.2354, allocations: 4 kB / 435.9 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003222/0.2358, allocations: 91.5 kB / 436 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003981/0.2362, allocations: 163.1 kB / 436.2 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002597/0.2364, allocations: 115.6 kB / 436.3 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003581/0.2368, allocations: 302.7 kB / 436.6 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001785/0.2369, allocations: 72.77 kB / 436.6 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001768/0.2371, allocations: 115.6 kB / 436.8 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000205/0.2373, allocations: 131.5 kB / 436.9 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.541e-05/0.2374, allocations: 20 kB / 436.9 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001259/0.2375, allocations: 51.97 kB / 437 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.57e-05/0.2376, allocations: 55.78 kB / 437 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000122/0.2377, allocations: 115.3 kB / 437.1 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003893/0.2381, allocations: 292.1 kB / 437.4 MB, free: 1.883 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2381, allocations: 4 kB / 437.4 MB, free: 1.879 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.2381, allocations: 7.938 kB / 437.4 MB, free: 1.871 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.288e-06/0.2381, allocations: 0 / 437.4 MB, free: 1.871 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.0008167/0.2389, allocations: 497.2 kB / 437.9 MB, free: 1.355 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.234e-05/0.239, allocations: 8.031 kB / 437.9 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001345/0.2391, allocations: 32.75 kB / 437.9 MB, free: 1.316 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003366/0.2394, allocations: 213.9 kB / 438.2 MB, free: 1.082 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.864e-05/0.2394, allocations: 12.38 kB / 438.2 MB, free: 1.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.253e-05/0.2395, allocations: 20.12 kB / 438.2 MB, free: 1.051 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003173/0.2398, allocations: 157.6 kB / 438.3 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.2398, allocations: 0 / 438.3 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.327e-05/0.2398, allocations: 12 kB / 438.4 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.2398, allocations: 4 kB / 438.4 MB, free: 0.875 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002395/0.2401, allocations: 111.7 kB / 438.5 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008729/0.241, allocations: 0.5343 MB / 439 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000312/0.2413, allocations: 154.5 kB / 439.1 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001752/0.2414, allocations: 87.73 kB / 439.2 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.222e-05/0.2415, allocations: 12.33 kB / 439.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002164/0.2417, allocations: 115.2 kB / 439.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.543e-06/0.2417, allocations: 4 kB / 439.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005085/0.2422, allocations: 229.4 kB / 439.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.906e-05/0.2423, allocations: 55.41 kB / 439.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002722/0.2425, allocations: 256.9 kB / 439.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.535e-05/0.2426, allocations: 29.7 kB / 439.9 MB, free: 15.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.2427, allocations: 152.3 kB / 440.1 MB, free: 15.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.204e-05/0.2427, allocations: 67.44 kB / 440.1 MB, free: 14.99 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.506e-05/0.2428, allocations: 45.66 kB / 440.2 MB, free: 14.94 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.243, allocations: 342.8 kB / 440.5 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.2431, allocations: 51.91 kB / 440.6 MB, free: 14.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000137/0.2432, allocations: 87.34 kB / 440.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000254/0.2435, allocations: 143.4 kB / 440.8 MB, free: 14.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2435, allocations: 0 / 440.8 MB, free: 14.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003563/0.2438, allocations: 207.1 kB / 441 MB, free: 14.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.2438, allocations: 4 kB / 441 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.2438, allocations: 3.984 kB / 441 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.2438, allocations: 8.094 kB / 441 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002076/0.2441, allocations: 47.92 kB / 441.1 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.2441, allocations: 3.938 kB / 441.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.721e-05/0.2442, allocations: 19.89 kB / 441.1 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.468e-05/0.2442, allocations: 8 kB / 441.1 MB, free: 14 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.0001405/0.2443, allocations: 141.8 kB / 441.2 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.895e-05/0.2444, allocations: 23.86 kB / 441.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004109/0.2448, allocations: 210.4 kB / 441.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.2448, allocations: 7.938 kB / 441.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.2448, allocations: 0 / 441.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.2448, allocations: 0 / 441.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002905/0.2451, allocations: 264.5 kB / 441.7 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.2451, allocations: 0 / 441.7 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001778/0.2452, allocations: 39.86 kB / 441.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.2452, allocations: 0 / 441.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.599e-05/0.2453, allocations: 4 kB / 441.8 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.2453, allocations: 3.938 kB / 441.8 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.2453, allocations: 0 / 441.8 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005376/0.2458, allocations: 284.9 kB / 442 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.401e-05/0.2458, allocations: 23.89 kB / 442.1 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.537e-05/0.2459, allocations: 7.938 kB / 442.1 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.851e-05/0.246, allocations: 7.938 kB / 442.1 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.408e-05/0.246, allocations: 15.91 kB / 442.1 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.073e-05/0.246, allocations: 12 kB / 442.1 MB, free: 12.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001929/0.2462, allocations: 192.5 kB / 442.3 MB, free: 12.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2462, allocations: 4.062 kB / 442.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002742/0.2465, allocations: 63.83 kB / 442.4 MB, free: 12.64 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 (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.001457/0.2479, allocations: 410.9 kB / 442.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003408/0.2483, allocations: 135.8 kB / 442.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.2483, allocations: 3.938 kB / 442.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001338/0.2484, allocations: 70.78 kB / 443 MB, free: 12.19 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003307/0.2488, allocations: 64.5 kB / 443 MB, free: 12.13 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001044/0.2498, allocations: 0.5696 MB / 443.6 MB, free: 11.53 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003778/0.2502, allocations: 0.7558 MB / 444.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.472e-05/0.2502, allocations: 23.42 kB / 444.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2502, allocations: 4 kB / 444.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of Templates: time 0.005513/0.2558, allocations: 3.216 MB / 447.6 MB, free: 7.508 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins1/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: 13.637425105785951]