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.001405/0.001405, allocations: 82.44 kB / 20.68 MB, free: 1.023 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.001409/0.001409, allocations: 145.8 kB / 23.94 MB, free: 4.168 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.472/1.472, allocations: 173.4 MB / 200.4 MB, free: 12.87 MB / 190.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 1.814e-06/1.814e-06, allocations: 0 / 318.9 MB, free: 3.555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.201e-05/3.382e-05, allocations: 8.172 kB / 318.9 MB, free: 3.547 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003238/0.003272, allocations: 2.124 MB / 321 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00169/0.004962, allocations: 1.033 MB / 322.1 MB, free: 1.434 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001112/0.005073, allocations: 3.938 kB / 322.1 MB, free: 1.434 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003517/0.005425, allocations: 96.38 kB / 322.2 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003532/0.005778, allocations: 127.9 kB / 322.3 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003891/0.006167, allocations: 147.3 kB / 322.4 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003381/0.006505, allocations: 295.2 kB / 322.7 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001846/0.00669, allocations: 71.2 kB / 322.8 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002038/0.006894, allocations: 169.4 kB / 322.9 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002093/0.007103, allocations: 98.11 kB / 323 MB, free: 0.957 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.905e-05/0.007152, allocations: 17.59 kB / 323.1 MB, free: 0.957 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001825/0.007335, allocations: 53.16 kB / 323.1 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000103/0.007438, allocations: 58.91 kB / 323.2 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001299/0.007568, allocations: 72.77 kB / 323.2 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005148/0.008082, allocations: 303.8 kB / 323.5 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.008087, allocations: 0 / 323.5 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.008089, allocations: 0 / 323.5 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.449e-05/0.008103, allocations: 1.094 kB / 323.5 MB, free: 0.7617 MB / 286.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.0009414/0.009044, allocations: 480.7 kB / 324 MB, free: 384 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.009095, allocations: 9.859 kB / 324 MB, free: 384 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001693/0.009265, allocations: 33.2 kB / 324.1 MB, free: 368 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003405/0.009605, allocations: 192.9 kB / 324.2 MB, free: 184 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.827e-05/0.009623, allocations: 11.66 kB / 324.3 MB, free: 180 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.752e-05/0.009671, allocations: 19.89 kB / 324.3 MB, free: 172 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000356/0.01003, allocations: 171.2 kB / 324.4 MB, free: 84 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/0.01005, allocations: 9.312 kB / 324.4 MB, free: 76 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.372e-05/0.01007, allocations: 9.984 kB / 324.5 MB, free: 68 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.216e-06/0.01008, allocations: 4.125 kB / 324.5 MB, free: 68 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002725/0.01035, allocations: 121.3 kB / 324.6 MB, free: 28 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008917/0.01124, allocations: 473 kB / 325 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003497/0.01159, allocations: 161.3 kB / 325.2 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001622/0.01175, allocations: 85.7 kB / 325.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.209e-05/0.01178, allocations: 2.281 kB / 325.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002323/0.01201, allocations: 115.5 kB / 325.4 MB, free: 15.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.693e-06/0.01201, allocations: 0 / 325.4 MB, free: 15.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005515/0.01256, allocations: 243.9 kB / 325.6 MB, free: 15.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.315e-05/0.01261, allocations: 54.09 kB / 325.7 MB, free: 15.36 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002862/0.01289, allocations: 247.1 kB / 325.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.894e-05/0.01292, allocations: 31.67 kB / 326 MB, free: 15.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.01304, allocations: 151.5 kB / 326.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.715e-05/0.01311, allocations: 69.66 kB / 326.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.652e-05/0.01319, allocations: 44.17 kB / 326.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.01334, allocations: 331.5 kB / 326.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001232/0.01347, allocations: 52.34 kB / 326.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001745/0.01364, allocations: 89.89 kB / 326.7 MB, free: 14.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002779/0.01392, allocations: 152.1 kB / 326.8 MB, free: 14.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.01392, allocations: 1.25 kB / 326.8 MB, free: 14.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003975/0.01432, allocations: 208.7 kB / 327 MB, free: 14.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.01434, allocations: 5.5 kB / 327 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.01434, allocations: 1.578 kB / 327 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.01436, allocations: 6.188 kB / 327 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002269/0.01459, allocations: 50.52 kB / 327.1 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.667e-06/0.01459, allocations: 2.969 kB / 327.1 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.0147, allocations: 16.91 kB / 327.1 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.01471, allocations: 10.81 kB / 327.1 MB, free: 14.36 MB / 302.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.0001451/0.01486, allocations: 148.9 kB / 327.3 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.003e-05/0.0149, allocations: 22.97 kB / 327.3 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004505/0.01535, allocations: 219 kB / 327.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.01536, allocations: 3.703 kB / 327.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.01536, allocations: 3.938 kB / 327.5 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.01537, allocations: 2.141 kB / 327.5 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003246/0.01569, allocations: 213.3 kB / 327.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.01569, allocations: 0 / 327.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002026/0.01589, allocations: 35.78 kB / 327.8 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.0159, allocations: 1.094 kB / 327.8 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.284e-05/0.01592, allocations: 9.766 kB / 327.8 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.01592, allocations: 1.766 kB / 327.8 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.01593, allocations: 4.984 kB / 327.8 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000582/0.01651, allocations: 305.5 kB / 328.1 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.109e-05/0.01655, allocations: 31.41 kB / 328.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.708e-05/0.01659, allocations: 2.703 kB / 328.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.866e-05/0.01667, allocations: 7.531 kB / 328.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.919e-05/0.01673, allocations: 12.06 kB / 328.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.644e-05/0.01676, allocations: 10.67 kB / 328.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001958/0.01696, allocations: 185.8 kB / 328.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.01696, allocations: 4.062 kB / 328.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002921/0.01725, allocations: 58.86 kB / 328.4 MB, free: 13.61 MB / 302.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.00166/0.01891, allocations: 444.2 kB / 328.8 MB, free: 13.4 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003447/0.01925, allocations: 147.2 kB / 329 MB, free: 13.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.01925, allocations: 0 / 329 MB, free: 13.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001555/0.01941, allocations: 71.86 kB / 329 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003628/0.01977, allocations: 49.92 kB / 329.1 MB, free: 13.31 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001055/0.02083, allocations: 0.4923 MB / 329.6 MB, free: 13 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002249/0.02105, allocations: 138.8 kB / 329.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001425/0.02119, allocations: 27.5 kB / 329.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.108e-05/0.02128, allocations: 22.75 kB / 329.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of SimCode: time 4.3e-07/0.02128, allocations: 0 / 329.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of Templates: time 0.008009/0.02929, allocations: 2.606 MB / 332.4 MB, free: 12.12 MB / 302.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.525819789618254]