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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001126/0.001126, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001297/0.001297, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 60.69 kB / 307 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1242, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004902/0.1291, allocations: 3.103 MB / 360.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002579/0.1318, allocations: 1.347 MB / 362 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000425/0.1322, allocations: 11.94 kB / 362 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005113/0.1328, allocations: 95.2 kB / 362.1 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000354/0.1331, allocations: 122.9 kB / 362.3 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009867/0.1341, allocations: 426.3 kB / 362.7 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001022/0.1352, allocations: 0.8114 MB / 363.5 MB, free: 8.074 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000203/0.1354, allocations: 98.64 kB / 363.6 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006132/0.136, allocations: 371.1 kB / 363.9 MB, free: 7.613 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001672/0.1377, allocations: 1.467 MB / 365.4 MB, free: 6.141 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001935/0.1379, allocations: 72 kB / 365.5 MB, free: 6.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003122/0.1382, allocations: 128 kB / 365.6 MB, free: 5.945 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002632/0.1385, allocations: 239.7 kB / 365.8 MB, free: 5.711 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003827/0.1389, allocations: 354 kB / 366.2 MB, free: 5.363 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001458/0.1403, allocations: 0.8998 MB / 367.1 MB, free: 4.461 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.626e-06/0.1404, allocations: 4 kB / 367.1 MB, free: 4.457 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1404, allocations: 0 / 367.1 MB, free: 4.457 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.094e-05/0.1404, allocations: 0 / 367.1 MB, free: 4.457 MB / 302.1 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.004461/0.1449, allocations: 1.344 MB / 368.4 MB, free: 3.062 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.1449, allocations: 12.03 kB / 368.4 MB, free: 3.051 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001289/0.1451, allocations: 74.72 kB / 368.5 MB, free: 2.969 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005735/0.1457, allocations: 104 kB / 368.6 MB, free: 2.867 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005884/0.1463, allocations: 431.4 kB / 369 MB, free: 2.402 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.459e-05/0.1463, allocations: 29.38 kB / 369.1 MB, free: 2.371 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001095/0.1464, allocations: 40.28 kB / 369.1 MB, free: 2.332 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001605/0.1481, allocations: 0.638 MB / 369.7 MB, free: 1.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.372e-05/0.1481, allocations: 0 / 369.7 MB, free: 1.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.45e-05/0.1482, allocations: 19.98 kB / 369.8 MB, free: 1.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.29e-05/0.1482, allocations: 12 kB / 369.8 MB, free: 1.648 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002056/0.1503, allocations: 0.6914 MB / 370.5 MB, free: 0.957 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2049/0.3551, allocations: 1.66 MB / 372.1 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001515/0.3567, allocations: 497.3 kB / 372.6 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008272/0.3575, allocations: 295.6 kB / 372.9 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.203e-05/0.3576, allocations: 11.53 kB / 372.9 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001385/0.359, allocations: 487.5 kB / 373.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 2.064e-06/0.359, allocations: 0 / 373.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.009483/0.3685, allocations: 2.808 MB / 376.2 MB, free: 14.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.742e-05/0.3686, allocations: 84.45 kB / 376.3 MB, free: 14.1 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001/0.3696, allocations: 0.9153 MB / 377.2 MB, free: 13.97 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.237e-05/0.3697, allocations: 48.7 kB / 377.2 MB, free: 13.94 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001997/0.3699, allocations: 308.1 kB / 377.5 MB, free: 13.81 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001446/0.37, allocations: 164.5 kB / 377.7 MB, free: 13.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002481/0.3703, allocations: 124.3 kB / 377.8 MB, free: 13.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.3705, allocations: 383.9 kB / 378.2 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009911/0.3715, allocations: 329.5 kB / 378.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009582/0.3725, allocations: 414.8 kB / 378.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001538/0.374, allocations: 0.5106 MB / 379.4 MB, free: 12.78 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.374, allocations: 1.438 kB / 379.4 MB, free: 12.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002818/0.3769, allocations: 0.9898 MB / 380.4 MB, free: 12.4 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/0.3769, allocations: 9.031 kB / 380.4 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.3769, allocations: 2.75 kB / 380.4 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001148/0.3781, allocations: 0.5503 MB / 381 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006084/0.3787, allocations: 117 kB / 381.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00572/0.3844, allocations: 4.726 MB / 385.8 MB, free: 8.133 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001631/0.3861, allocations: 227.9 kB / 386.1 MB, free: 8.105 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.72e-05/0.3861, allocations: 24.03 kB / 386.1 MB, free: 8.102 MB / 302.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,7), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004126/0.3866, allocations: 275.1 kB / 386.3 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001329/0.3867, allocations: 70.31 kB / 386.4 MB, free: 7.895 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001719/0.3869, allocations: 104.7 kB / 386.5 MB, free: 7.824 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.317e-06/0.3869, allocations: 10.02 kB / 386.5 MB, free: 7.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.3869, allocations: 4.75 kB / 386.5 MB, free: 7.816 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.779e-06/0.3869, allocations: 3.297 kB / 386.5 MB, free: 7.816 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003209/0.3901, allocations: 1.419 MB / 388 MB, free: 7.117 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/0.3902, allocations: 2.5 kB / 388 MB, free: 7.117 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004825/0.3907, allocations: 84.48 kB / 388 MB, free: 7.113 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001035/0.3917, allocations: 0.5152 MB / 388.6 MB, free: 6.922 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.855e-05/0.3918, allocations: 22.89 kB / 388.6 MB, free: 6.914 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00461/0.3964, allocations: 4.36 MB / 392.9 MB, free: 3.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.3964, allocations: 5.234 kB / 392.9 MB, free: 3.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003451/0.3999, allocations: 1.265 MB / 394.2 MB, free: 2.578 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000309/0.4002, allocations: 212.5 kB / 394.4 MB, free: 2.418 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001159/0.4004, allocations: 24.19 kB / 394.4 MB, free: 2.402 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001803/0.4022, allocations: 269.2 kB / 394.7 MB, free: 2.375 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001468/0.4036, allocations: 0.5583 MB / 395.3 MB, free: 2.242 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.878e-05/0.4037, allocations: 30.31 kB / 395.3 MB, free: 2.234 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007616/0.4045, allocations: 0.6706 MB / 396 MB, free: 1.918 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4045, allocations: 1.125 kB / 396 MB, free: 1.918 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009112/0.4054, allocations: 184.2 kB / 396.1 MB, free: 1.895 MB / 302.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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004373/0.4098, allocations: 2.088 MB / 398.2 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002496/0.4123, allocations: 0.9933 MB / 399.2 MB, free: 15.93 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.4123, allocations: 0 / 399.2 MB, free: 15.93 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001647/0.414, allocations: 0.6646 MB / 399.9 MB, free: 15.48 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007941/0.4148, allocations: 81.44 kB / 400 MB, free: 15.43 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0147/0.4295, allocations: 6.929 MB / 406.9 MB, free: 9.754 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005978/0.4302, allocations: 0.9222 MB / 407.8 MB, free: 8.805 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002604/0.4304, allocations: 47.25 kB / 407.9 MB, free: 8.758 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003565/0.4308, allocations: 211.4 kB / 408.1 MB, free: 8.555 MB / 318.1 MB Notification: Performance of SimCode: time 2.295e-06/0.4308, allocations: 4.875 kB / 408.1 MB, free: 8.551 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06082/0.4917, allocations: 21.82 MB / 429.9 MB, free: 2.938 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.25/12.74, allocations: 7.875 kB / 429.9 MB, free: 2.93 MB / 334.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Friction.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction_res.csv","/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_trunk_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches