Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009357/0.0009357, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001758/0.001758, allocations: 156.9 kB / 23.94 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8925/0.8925, allocations: 177 MB / 204.1 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.223e-06/1.223e-06, allocations: 0 / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.177e-05/1.3e-05, allocations: 7.125 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.00296/0.002973, allocations: 2.911 MB / 327.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001722/0.004695, allocations: 1.304 MB / 328.7 MB, free: 11.65 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001741/0.004869, allocations: 7.938 kB / 328.7 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004271/0.005296, allocations: 99.14 kB / 328.8 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001948/0.005491, allocations: 130.9 kB / 328.9 MB, free: 11.42 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006927/0.006184, allocations: 430 kB / 329.4 MB, free: 11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006077/0.006791, allocations: 0.8384 MB / 330.2 MB, free: 10.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001545/0.006946, allocations: 65.69 kB / 330.3 MB, free: 10.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005371/0.007483, allocations: 0.4953 MB / 330.8 MB, free: 9.594 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001014/0.008497, allocations: 1.416 MB / 332.2 MB, free: 8.172 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.348e-05/0.008591, allocations: 68 kB / 332.2 MB, free: 8.105 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001884/0.008779, allocations: 139.8 kB / 332.4 MB, free: 7.969 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001698/0.008949, allocations: 239.8 kB / 332.6 MB, free: 7.734 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001663/0.009115, allocations: 239.4 kB / 332.9 MB, free: 7.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007415/0.009857, allocations: 0.9815 MB / 333.8 MB, free: 6.516 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.00986, allocations: 4 kB / 333.8 MB, free: 6.512 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.009861, allocations: 0 / 333.8 MB, free: 6.512 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.414e-05/0.009875, allocations: 0 / 333.8 MB, free: 6.512 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.002075/0.01195, allocations: 1.427 MB / 335.3 MB, free: 5.039 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.01199, allocations: 15.98 kB / 335.3 MB, free: 5.023 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.969e-05/0.01207, allocations: 78.7 kB / 335.4 MB, free: 4.938 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002759/0.01235, allocations: 100.4 kB / 335.5 MB, free: 4.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000418/0.01276, allocations: 389.3 kB / 335.8 MB, free: 4.434 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.517e-05/0.0128, allocations: 33.31 kB / 335.9 MB, free: 4.402 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.176e-05/0.01286, allocations: 36.38 kB / 335.9 MB, free: 4.367 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009909/0.01385, allocations: 0.6307 MB / 336.5 MB, free: 3.719 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.679e-05/0.01388, allocations: 12.12 kB / 336.5 MB, free: 3.707 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.14e-05/0.01393, allocations: 19.94 kB / 336.6 MB, free: 3.688 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.01394, allocations: 8 kB / 336.6 MB, free: 3.68 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00107/0.01501, allocations: 0.6857 MB / 337.3 MB, free: 2.988 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002047/0.01706, allocations: 1.476 MB / 338.7 MB, free: 1.441 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007813/0.01784, allocations: 492 kB / 339.2 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004397/0.01828, allocations: 285.6 kB / 339.5 MB, free: 0.6602 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.26e-05/0.01832, allocations: 11.88 kB / 339.5 MB, free: 0.6484 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006529/0.01897, allocations: 491.1 kB / 340 MB, free: 156 kB / 298.7 MB Notification: Performance of pre-optimization done (n=48): time 1.423e-06/0.01898, allocations: 4 kB / 340 MB, free: 152 kB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.004593/0.02357, allocations: 2.438 MB / 342.4 MB, free: 13.65 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.925e-05/0.02361, allocations: 89.05 kB / 342.5 MB, free: 13.54 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006404/0.02425, allocations: 0.9219 MB / 343.4 MB, free: 12.61 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.415e-05/0.0243, allocations: 49.69 kB / 343.5 MB, free: 12.55 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001439/0.02445, allocations: 304.7 kB / 343.8 MB, free: 12.25 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/0.02455, allocations: 174.7 kB / 344 MB, free: 12.08 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001441/0.0247, allocations: 118.3 kB / 344.1 MB, free: 11.96 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.02481, allocations: 378.8 kB / 344.4 MB, free: 11.58 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006177/0.02542, allocations: 321.1 kB / 344.8 MB, free: 11.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005125/0.02594, allocations: 418.9 kB / 345.2 MB, free: 10.83 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007525/0.02669, allocations: 0.5086 MB / 345.7 MB, free: 10.29 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.02669, allocations: 4 kB / 345.7 MB, free: 10.29 MB / 314.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001482/0.02817, allocations: 0.9873 MB / 346.7 MB, free: 9.281 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.02819, allocations: 4 kB / 346.7 MB, free: 9.277 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.0282, allocations: 4 kB / 346.7 MB, free: 9.273 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000661/0.02886, allocations: 0.5451 MB / 347.2 MB, free: 8.719 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002514/0.02911, allocations: 115.8 kB / 347.3 MB, free: 8.605 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003955/0.03306, allocations: 4.501 MB / 351.8 MB, free: 3.848 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00061/0.03367, allocations: 227.8 kB / 352 MB, free: 3.625 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.642e-05/0.03371, allocations: 23.98 kB / 352.1 MB, free: 3.602 MB / 314.7 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,7), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002327/0.03394, allocations: 252.3 kB / 352.3 MB, free: 3.344 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.532e-05/0.03402, allocations: 79.47 kB / 352.4 MB, free: 3.266 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.512e-05/0.0341, allocations: 110.2 kB / 352.5 MB, free: 3.156 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.03411, allocations: 12 kB / 352.5 MB, free: 3.145 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.03411, allocations: 0 / 352.5 MB, free: 3.145 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.03411, allocations: 3.984 kB / 352.5 MB, free: 3.141 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001626/0.03574, allocations: 1.258 MB / 353.8 MB, free: 1.816 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.03574, allocations: 3.984 kB / 353.8 MB, free: 1.812 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002195/0.03596, allocations: 87.88 kB / 353.9 MB, free: 1.727 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005682/0.03653, allocations: 0.5177 MB / 354.4 MB, free: 1.199 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.977e-05/0.03657, allocations: 19.97 kB / 354.4 MB, free: 1.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003322/0.03989, allocations: 4.117 MB / 358.5 MB, free: 12.81 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.0399, allocations: 3.984 kB / 358.5 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001811/0.04171, allocations: 1.259 MB / 359.8 MB, free: 11.52 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000186/0.04189, allocations: 139.4 kB / 359.9 MB, free: 11.38 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.403e-05/0.04196, allocations: 24 kB / 359.9 MB, free: 11.36 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007148/0.04267, allocations: 279.6 kB / 360.2 MB, free: 11.08 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008892/0.04356, allocations: 0.5732 MB / 360.8 MB, free: 10.51 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.019e-05/0.04361, allocations: 31.95 kB / 360.8 MB, free: 10.48 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004253/0.04404, allocations: 0.6709 MB / 361.5 MB, free: 9.809 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.04404, allocations: 0 / 361.5 MB, free: 9.809 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004696/0.04451, allocations: 176 kB / 361.7 MB, free: 9.637 MB / 330.7 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003195/0.0477, allocations: 2.112 MB / 363.8 MB, free: 7.605 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001526/0.04923, allocations: 0.9263 MB / 364.7 MB, free: 6.648 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.04923, allocations: 0 / 364.7 MB, free: 6.648 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009006/0.05013, allocations: 0.6498 MB / 365.4 MB, free: 5.973 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005235/0.05066, allocations: 86.09 kB / 365.4 MB, free: 5.895 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008486/0.05914, allocations: 6.671 MB / 372.1 MB, free: 15.04 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002439/0.05939, allocations: 326.9 kB / 372.4 MB, free: 14.7 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001849/0.05957, allocations: 47.27 kB / 372.5 MB, free: 14.65 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002158/0.05979, allocations: 212.4 kB / 372.7 MB, free: 14.44 MB / 346.7 MB Notification: Performance of SimCode: time 1.172e-06/0.05979, allocations: 0 / 372.7 MB, free: 14.44 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04159/0.1014, allocations: 21.46 MB / 394.1 MB, free: 9.047 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.201/8.303, allocations: 11.84 kB / 394.2 MB, free: 9.035 MB / 362.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_Friction_fmu --startTime=0 --stopTime=5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Friction.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 10.179523413069546]