Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.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.001275/0.001275, allocations: 112 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.001486/0.001486, allocations: 181.3 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.39/1.39, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.Friction,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001644/0.001644, allocations: 43.92 kB / 370.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2745/0.2762, allocations: 52.2 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004692/0.2809, allocations: 3.021 MB / 425.6 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002307/0.2832, allocations: 1.185 MB / 426.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002283/0.2834, allocations: 4 kB / 426.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004297/0.2838, allocations: 75.25 kB / 426.9 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002418/0.2841, allocations: 119 kB / 427 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009516/0.285, allocations: 410.4 kB / 427.4 MB, free: 9.766 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008862/0.2859, allocations: 0.8073 MB / 428.2 MB, free: 8.953 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001871/0.2861, allocations: 69.75 kB / 428.3 MB, free: 8.879 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000548/0.2866, allocations: 359.2 kB / 428.7 MB, free: 8.527 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001571/0.2882, allocations: 1.362 MB / 430 MB, free: 7.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000131/0.2883, allocations: 68 kB / 430.1 MB, free: 7.094 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00022/0.2886, allocations: 112 kB / 430.2 MB, free: 6.984 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002221/0.2888, allocations: 235.7 kB / 430.4 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003338/0.2891, allocations: 350.1 kB / 430.8 MB, free: 6.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001/0.2901, allocations: 0.8838 MB / 431.6 MB, free: 5.531 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.2901, allocations: 0 / 431.6 MB, free: 5.531 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2901, allocations: 0 / 431.6 MB, free: 5.531 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.136e-05/0.2901, allocations: 0 / 431.6 MB, free: 5.531 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.003848/0.294, allocations: 1.404 MB / 433 MB, free: 4.082 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.072e-05/0.294, allocations: 12.03 kB / 433.1 MB, free: 4.07 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001144/0.2942, allocations: 78.7 kB / 433.1 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001506/0.2943, allocations: 80.42 kB / 433.2 MB, free: 3.906 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006629/0.295, allocations: 382.2 kB / 433.6 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.721e-05/0.295, allocations: 29.38 kB / 433.6 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.167e-05/0.2951, allocations: 40.31 kB / 433.7 MB, free: 3.438 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001835/0.297, allocations: 1.157 MB / 434.8 MB, free: 2.262 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.297, allocations: 4 kB / 434.8 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.459e-05/0.297, allocations: 15.98 kB / 434.8 MB, free: 2.242 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.297, allocations: 12 kB / 434.8 MB, free: 2.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002631/0.2997, allocations: 1.744 MB / 436.6 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00432/0.304, allocations: 2.428 MB / 439 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00162/0.3056, allocations: 0.8913 MB / 439.9 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001094/0.3067, allocations: 0.697 MB / 440.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.736e-05/0.3068, allocations: 12.44 kB / 440.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001419/0.3082, allocations: 0.9122 MB / 441.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 2.144e-06/0.3082, allocations: 0 / 441.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.01066/0.3189, allocations: 5.409 MB / 446.9 MB, free: 5.957 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.198e-05/0.3189, allocations: 81.11 kB / 447 MB, free: 5.859 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00119/0.3201, allocations: 0.9219 MB / 447.9 MB, free: 4.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000104/0.3202, allocations: 45.7 kB / 448 MB, free: 4.879 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002582/0.3205, allocations: 296.8 kB / 448.3 MB, free: 4.582 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001794/0.3207, allocations: 174.6 kB / 448.4 MB, free: 4.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002326/0.3209, allocations: 122.3 kB / 448.6 MB, free: 4.285 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000205/0.3211, allocations: 378.8 kB / 448.9 MB, free: 3.906 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001264/0.3224, allocations: 0.8408 MB / 449.8 MB, free: 3.062 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001328/0.3237, allocations: 0.9402 MB / 450.7 MB, free: 2.098 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002167/0.3259, allocations: 1.476 MB / 452.2 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-06/0.3259, allocations: 0 / 452.2 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004107/0.33, allocations: 2.487 MB / 454.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/0.33, allocations: 4 kB / 454.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/0.33, allocations: 4 kB / 454.7 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0022/0.3322, allocations: 1.904 MB / 456.6 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005283/0.3327, allocations: 115.8 kB / 456.7 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008061/0.3408, allocations: 6.494 MB / 463.2 MB, free: 5.305 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001416/0.3422, allocations: 231.7 kB / 463.4 MB, free: 5.078 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/0.3423, allocations: 20 kB / 463.4 MB, free: 5.059 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,stop1.stopped,stop1.mode,$PRE.stop1.mode,stop1.locked,stop1.startBackward,$PRE.stop1.startBackward,stop1.startForward,$PRE.stop1.startForward,stop1.free,$whenCondition2,stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * 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,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0005/0.3428, allocations: 256.2 kB / 463.7 MB, free: 4.801 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001647/0.343, allocations: 71.53 kB / 463.8 MB, free: 4.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002239/0.3432, allocations: 110.2 kB / 463.9 MB, free: 4.617 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.3432, allocations: 4 kB / 463.9 MB, free: 4.613 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/0.3432, allocations: 4 kB / 463.9 MB, free: 4.609 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.3432, allocations: 4 kB / 463.9 MB, free: 4.605 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004445/0.3477, allocations: 3.066 MB / 466.9 MB, free: 1.477 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/0.3477, allocations: 0 / 466.9 MB, free: 1.477 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004835/0.3482, allocations: 87.92 kB / 467 MB, free: 1.391 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002035/0.3502, allocations: 1.861 MB / 468.9 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.524e-05/0.3503, allocations: 23.95 kB / 468.9 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007232/0.3575, allocations: 6.136 MB / 475.1 MB, free: 9.102 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.3575, allocations: 0 / 475.1 MB, free: 9.102 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005144/0.3626, allocations: 3.225 MB / 478.3 MB, free: 5.844 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004183/0.3631, allocations: 139.4 kB / 478.4 MB, free: 5.707 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001422/0.3632, allocations: 16 kB / 478.4 MB, free: 5.691 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00161/0.3648, allocations: 267.6 kB / 478.7 MB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001406/0.3662, allocations: 0.581 MB / 479.3 MB, free: 4.848 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/0.3663, allocations: 27.97 kB / 479.3 MB, free: 4.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008161/0.3671, allocations: 0.6748 MB / 480 MB, free: 4.152 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3671, allocations: 4 kB / 480 MB, free: 4.148 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008557/0.368, allocations: 180 kB / 480.2 MB, free: 3.973 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * 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,5), (1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005598/0.3736, allocations: 3.816 MB / 484 MB, free: 112 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003203/0.3768, allocations: 1.873 MB / 485.8 MB, free: 14.21 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.3768, allocations: 0 / 485.8 MB, free: 14.21 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001861/0.3787, allocations: 1.079 MB / 486.9 MB, free: 13.11 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007347/0.3794, allocations: 79.06 kB / 487 MB, free: 13.03 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01875/0.3982, allocations: 11.6 MB / 498.6 MB, free: 1.254 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006634/0.3988, allocations: 0.9221 MB / 499.5 MB, free: 316 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002372/0.3991, allocations: 43.28 kB / 499.6 MB, free: 272 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000322/0.3994, allocations: 207.3 kB / 499.8 MB, free: 64 kB / 398.1 MB Notification: Performance of SimCode: time 1.263e-06/0.3994, allocations: 0 / 499.8 MB, free: 64 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08145/0.4808, allocations: 31.29 MB / 0.5186 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.52/14, allocations: 9.641 kB / 0.5186 GB, free: 0.918 MB / 430.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Friction_fmu --startTime=0 --stopTime=5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Friction.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.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.65301749901846]