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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1440000,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=1440000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.283/1.283, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 109.6 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008563/0.0008565, allocations: 35.94 kB / 350 MB, free: 68 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2213/0.2221, allocations: 49.44 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002802/0.225, allocations: 2.28 MB / 401.7 MB, free: 31.08 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0013/0.2263, allocations: 1.061 MB / 402.8 MB, free: 30.01 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.855e-05/0.2264, allocations: 4 kB / 402.8 MB, free: 30.01 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003329/0.2268, allocations: 87.67 kB / 402.9 MB, free: 29.92 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002409/0.227, allocations: 107.4 kB / 403 MB, free: 29.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003136/0.2273, allocations: 121.5 kB / 403.1 MB, free: 29.7 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002312/0.2276, allocations: 274.8 kB / 403.4 MB, free: 29.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001614/0.2277, allocations: 85 kB / 403.5 MB, free: 29.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001059/0.2279, allocations: 99.58 kB / 403.6 MB, free: 29.24 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001322/0.228, allocations: 127.5 kB / 403.7 MB, free: 29.11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.886e-05/0.228, allocations: 12 kB / 403.7 MB, free: 29.1 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001198/0.2282, allocations: 51.97 kB / 403.8 MB, free: 29.05 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.376e-05/0.2282, allocations: 51.78 kB / 403.8 MB, free: 29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.899e-05/0.2283, allocations: 111.3 kB / 403.9 MB, free: 28.89 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002247/0.2286, allocations: 272.6 kB / 404.2 MB, free: 28.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2286, allocations: 0 / 404.2 MB, free: 28.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.123e-06/0.2286, allocations: 0 / 404.2 MB, free: 28.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.2286, allocations: 0 / 404.2 MB, free: 28.62 MB / 298.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.0006608/0.2292, allocations: 0.5537 MB / 404.7 MB, free: 28.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.2293, allocations: 12.03 kB / 404.7 MB, free: 28.01 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001371/0.2294, allocations: 24.66 kB / 404.8 MB, free: 27.99 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002086/0.2296, allocations: 256.6 kB / 405 MB, free: 27.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.693e-05/0.2297, allocations: 12.38 kB / 405 MB, free: 27.69 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.055e-05/0.2297, allocations: 28.05 kB / 405.1 MB, free: 27.66 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002578/0.23, allocations: 165.3 kB / 405.2 MB, free: 27.49 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.23, allocations: 0 / 405.2 MB, free: 27.49 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.697e-05/0.23, allocations: 4 kB / 405.2 MB, free: 27.49 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.23, allocations: 12 kB / 405.2 MB, free: 27.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000202/0.2302, allocations: 111.9 kB / 405.3 MB, free: 27.37 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006584/0.2309, allocations: 0.5661 MB / 405.9 MB, free: 26.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002574/0.2312, allocations: 167.1 kB / 406.1 MB, free: 26.58 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001248/0.2313, allocations: 84.83 kB / 406.2 MB, free: 26.49 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.934e-05/0.2313, allocations: 4 kB / 406.2 MB, free: 26.49 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002628/0.2316, allocations: 115.3 kB / 406.3 MB, free: 26.36 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 1.533e-06/0.2316, allocations: 0 / 406.3 MB, free: 26.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.0004073/0.232, allocations: 236.5 kB / 406.5 MB, free: 26.13 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.518e-05/0.2321, allocations: 59.39 kB / 406.6 MB, free: 26.06 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001681/0.2322, allocations: 249 kB / 406.8 MB, free: 25.81 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.275e-05/0.2323, allocations: 25.7 kB / 406.8 MB, free: 25.78 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.083e-05/0.2323, allocations: 148.3 kB / 407 MB, free: 25.63 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.882e-05/0.2324, allocations: 63.09 kB / 407 MB, free: 25.57 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.155e-05/0.2324, allocations: 41.7 kB / 407.1 MB, free: 25.52 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.112e-05/0.2325, allocations: 346.8 kB / 407.4 MB, free: 25.17 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.216e-05/0.2326, allocations: 47.97 kB / 407.5 MB, free: 25.12 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000102/0.2327, allocations: 83.41 kB / 407.5 MB, free: 25.03 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001875/0.2329, allocations: 139.4 kB / 407.7 MB, free: 24.88 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2329, allocations: 4 kB / 407.7 MB, free: 24.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003263/0.2332, allocations: 207.2 kB / 407.9 MB, free: 24.67 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.2333, allocations: 8 kB / 407.9 MB, free: 24.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.2333, allocations: 3.984 kB / 407.9 MB, free: 24.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.2333, allocations: 7.984 kB / 407.9 MB, free: 24.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001876/0.2335, allocations: 47.92 kB / 408 MB, free: 24.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.2335, allocations: 11.86 kB / 408 MB, free: 24.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001042/0.2336, allocations: 27.86 kB / 408 MB, free: 24.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.19e-05/0.2336, allocations: 12 kB / 408 MB, free: 24.55 MB / 298.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 8.637e-05/0.2337, allocations: 137.8 kB / 408.1 MB, free: 24.41 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.544e-05/0.2338, allocations: 19.72 kB / 408.2 MB, free: 24.39 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.881e-05/0.2338, allocations: 30.19 kB / 408.2 MB, free: 24.36 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.2338, allocations: 4 kB / 408.2 MB, free: 24.36 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.2338, allocations: 3.938 kB / 408.2 MB, free: 24.35 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.2338, allocations: 7.922 kB / 408.2 MB, free: 24.34 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001821/0.234, allocations: 285.4 kB / 408.5 MB, free: 24.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.234, allocations: 0 / 408.5 MB, free: 24.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001542/0.2342, allocations: 35.98 kB / 408.5 MB, free: 23.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.2342, allocations: 4 kB / 408.5 MB, free: 23.98 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.403e-05/0.2342, allocations: 0 / 408.5 MB, free: 23.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.2342, allocations: 0 / 408.5 MB, free: 23.98 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.2342, allocations: 3.938 kB / 408.5 MB, free: 23.97 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002118/0.2364, allocations: 2.12 MB / 410.6 MB, free: 21.65 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.469e-05/0.2364, allocations: 100.9 kB / 410.7 MB, free: 21.53 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.273e-05/0.2365, allocations: 0 / 410.7 MB, free: 21.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.037e-05/0.2365, allocations: 8 kB / 410.8 MB, free: 21.52 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.054e-05/0.2366, allocations: 15.97 kB / 410.8 MB, free: 21.51 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-05/0.2366, allocations: 8 kB / 410.8 MB, free: 21.5 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001141/0.2367, allocations: 184.5 kB / 411 MB, free: 21.32 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2367, allocations: 4.062 kB / 411 MB, free: 21.31 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003776/0.2371, allocations: 83.83 kB / 411 MB, free: 21.23 MB / 298.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.nextTimeEventScaled,lossTable.nextTimeEvent) * 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.0008157/0.2379, allocations: 411.9 kB / 411.4 MB, free: 20.98 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002864/0.2382, allocations: 145.8 kB / 411.6 MB, free: 20.84 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2383, allocations: 0 / 411.6 MB, free: 20.84 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001128/0.2384, allocations: 71.91 kB / 411.7 MB, free: 20.77 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003325/0.2387, allocations: 57.38 kB / 411.7 MB, free: 20.71 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009334/0.2397, allocations: 0.7867 MB / 412.5 MB, free: 19.89 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001433/0.2398, allocations: 0.7482 MB / 413.2 MB, free: 19.11 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001158/0.2399, allocations: 41.91 kB / 413.3 MB, free: 19.07 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.617e-05/0.24, allocations: 31.36 kB / 413.3 MB, free: 19.04 MB / 298.7 MB Notification: Performance of SimCode: time 3.3e-07/0.24, allocations: 0 / 413.3 MB, free: 19.04 MB / 298.7 MB Notification: Performance of Templates: time 0.005121/0.2451, allocations: 2.87 MB / 416.2 MB, free: 16.21 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches