Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.000844/0.000844, allocations: 91.61 kB / 22.18 MB, free: 2.383 MB / 18.57 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.0009105/0.0009105, allocations: 157.4 kB / 25.44 MB, free: 9.352 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8326/0.8326, allocations: 158.6 MB / 187.2 MB, free: 3.059 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 0 / 299.7 MB, free: 6.953 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.508e-05/2.688e-05, allocations: 2.281 kB / 299.7 MB, free: 6.949 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002404/0.002431, allocations: 2.127 MB / 301.8 MB, free: 4.801 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001084/0.003515, allocations: 0.9206 MB / 302.7 MB, free: 3.871 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.42e-05/0.003609, allocations: 7.875 kB / 302.7 MB, free: 3.863 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003506/0.00396, allocations: 95.5 kB / 302.8 MB, free: 3.77 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000276/0.004236, allocations: 123.2 kB / 302.9 MB, free: 3.648 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002598/0.004496, allocations: 135.5 kB / 303.1 MB, free: 3.516 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002411/0.004737, allocations: 294.7 kB / 303.4 MB, free: 3.227 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001463/0.004883, allocations: 68.77 kB / 303.4 MB, free: 3.164 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000136/0.005019, allocations: 159.6 kB / 303.6 MB, free: 3.008 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001257/0.005145, allocations: 103.7 kB / 303.7 MB, free: 2.906 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.476e-05/0.00517, allocations: 16 kB / 303.7 MB, free: 2.891 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.903e-05/0.005259, allocations: 48 kB / 303.7 MB, free: 2.844 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.298e-05/0.005322, allocations: 59.75 kB / 303.8 MB, free: 2.785 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.608e-05/0.005388, allocations: 79.77 kB / 303.9 MB, free: 2.707 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000325/0.005713, allocations: 287 kB / 304.2 MB, free: 2.426 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.005715, allocations: 0 / 304.2 MB, free: 2.426 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.005716, allocations: 7.938 kB / 304.2 MB, free: 2.418 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.838e-06/0.005726, allocations: 4 kB / 304.2 MB, free: 2.414 MB / 282.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.0005477/0.006274, allocations: 485.4 kB / 304.6 MB, free: 1.91 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.006306, allocations: 19.92 kB / 304.7 MB, free: 1.891 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.291e-05/0.006399, allocations: 28.75 kB / 304.7 MB, free: 1.863 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002162/0.006615, allocations: 190.4 kB / 304.9 MB, free: 1.648 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.006631, allocations: 8.375 kB / 304.9 MB, free: 1.641 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.86e-05/0.006659, allocations: 20.38 kB / 304.9 MB, free: 1.621 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002319/0.006891, allocations: 169.7 kB / 305.1 MB, free: 1.449 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.006905, allocations: 3.938 kB / 305.1 MB, free: 1.445 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.742e-05/0.006922, allocations: 11.98 kB / 305.1 MB, free: 1.434 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.006928, allocations: 4 kB / 305.1 MB, free: 1.43 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001628/0.007091, allocations: 119.9 kB / 305.2 MB, free: 1.312 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005655/0.007656, allocations: 467.9 kB / 305.7 MB, free: 0.8242 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002147/0.007871, allocations: 166.1 kB / 305.8 MB, free: 0.6562 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.006e-05/0.007961, allocations: 80.83 kB / 305.9 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.504e-05/0.007976, allocations: 4 kB / 305.9 MB, free: 0.5703 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001399/0.008116, allocations: 119.3 kB / 306 MB, free: 452 kB / 282.7 MB Notification: Performance of pre-optimization done (n=20): time 1.553e-06/0.008118, allocations: 3.938 kB / 306 MB, free: 448 kB / 282.7 MB Notification: Performance of matching and sorting (n=20): time 0.0003153/0.008433, allocations: 237.8 kB / 306.3 MB, free: 204 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.039e-05/0.008463, allocations: 55.41 kB / 306.3 MB, free: 136 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001706/0.008634, allocations: 243.2 kB / 306.6 MB, free: 15.89 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.26e-05/0.008667, allocations: 29.7 kB / 306.6 MB, free: 15.85 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.008776, allocations: 156.3 kB / 306.7 MB, free: 15.7 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.764e-05/0.008833, allocations: 71.41 kB / 306.8 MB, free: 15.62 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.758e-05/0.008901, allocations: 45.7 kB / 306.9 MB, free: 15.57 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.009006, allocations: 330.8 kB / 307.2 MB, free: 15.24 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001227/0.009129, allocations: 55.97 kB / 307.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001282/0.009257, allocations: 87.41 kB / 307.3 MB, free: 15.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002279/0.009485, allocations: 155.2 kB / 307.5 MB, free: 14.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.009488, allocations: 0 / 307.5 MB, free: 14.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003196/0.009807, allocations: 209.4 kB / 307.7 MB, free: 14.71 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.009821, allocations: 4 kB / 307.7 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.009827, allocations: 4 kB / 307.7 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.009839, allocations: 0 / 307.7 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000179/0.01002, allocations: 47.92 kB / 307.7 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.01002, allocations: 4 kB / 307.7 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.426e-05/0.0101, allocations: 15.88 kB / 307.7 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.527e-05/0.01011, allocations: 12 kB / 307.8 MB, free: 14.63 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 0.0001175/0.01023, allocations: 149.8 kB / 307.9 MB, free: 14.47 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.088e-05/0.01026, allocations: 19.86 kB / 307.9 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003707/0.01063, allocations: 215.4 kB / 308.1 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.01064, allocations: 4 kB / 308.1 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.01064, allocations: 0 / 308.1 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.01065, allocations: 0 / 308.1 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002165/0.01086, allocations: 213 kB / 308.3 MB, free: 13.99 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.01086, allocations: 0 / 308.3 MB, free: 13.99 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001516/0.01102, allocations: 43.92 kB / 308.4 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.01102, allocations: 0 / 308.4 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.515e-05/0.01103, allocations: 8 kB / 308.4 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.01104, allocations: 0 / 308.4 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.01104, allocations: 0 / 308.4 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004482/0.01149, allocations: 309.2 kB / 308.7 MB, free: 13.62 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.19e-05/0.01152, allocations: 23.8 kB / 308.7 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.798e-05/0.01155, allocations: 7.938 kB / 308.7 MB, free: 13.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.514e-05/0.0116, allocations: 4 kB / 308.7 MB, free: 13.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.123e-05/0.01164, allocations: 19.91 kB / 308.8 MB, free: 13.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.123e-05/0.01166, allocations: 8 kB / 308.8 MB, free: 13.56 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001485/0.01181, allocations: 188.6 kB / 308.9 MB, free: 13.38 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01181, allocations: 4.062 kB / 308.9 MB, free: 13.37 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003036/0.01212, allocations: 59.89 kB / 309 MB, free: 13.31 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.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.0009203/0.01304, allocations: 442 kB / 309.4 MB, free: 12.89 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002775/0.01331, allocations: 151.9 kB / 309.6 MB, free: 12.74 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.01332, allocations: 0 / 309.6 MB, free: 12.74 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001174/0.01343, allocations: 75.89 kB / 309.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003027/0.01374, allocations: 52.09 kB / 309.7 MB, free: 12.61 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008384/0.01457, allocations: 0.5159 MB / 310.2 MB, free: 12.07 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001163/0.01469, allocations: 132.8 kB / 310.4 MB, free: 11.91 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.742e-05/0.01475, allocations: 28.5 kB / 310.4 MB, free: 11.89 MB / 298.7 MB Notification: Performance of SimCode: time 4.51e-07/0.01475, allocations: 0 / 310.4 MB, free: 11.89 MB / 298.7 MB Notification: Performance of Templates: time 0.004868/0.01962, allocations: 3.208 MB / 313.6 MB, free: 8.672 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 7.798604016192257]