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.001043/0.001043, allocations: 87.88 kB / 21.19 MB, free: 3.406 MB / 18.57 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.00166/0.00166, allocations: 141.1 kB / 24.54 MB, free: 60 kB / 18.57 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 0.9987/0.9987, allocations: 173.3 MB / 201.1 MB, free: 9.348 MB / 186.7 MB " [Timeout remaining time 179] 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 2.325e-06/2.325e-06, allocations: 0 / 268 MB, free: 6.477 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.338e-05/3.571e-05, allocations: 6.25 kB / 268 MB, free: 6.469 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.00406/0.004095, allocations: 2.27 MB / 270.2 MB, free: 4.188 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00151/0.005606, allocations: 1.075 MB / 271.3 MB, free: 3.105 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.698e-05/0.005703, allocations: 4 kB / 271.3 MB, free: 3.102 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003336/0.006036, allocations: 91.44 kB / 271.4 MB, free: 3.012 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002859/0.006322, allocations: 131.1 kB / 271.5 MB, free: 2.883 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003096/0.006632, allocations: 147.5 kB / 271.7 MB, free: 2.738 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000293/0.006925, allocations: 294.7 kB / 272 MB, free: 2.449 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001776/0.007103, allocations: 68.66 kB / 272 MB, free: 2.375 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001808/0.007284, allocations: 159.6 kB / 272.2 MB, free: 2.219 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001521/0.007436, allocations: 103.7 kB / 272.3 MB, free: 2.117 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.994e-05/0.007466, allocations: 16 kB / 272.3 MB, free: 2.102 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001078/0.007573, allocations: 47.98 kB / 272.4 MB, free: 2.055 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.64e-05/0.00764, allocations: 59.77 kB / 272.4 MB, free: 1.996 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.159e-05/0.007721, allocations: 75.83 kB / 272.5 MB, free: 1.922 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002848/0.008006, allocations: 223.1 kB / 272.7 MB, free: 1.703 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.008009, allocations: 0 / 272.7 MB, free: 1.703 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.00801, allocations: 0 / 272.7 MB, free: 1.703 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.008016, allocations: 0 / 272.7 MB, free: 1.703 MB / 250.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.0006173/0.008634, allocations: 0.5663 MB / 273.3 MB, free: 1.102 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.008678, allocations: 8.922 kB / 273.3 MB, free: 1.094 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001505/0.008828, allocations: 56.61 kB / 273.3 MB, free: 1.039 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002286/0.009057, allocations: 201.1 kB / 273.5 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.118e-05/0.009078, allocations: 16.09 kB / 273.5 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.835e-05/0.009107, allocations: 20.31 kB / 273.6 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002114/0.009318, allocations: 146.6 kB / 273.7 MB, free: 0.625 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.00933, allocations: 3.938 kB / 273.7 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.456e-05/0.009344, allocations: 4 kB / 273.7 MB, free: 0.6172 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.009352, allocations: 4 kB / 273.7 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001286/0.009481, allocations: 75.72 kB / 273.8 MB, free: 0.5391 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000575/0.01006, allocations: 0.4952 MB / 274.3 MB, free: 8 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001962/0.01025, allocations: 130.8 kB / 274.4 MB, free: 15.87 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.465e-05/0.01033, allocations: 55.66 kB / 274.5 MB, free: 15.81 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.543e-05/0.01034, allocations: 4 kB / 274.5 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001338/0.01048, allocations: 105.2 kB / 274.6 MB, free: 15.69 MB / 266.7 MB Notification: Performance of pre-optimization done (n=20): time 1.683e-06/0.01048, allocations: 0 / 274.6 MB, free: 15.69 MB / 266.7 MB Notification: Performance of matching and sorting (n=20): time 0.0002927/0.01077, allocations: 180.8 kB / 274.8 MB, free: 15.51 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.987e-05/0.0108, allocations: 55.41 kB / 274.8 MB, free: 15.44 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001532/0.01095, allocations: 273.8 kB / 275.1 MB, free: 15.16 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.758e-05/0.01097, allocations: 33.7 kB / 275.1 MB, free: 15.12 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.319e-05/0.01105, allocations: 199.1 kB / 275.3 MB, free: 14.92 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.148e-05/0.0111, allocations: 67.39 kB / 275.4 MB, free: 14.85 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.051e-05/0.01115, allocations: 51.36 kB / 275.4 MB, free: 14.79 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.01126, allocations: 0.5117 MB / 275.9 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.741e-05/0.01131, allocations: 19.98 kB / 275.9 MB, free: 14.25 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.833e-05/0.01138, allocations: 74.72 kB / 276 MB, free: 14.16 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001292/0.01151, allocations: 129.6 kB / 276.1 MB, free: 14.02 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.01151, allocations: 0 / 276.1 MB, free: 14.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001888/0.0117, allocations: 165.4 kB / 276.3 MB, free: 13.85 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.01171, allocations: 4 kB / 276.3 MB, free: 13.85 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.01172, allocations: 4 kB / 276.3 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.01173, allocations: 3.984 kB / 276.3 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001436/0.01188, allocations: 59.84 kB / 276.4 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.01188, allocations: 4 kB / 276.4 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.685e-05/0.01193, allocations: 11.89 kB / 276.4 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.193e-05/0.01194, allocations: 16.09 kB / 276.4 MB, free: 13.75 MB / 266.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.847e-05/0.01203, allocations: 172.5 kB / 276.6 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.493e-05/0.01205, allocations: 27.84 kB / 276.6 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002199/0.01227, allocations: 174.6 kB / 276.8 MB, free: 13.37 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.01228, allocations: 0 / 276.8 MB, free: 13.37 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.01228, allocations: 0 / 276.8 MB, free: 13.37 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.01228, allocations: 0 / 276.8 MB, free: 13.37 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001613/0.01244, allocations: 216.4 kB / 277 MB, free: 13.12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.01245, allocations: 0 / 277 MB, free: 13.12 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001125/0.01256, allocations: 43.92 kB / 277 MB, free: 13.08 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.01256, allocations: 8 kB / 277 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.272e-05/0.01258, allocations: 0 / 277 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.01258, allocations: 0 / 277 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.01258, allocations: 0 / 277 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002807/0.01286, allocations: 252 kB / 277.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.901e-05/0.01288, allocations: 15.84 kB / 277.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.213e-05/0.0129, allocations: 8 kB / 277.3 MB, free: 12.78 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.876e-05/0.01294, allocations: 7.984 kB / 277.3 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.59e-05/0.01297, allocations: 11.98 kB / 277.3 MB, free: 12.76 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.58e-05/0.01299, allocations: 7.984 kB / 277.3 MB, free: 12.75 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.178e-05/0.01308, allocations: 192.5 kB / 277.5 MB, free: 12.56 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01308, allocations: 8.031 kB / 277.5 MB, free: 12.55 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001803/0.01326, allocations: 55.89 kB / 277.6 MB, free: 12.5 MB / 266.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.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.0008211/0.01408, allocations: 394.2 kB / 278 MB, free: 12.25 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001906/0.01427, allocations: 114.8 kB / 278.1 MB, free: 12.13 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.283e-06/0.01428, allocations: 4 kB / 278.1 MB, free: 12.13 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.073e-05/0.01435, allocations: 63.59 kB / 278.1 MB, free: 12.06 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002246/0.01457, allocations: 60.52 kB / 278.2 MB, free: 12.01 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009558/0.01553, allocations: 478.6 kB / 278.7 MB, free: 11.51 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.324e-05/0.01559, allocations: 83.97 kB / 278.8 MB, free: 11.41 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.229e-05/0.01568, allocations: 21.62 kB / 278.8 MB, free: 11.39 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.142e-05/0.01574, allocations: 28.48 kB / 278.8 MB, free: 11.36 MB / 266.7 MB Notification: Performance of SimCode: time 8.61e-07/0.01574, allocations: 0 / 278.8 MB, free: 11.36 MB / 266.7 MB Notification: Performance of Templates: time 0.006337/0.02208, allocations: 2.814 MB / 281.6 MB, free: 8.59 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 5.845970641821623]