Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.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.001402/0.001402, allocations: 112.2 kB / 20.43 MB, free: 1.457 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.001505/0.001505, allocations: 183.4 kB / 23.72 MB, free: 4.699 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.426/1.426, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001639/0.001639, allocations: 51.92 kB / 370.4 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2581/0.2597, allocations: 52.18 MB / 422.6 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006509/0.2662, allocations: 4.344 MB / 427 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003121/0.2693, allocations: 1.403 MB / 428.4 MB, free: 8.785 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007229/0.2701, allocations: 15.88 kB / 428.4 MB, free: 8.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005115/0.2706, allocations: 118.8 kB / 428.5 MB, free: 8.652 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009455/0.2715, allocations: 226 kB / 428.7 MB, free: 8.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001592/0.2731, allocations: 427.2 kB / 429.1 MB, free: 8.012 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001872/0.275, allocations: 1.135 MB / 430.3 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000472/0.2755, allocations: 182.2 kB / 430.5 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001116/0.2766, allocations: 498.6 kB / 430.9 MB, free: 6.188 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001046/0.2776, allocations: 0.5215 MB / 431.5 MB, free: 5.664 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003336/0.278, allocations: 92 kB / 431.6 MB, free: 5.574 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005275/0.2785, allocations: 147.9 kB / 431.7 MB, free: 5.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000339/0.2788, allocations: 227.3 kB / 431.9 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007655/0.2796, allocations: 449.9 kB / 432.4 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001662/0.2813, allocations: 1.067 MB / 433.4 MB, free: 3.703 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.2813, allocations: 0 / 433.4 MB, free: 3.703 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2813, allocations: 3.938 kB / 433.4 MB, free: 3.699 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.294e-05/0.2813, allocations: 0 / 433.4 MB, free: 3.699 MB / 334.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.003624/0.2849, allocations: 1.357 MB / 434.8 MB, free: 2.301 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/0.285, allocations: 15.97 kB / 434.8 MB, free: 2.285 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001756/0.2851, allocations: 110.7 kB / 434.9 MB, free: 2.168 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002722/0.2854, allocations: 96.36 kB / 435 MB, free: 2.074 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007462/0.2862, allocations: 380.2 kB / 435.4 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.11e-05/0.2862, allocations: 54.38 kB / 435.4 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001422/0.2864, allocations: 76.33 kB / 435.5 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00171/0.2881, allocations: 0.8075 MB / 436.3 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.679e-05/0.2881, allocations: 11.94 kB / 436.3 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.026e-05/0.2882, allocations: 32 kB / 436.4 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.805e-05/0.2882, allocations: 16 kB / 436.4 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00216/0.2904, allocations: 0.8627 MB / 437.2 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004733/0.2951, allocations: 2.323 MB / 439.6 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001523/0.2966, allocations: 0.676 MB / 440.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000965/0.2976, allocations: 432.3 kB / 440.7 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.696e-05/0.2977, allocations: 9 kB / 440.7 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001228/0.2989, allocations: 0.5517 MB / 441.2 MB, free: 11.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=86): time 3.096e-06/0.2989, allocations: 0 / 441.2 MB, free: 11.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.01077/0.3097, allocations: 3.86 MB / 445.1 MB, free: 7.797 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.331e-05/0.3097, allocations: 68.41 kB / 445.1 MB, free: 7.719 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005022/0.3102, allocations: 393.9 kB / 445.5 MB, free: 7.328 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001054/0.3103, allocations: 57.69 kB / 445.6 MB, free: 7.266 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002246/0.3106, allocations: 273.5 kB / 445.8 MB, free: 6.992 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003564/0.3109, allocations: 384.8 kB / 446.2 MB, free: 6.613 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003409/0.3113, allocations: 186.9 kB / 446.4 MB, free: 6.426 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002125/0.3115, allocations: 366.8 kB / 446.8 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001035/0.3125, allocations: 438.4 kB / 447.2 MB, free: 5.629 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001115/0.3136, allocations: 0.5306 MB / 447.7 MB, free: 5.078 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001796/0.3154, allocations: 0.7792 MB / 448.5 MB, free: 4.281 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.3154, allocations: 0 / 448.5 MB, free: 4.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003231/0.3187, allocations: 1.346 MB / 449.8 MB, free: 2.918 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.998e-05/0.3187, allocations: 8 kB / 449.9 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.3187, allocations: 0 / 449.9 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001224/0.3199, allocations: 0.6504 MB / 450.5 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008272/0.3207, allocations: 207.6 kB / 450.7 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004381/0.3251, allocations: 3.334 MB / 454 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001233/0.3264, allocations: 171.9 kB / 454.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001305/0.3265, allocations: 43.98 kB / 454.3 MB, free: 14.34 MB / 366.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.000457/0.327, allocations: 233.7 kB / 454.5 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001749/0.3271, allocations: 71.58 kB / 454.6 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002526/0.3274, allocations: 103 kB / 454.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.069e-05/0.3274, allocations: 8 kB / 454.7 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.3274, allocations: 4 kB / 454.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.246e-05/0.3274, allocations: 7.969 kB / 454.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00491/0.3323, allocations: 2.45 MB / 457.1 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.053e-05/0.3323, allocations: 4 kB / 457.1 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007864/0.3331, allocations: 180 kB / 457.3 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001103/0.3342, allocations: 0.6153 MB / 457.9 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.949e-05/0.3343, allocations: 35.95 kB / 458 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003803/0.3381, allocations: 3.124 MB / 461.1 MB, free: 7.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.3381, allocations: 0 / 461.1 MB, free: 7.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00402/0.3421, allocations: 1.833 MB / 462.9 MB, free: 5.352 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004296/0.3426, allocations: 163.4 kB / 463.1 MB, free: 5.191 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001519/0.3427, allocations: 32 kB / 463.1 MB, free: 5.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001253/0.344, allocations: 203.7 kB / 463.3 MB, free: 4.961 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008857/0.3449, allocations: 396.2 kB / 463.7 MB, free: 4.574 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001089/0.345, allocations: 35.97 kB / 463.7 MB, free: 4.539 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003334/0.3453, allocations: 271.1 kB / 464 MB, free: 4.273 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3453, allocations: 0 / 464 MB, free: 4.273 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008573/0.3462, allocations: 244 kB / 464.2 MB, free: 4.035 MB / 366.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.004614/0.3508, allocations: 2.455 MB / 466.7 MB, free: 1.523 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002728/0.3535, allocations: 1.118 MB / 467.8 MB, free: 400 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.3535, allocations: 0 / 467.8 MB, free: 400 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001642/0.3552, allocations: 0.7465 MB / 468.5 MB, free: 15.63 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008942/0.356, allocations: 134.5 kB / 468.7 MB, free: 15.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01492/0.371, allocations: 7.326 MB / 476 MB, free: 7.988 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007038/0.3717, allocations: 0.9283 MB / 476.9 MB, free: 7.031 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004166/0.3721, allocations: 81.44 kB / 477 MB, free: 6.949 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005034/0.3726, allocations: 247.3 kB / 477.2 MB, free: 6.707 MB / 382.1 MB Notification: Performance of SimCode: time 1.213e-06/0.3726, allocations: 4 kB / 477.3 MB, free: 6.703 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06839/0.441, allocations: 24.7 MB / 0.4902 GB, free: 14.2 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.58/14.02, allocations: 6.5 kB / 0.4902 GB, free: 14.2 MB / 414.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_HeatLosses_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_HeatLosses.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 16.561560730915517]