Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.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.0007983/0.0007983, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.003427/0.003427, allocations: 162.6 kB / 24.69 MB, free: 9.402 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.833/0.833, allocations: 158.6 MB / 186.5 MB, free: 3.039 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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 298.4 MB, free: 3.535 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.844e-05/2.007e-05, allocations: 2.281 kB / 298.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002802/0.002822, allocations: 2.762 MB / 301.2 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.118/0.1208, allocations: 1.162 MB / 302.3 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001998/0.121, allocations: 7.594 kB / 302.4 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003443/0.1214, allocations: 84.5 kB / 302.4 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001455/0.1215, allocations: 128.9 kB / 302.6 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000607/0.1221, allocations: 422.8 kB / 303 MB, free: 13.13 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004494/0.1226, allocations: 0.8223 MB / 303.8 MB, free: 13 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001357/0.1227, allocations: 66.08 kB / 303.9 MB, free: 12.98 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003971/0.1231, allocations: 492 kB / 304.3 MB, free: 12.92 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009803/0.1241, allocations: 1.289 MB / 305.6 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.956e-05/0.1242, allocations: 68 kB / 305.7 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001414/0.1243, allocations: 113.8 kB / 305.8 MB, free: 12.76 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001426/0.1244, allocations: 235.6 kB / 306 MB, free: 12.64 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001586/0.1246, allocations: 235.7 kB / 306.3 MB, free: 12.54 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006467/0.1252, allocations: 0.9551 MB / 307.2 MB, free: 12.21 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.1252, allocations: 0 / 307.2 MB, free: 12.21 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1252, allocations: 5.031 kB / 307.2 MB, free: 12.21 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.365e-06/0.1253, allocations: 1.688 kB / 307.2 MB, free: 12.21 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001825/0.1271, allocations: 1.405 MB / 308.6 MB, free: 11.47 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.1271, allocations: 13.73 kB / 308.7 MB, free: 11.46 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.899e-05/0.1272, allocations: 75.5 kB / 308.7 MB, free: 11.4 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.142e-05/0.1273, allocations: 83.48 kB / 308.8 MB, free: 11.36 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003869/0.1277, allocations: 370.2 kB / 309.2 MB, free: 11.11 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.969e-05/0.1277, allocations: 28.91 kB / 309.2 MB, free: 11.09 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.325e-05/0.1278, allocations: 40.44 kB / 309.2 MB, free: 11.08 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001143/0.1289, allocations: 1.155 MB / 310.4 MB, free: 10.78 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.1289, allocations: 2.188 kB / 310.4 MB, free: 10.78 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.342e-05/0.129, allocations: 20.28 kB / 310.4 MB, free: 10.77 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.129, allocations: 16.77 kB / 310.4 MB, free: 10.76 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001635/0.1306, allocations: 1.738 MB / 312.2 MB, free: 10.44 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002533/0.1331, allocations: 2.302 MB / 314.5 MB, free: 9.543 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009203/0.134, allocations: 0.8889 MB / 315.4 MB, free: 9.305 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006267/0.1347, allocations: 0.7043 MB / 316.1 MB, free: 9.141 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.294e-05/0.1347, allocations: 6.859 kB / 316.1 MB, free: 9.141 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008327/0.1356, allocations: 0.9068 MB / 317 MB, free: 8.895 MB / 282.7 MB Notification: Performance of pre-optimization done (n=47): time 1.363e-06/0.1356, allocations: 0 / 317 MB, free: 8.895 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.005281/0.1408, allocations: 5.42 MB / 322.4 MB, free: 6.246 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.183e-05/0.1409, allocations: 85.05 kB / 322.5 MB, free: 6.145 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005379/0.1414, allocations: 0.918 MB / 323.4 MB, free: 5.219 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.641e-05/0.1414, allocations: 49.69 kB / 323.4 MB, free: 5.164 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.67e-05/0.1415, allocations: 300.7 kB / 323.7 MB, free: 4.867 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.39e-05/0.1416, allocations: 168.4 kB / 323.9 MB, free: 4.707 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001159/0.1417, allocations: 122.2 kB / 324 MB, free: 4.578 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.749e-05/0.1418, allocations: 382.8 kB / 324.4 MB, free: 4.195 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005645/0.1423, allocations: 0.8486 MB / 325.2 MB, free: 3.348 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005919/0.1429, allocations: 0.9334 MB / 326.2 MB, free: 2.383 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009266/0.1439, allocations: 1.458 MB / 327.6 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1439, allocations: 4 kB / 327.6 MB, free: 0.8906 MB / 282.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002014/0.1459, allocations: 2.473 MB / 330.1 MB, free: 14.4 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.1459, allocations: 8 kB / 330.1 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.1459, allocations: 4 kB / 330.1 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001304/0.1472, allocations: 1.904 MB / 332 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002389/0.1474, allocations: 107.9 kB / 332.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004875/0.1523, allocations: 6.473 MB / 338.6 MB, free: 5.672 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006064/0.1529, allocations: 227.8 kB / 338.8 MB, free: 5.449 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.632e-05/0.153, allocations: 23.98 kB / 338.9 MB, free: 5.426 MB / 298.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,6), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002423/0.1532, allocations: 264.2 kB / 339.1 MB, free: 5.16 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.343e-05/0.1533, allocations: 75.53 kB / 339.2 MB, free: 5.086 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.976e-05/0.1534, allocations: 103 kB / 339.3 MB, free: 4.984 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.1534, allocations: 4 kB / 339.3 MB, free: 4.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.1534, allocations: 0 / 339.3 MB, free: 4.98 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/0.1534, allocations: 7.984 kB / 339.3 MB, free: 4.973 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00259/0.156, allocations: 2.948 MB / 342.2 MB, free: 1.965 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.156, allocations: 0 / 342.2 MB, free: 1.965 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002171/0.1562, allocations: 88.92 kB / 342.3 MB, free: 1.879 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001135/0.1573, allocations: 1.861 MB / 344.2 MB, free: 8 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.115e-05/0.1574, allocations: 32.31 kB / 344.2 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00412/0.1615, allocations: 6.097 MB / 350.3 MB, free: 9.637 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.1615, allocations: 4.031 kB / 350.3 MB, free: 9.633 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002626/0.1641, allocations: 3.225 MB / 353.5 MB, free: 6.375 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001903/0.1643, allocations: 131.5 kB / 353.7 MB, free: 6.246 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.121e-05/0.1644, allocations: 19.98 kB / 353.7 MB, free: 6.227 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006962/0.1651, allocations: 267.8 kB / 354 MB, free: 5.965 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008524/0.1659, allocations: 0.5888 MB / 354.5 MB, free: 5.375 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.188e-05/0.166, allocations: 31.84 kB / 354.6 MB, free: 5.344 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004092/0.1664, allocations: 0.6786 MB / 355.3 MB, free: 4.668 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1664, allocations: 0 / 355.3 MB, free: 4.668 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005045/0.1669, allocations: 187.9 kB / 355.4 MB, free: 4.484 MB / 314.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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003161/0.17, allocations: 3.811 MB / 359.3 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001641/0.1717, allocations: 1.891 MB / 361.1 MB, free: 14.71 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1717, allocations: 0 / 361.1 MB, free: 14.71 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009302/0.1726, allocations: 1.068 MB / 362.2 MB, free: 13.62 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003907/0.173, allocations: 74.89 kB / 362.3 MB, free: 13.55 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01035/0.1833, allocations: 11.46 MB / 373.7 MB, free: 1.906 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002141/0.1836, allocations: 326.7 kB / 374.1 MB, free: 1.562 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001366/0.1837, allocations: 39.28 kB / 374.1 MB, free: 1.523 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001985/0.1839, allocations: 204.4 kB / 374.3 MB, free: 1.324 MB / 330.7 MB Notification: Performance of SimCode: time 6.32e-07/0.1839, allocations: 0 / 374.3 MB, free: 1.324 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04005/0.224, allocations: 26.71 MB / 401 MB, free: 6.477 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.315/8.539, allocations: 11.94 kB / 401 MB, free: 6.465 MB / 362.7 MB " [Timeout remaining time 651] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Friction_fmu --startTime=0 --stopTime=5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Friction.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.23934607859701]