Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.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.001877/0.001877, allocations: 84.75 kB / 22 MB, free: 5.184 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.002168/0.002168, allocations: 157.8 kB / 25.24 MB, free: 3.023 MB / 14.72 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 1.378/1.378, allocations: 158.6 MB / 187 MB, free: 6.234 MB / 174.1 MB " [Timeout remaining time 178] 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.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001849/0.001849, allocations: 59.92 kB / 299.4 MB, free: 6.855 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2241/0.226, allocations: 49.14 MB / 348.5 MB, free: 15.53 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005957/0.2319, allocations: 3.92 MB / 352.4 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003696/0.2356, allocations: 1.302 MB / 353.7 MB, free: 10.28 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003721/0.236, allocations: 11.94 kB / 353.7 MB, free: 10.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003503/0.2363, allocations: 114.8 kB / 353.8 MB, free: 10.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004479/0.2368, allocations: 234 kB / 354.1 MB, free: 9.926 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001117/0.2379, allocations: 439.2 kB / 354.5 MB, free: 9.496 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001183/0.2391, allocations: 1.127 MB / 355.6 MB, free: 8.367 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003846/0.2395, allocations: 182.2 kB / 355.8 MB, free: 8.172 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006703/0.2401, allocations: 498.5 kB / 356.3 MB, free: 7.684 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006975/0.2408, allocations: 474.1 kB / 356.8 MB, free: 7.219 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001753/0.241, allocations: 92 kB / 356.8 MB, free: 7.129 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003324/0.2414, allocations: 155.9 kB / 357 MB, free: 6.977 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002822/0.2416, allocations: 219.3 kB / 357.2 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004983/0.2421, allocations: 386.3 kB / 357.6 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00138/0.2435, allocations: 1.08 MB / 358.7 MB, free: 5.305 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.2435, allocations: 7.938 kB / 358.7 MB, free: 5.297 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.2435, allocations: 0 / 358.7 MB, free: 5.297 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.841e-05/0.2435, allocations: 0 / 358.7 MB, free: 5.297 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.003665/0.2472, allocations: 1.357 MB / 360 MB, free: 3.898 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.2472, allocations: 11.98 kB / 360 MB, free: 3.887 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002319/0.2475, allocations: 92.38 kB / 360.1 MB, free: 3.797 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007616/0.2482, allocations: 388.2 kB / 360.5 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.367e-05/0.2483, allocations: 50.38 kB / 360.6 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001469/0.2485, allocations: 80.25 kB / 360.6 MB, free: 3.27 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00182/0.2503, allocations: 0.8077 MB / 361.5 MB, free: 2.457 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.402e-05/0.2503, allocations: 7.953 kB / 361.5 MB, free: 2.449 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.324e-05/0.2504, allocations: 24 kB / 361.5 MB, free: 2.426 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.663e-05/0.2504, allocations: 16 kB / 361.5 MB, free: 2.41 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0022/0.2526, allocations: 0.8627 MB / 362.4 MB, free: 1.543 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004661/0.2573, allocations: 1.843 MB / 364.2 MB, free: 15.64 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001537/0.2588, allocations: 0.6696 MB / 364.9 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001001/0.2598, allocations: 436.3 kB / 365.3 MB, free: 14.53 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.778e-05/0.2599, allocations: 13 kB / 365.3 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0013/0.2612, allocations: 0.5478 MB / 365.9 MB, free: 13.96 MB / 334.1 MB Notification: Performance of pre-optimization done (n=86): time 3.106e-06/0.2612, allocations: 0 / 365.9 MB, free: 13.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=106): time 0.01177/0.273, allocations: 3.857 MB / 369.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.177e-05/0.273, allocations: 60.41 kB / 369.8 MB, free: 10 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004687/0.2735, allocations: 377.6 kB / 370.1 MB, free: 9.625 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.425e-05/0.2736, allocations: 57.69 kB / 370.2 MB, free: 9.562 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002675/0.2739, allocations: 281.4 kB / 370.5 MB, free: 9.281 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003398/0.2742, allocations: 376.9 kB / 370.8 MB, free: 8.91 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003332/0.2745, allocations: 194.8 kB / 371 MB, free: 8.715 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001957/0.2747, allocations: 366.8 kB / 371.4 MB, free: 8.348 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001072/0.2758, allocations: 438.4 kB / 371.8 MB, free: 7.918 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001182/0.277, allocations: 0.5306 MB / 372.4 MB, free: 7.371 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001924/0.2789, allocations: 0.7831 MB / 373.1 MB, free: 6.57 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.2789, allocations: 0 / 373.1 MB, free: 6.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003667/0.2826, allocations: 1.346 MB / 374.5 MB, free: 5.207 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.173e-05/0.2826, allocations: 8 kB / 374.5 MB, free: 5.199 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.333e-05/0.2826, allocations: 4 kB / 374.5 MB, free: 5.195 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001442/0.2841, allocations: 0.6504 MB / 375.1 MB, free: 4.535 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008644/0.2849, allocations: 207.7 kB / 375.3 MB, free: 4.332 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004713/0.2896, allocations: 3.289 MB / 378.6 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001266/0.2909, allocations: 175.9 kB / 378.8 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001157/0.291, allocations: 35.98 kB / 378.8 MB, free: 0.6758 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 27 (supportFriction.free,massWithStopAndFriction.stopped,massWithStopAndFriction.mode,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.locked,massWithStopAndFriction.startBackward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,elastoGap.contact,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,7), (1,5), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0004235/0.2914, allocations: 233.6 kB / 379.1 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001662/0.2916, allocations: 71.58 kB / 379.1 MB, free: 376 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002175/0.2918, allocations: 102.9 kB / 379.2 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.2918, allocations: 12 kB / 379.3 MB, free: 260 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.2918, allocations: 0 / 379.3 MB, free: 260 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.113e-05/0.2918, allocations: 3.984 kB / 379.3 MB, free: 256 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005022/0.2969, allocations: 2.187 MB / 381.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.2969, allocations: 4 kB / 381.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008326/0.2977, allocations: 175.8 kB / 381.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001156/0.2989, allocations: 0.6193 MB / 382.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.788e-05/0.299, allocations: 31.97 kB / 382.3 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004059/0.303, allocations: 3.073 MB / 385.3 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.221e-06/0.303, allocations: 7.969 kB / 385.3 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00427/0.3073, allocations: 1.845 MB / 387.2 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000433/0.3077, allocations: 159.4 kB / 387.4 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001374/0.3079, allocations: 35.98 kB / 387.4 MB, free: 7.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001435/0.3093, allocations: 203.7 kB / 387.6 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000961/0.3103, allocations: 392.2 kB / 388 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001058/0.3104, allocations: 43.95 kB / 388 MB, free: 7.207 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003092/0.3107, allocations: 259.2 kB / 388.3 MB, free: 6.953 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3107, allocations: 0 / 388.3 MB, free: 6.953 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008046/0.3115, allocations: 243.9 kB / 388.5 MB, free: 6.715 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (springDamper.s_rel,springDamper.v_rel,elastoGap.s_rel,elastoGap.v_rel,massWithStopAndFriction.s,massWithStopAndFriction.v,springDamper1.s_rel,springDamper1.v_rel) * Number of discrete variables: 17 ($whenCondition1,elastoGap.contact,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,massWithStopAndFriction.free,massWithStopAndFriction.startForward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 9 (massWithStopAndFriction.mode,massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,brake.mode,brake.startForward,brake.startBackward,supportFriction.mode,supportFriction.startForward,supportFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,6), (1,6), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002925/0.3118, allocations: 165 kB / 388.7 MB, free: 6.547 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002742/0.3145, allocations: 1.114 MB / 389.8 MB, free: 5.422 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.3145, allocations: 0 / 389.8 MB, free: 5.422 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001739/0.3163, allocations: 0.7507 MB / 390.5 MB, free: 4.656 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008172/0.3171, allocations: 138 kB / 390.7 MB, free: 4.523 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004228/0.3213, allocations: 1.964 MB / 392.6 MB, free: 2.508 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000372/0.3217, allocations: 332.8 kB / 393 MB, free: 2.156 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003249/0.322, allocations: 73.34 kB / 393 MB, free: 2.082 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001941/0.3222, allocations: 68.47 kB / 393.1 MB, free: 2.016 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3222, allocations: 4 kB / 393.1 MB, free: 2.012 MB / 350.1 MB Notification: Performance of Templates: time 0.02922/0.3514, allocations: 15.71 MB / 408.8 MB, free: 2.242 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.23477003199514]