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.001705/0.001705, allocations: 116 kB / 18.45 MB, free: 4.562 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.002001/0.002001, allocations: 213.6 kB / 21.42 MB, free: 1.605 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.509/1.509, allocations: 230.6 MB / 254.8 MB, free: 15.09 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.001689/0.001689, allocations: 43.92 kB / 374.1 MB, free: 9.727 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1125, allocations: 53.34 MB / 427.5 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.00415/0.1166, allocations: 2.261 MB / 429.7 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002442/0.119, allocations: 1.231 MB / 431 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001928/0.1192, allocations: 3.938 kB / 431 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004235/0.1197, allocations: 87.5 kB / 431.1 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005769/0.1202, allocations: 167.1 kB / 431.2 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004083/0.1206, allocations: 119.6 kB / 431.3 MB, free: 416 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00049/0.1211, allocations: 294.7 kB / 431.6 MB, free: 120 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000234/0.1214, allocations: 72.58 kB / 431.7 MB, free: 44 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1955/0.3168, allocations: 109.9 kB / 431.8 MB, free: 8.172 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002677/0.3171, allocations: 132.1 kB / 431.9 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.199e-05/0.3172, allocations: 18.84 kB / 431.9 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001781/0.3173, allocations: 53.41 kB / 432 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.471e-05/0.3174, allocations: 58.81 kB / 432.1 MB, free: 8.148 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001233/0.3175, allocations: 116.3 kB / 432.2 MB, free: 8.113 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004462/0.318, allocations: 299.2 kB / 432.5 MB, free: 8.062 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.318, allocations: 0.7188 kB / 432.5 MB, free: 8.062 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.318, allocations: 0 / 432.5 MB, free: 8.062 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.318, allocations: 1.062 kB / 432.5 MB, free: 8.062 MB / 350.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.0007485/0.3187, allocations: 0.5579 MB / 433 MB, free: 7.609 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.3188, allocations: 13.84 kB / 433 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001439/0.3189, allocations: 34.09 kB / 433.1 MB, free: 7.594 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003212/0.3192, allocations: 259 kB / 433.3 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.634e-05/0.3193, allocations: 11.69 kB / 433.3 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.714e-05/0.3193, allocations: 19.59 kB / 433.4 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003076/0.3196, allocations: 161.5 kB / 433.5 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.3196, allocations: 0.5938 kB / 433.5 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.092e-05/0.3197, allocations: 13.02 kB / 433.5 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.3197, allocations: 4.156 kB / 433.5 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002384/0.3199, allocations: 122.8 kB / 433.6 MB, free: 7.324 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000716/0.3206, allocations: 0.563 MB / 434.2 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002747/0.3209, allocations: 150.9 kB / 434.4 MB, free: 7.008 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001401/0.321, allocations: 87.14 kB / 434.4 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.731e-05/0.3211, allocations: 5.297 kB / 434.4 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002012/0.3213, allocations: 114.7 kB / 434.6 MB, free: 6.949 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 2.575e-06/0.3213, allocations: 2.344 kB / 434.6 MB, free: 6.949 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004801/0.3217, allocations: 229.7 kB / 434.8 MB, free: 6.902 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.545e-05/0.3218, allocations: 60.62 kB / 434.8 MB, free: 6.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002288/0.322, allocations: 262 kB / 435.1 MB, free: 6.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.508e-05/0.322, allocations: 30.55 kB / 435.1 MB, free: 6.699 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.552e-05/0.3221, allocations: 145 kB / 435.3 MB, free: 6.602 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.462e-05/0.3221, allocations: 69.55 kB / 435.3 MB, free: 6.559 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.923e-05/0.3222, allocations: 43.8 kB / 435.4 MB, free: 6.539 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.58e-05/0.3222, allocations: 339.3 kB / 435.7 MB, free: 6.223 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.3223, allocations: 51.34 kB / 435.8 MB, free: 6.223 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001176/0.3225, allocations: 87.59 kB / 435.9 MB, free: 6.191 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002258/0.3227, allocations: 151.4 kB / 436 MB, free: 6.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.3227, allocations: 1.156 kB / 436 MB, free: 6.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003197/0.323, allocations: 197.8 kB / 436.2 MB, free: 6.113 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.323, allocations: 5.438 kB / 436.2 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.323, allocations: 7.625 kB / 436.2 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.21e-05/0.3231, allocations: 2.25 kB / 436.2 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002173/0.3233, allocations: 48.31 kB / 436.3 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.3233, allocations: 2.406 kB / 436.3 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.544e-05/0.3234, allocations: 19.42 kB / 436.3 MB, free: 6.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.521e-05/0.3234, allocations: 7.5 kB / 436.3 MB, free: 6.102 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.0001002/0.3235, allocations: 147.6 kB / 436.4 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.512e-05/0.3235, allocations: 28.02 kB / 436.5 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.86e-05/0.3236, allocations: 32.91 kB / 436.5 MB, free: 5.961 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.3236, allocations: 6.094 kB / 436.5 MB, free: 5.957 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.3236, allocations: 1.25 kB / 436.5 MB, free: 5.957 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.3236, allocations: 5.719 kB / 436.5 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002165/0.3238, allocations: 286.7 kB / 436.8 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.3238, allocations: 0 / 436.8 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001816/0.324, allocations: 37.47 kB / 436.8 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.324, allocations: 1.312 kB / 436.8 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.606e-05/0.324, allocations: 5.25 kB / 436.8 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.324, allocations: 6.234 kB / 436.8 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.324, allocations: 0 / 436.8 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004547/0.3245, allocations: 295.9 kB / 437.1 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.744e-05/0.3245, allocations: 95.03 kB / 437.2 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.289e-05/0.3246, allocations: 5.422 kB / 437.2 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.261e-05/0.3246, allocations: 7.453 kB / 437.2 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.988e-05/0.3247, allocations: 21.45 kB / 437.2 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.972e-05/0.3247, allocations: 10.64 kB / 437.3 MB, free: 5.559 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001584/0.3249, allocations: 192.8 kB / 437.4 MB, free: 5.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3249, allocations: 0 / 437.4 MB, free: 5.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000284/0.3252, allocations: 60.77 kB / 437.5 MB, free: 5.473 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.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.001458/0.3266, allocations: 413.2 kB / 437.9 MB, free: 5.324 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000333/0.3269, allocations: 138.3 kB / 438 MB, free: 5.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.3269, allocations: 4.188 kB / 438 MB, free: 5.316 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001339/0.3271, allocations: 65.55 kB / 438.1 MB, free: 5.316 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003542/0.3274, allocations: 54.48 kB / 438.2 MB, free: 5.309 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009268/0.3284, allocations: 0.5756 MB / 438.7 MB, free: 4.977 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001811/0.3285, allocations: 0.7489 MB / 439.5 MB, free: 4.277 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.754e-05/0.3286, allocations: 24.05 kB / 439.5 MB, free: 4.27 MB / 350.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3286, allocations: 0 / 439.5 MB, free: 4.27 MB / 350.1 MB Notification: Performance of Templates: time 0.006381/0.335, allocations: 3.221 MB / 442.7 MB, free: 3.938 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: 14.225987134996103]