Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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.PreLoad,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.PreLoad,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001352/0.001352, allocations: 114.5 kB / 17.73 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001595/0.001595, allocations: 187 kB / 18.67 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.505/1.505, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 47.94 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09639/0.09777, allocations: 46.62 MB / 374.6 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.005357/0.1032, allocations: 3.508 MB / 378.2 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001966/0.1052, allocations: 0.9159 MB / 379.1 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004697/0.1057, allocations: 11.94 kB / 379.1 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003325/0.1061, allocations: 83.16 kB / 379.2 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005547/0.1067, allocations: 138.7 kB / 379.3 MB, free: 400 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006201/0.1073, allocations: 163.7 kB / 379.5 MB, free: 236 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2119/0.3192, allocations: 0.5865 MB / 380 MB, free: 8.844 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003853/0.3196, allocations: 189.5 kB / 380.2 MB, free: 8.82 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003824/0.32, allocations: 244.1 kB / 380.5 MB, free: 8.805 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002828/0.3203, allocations: 274.3 kB / 380.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.387e-05/0.3204, allocations: 50.88 kB / 380.8 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.452e-05/0.3205, allocations: 51.91 kB / 380.8 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.109e-05/0.3206, allocations: 116.7 kB / 380.9 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002139/0.3208, allocations: 270 kB / 381.2 MB, free: 8.656 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007327/0.3216, allocations: 0.6075 MB / 381.8 MB, free: 8.559 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.259e-06/0.3216, allocations: 0 / 381.8 MB, free: 8.559 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3216, allocations: 0.5312 kB / 381.8 MB, free: 8.559 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.3216, allocations: 0 / 381.8 MB, free: 8.559 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.001664/0.3233, allocations: 0.8616 MB / 382.7 MB, free: 8.035 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/0.3233, allocations: 9.875 kB / 382.7 MB, free: 8.035 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001/0.3234, allocations: 87.08 kB / 382.8 MB, free: 7.996 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.3235, allocations: 56.83 kB / 382.8 MB, free: 7.969 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004418/0.324, allocations: 329.8 kB / 383.2 MB, free: 7.734 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.529e-05/0.324, allocations: 35.59 kB / 383.2 MB, free: 7.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.543e-05/0.3241, allocations: 50.72 kB / 383.2 MB, free: 7.727 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009315/0.3251, allocations: 464.2 kB / 383.7 MB, free: 7.676 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.671e-05/0.3251, allocations: 4.219 kB / 383.7 MB, free: 7.676 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.204e-05/0.3252, allocations: 17.12 kB / 383.7 MB, free: 7.676 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.398e-05/0.3252, allocations: 10.97 kB / 383.7 MB, free: 7.676 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001007/0.3262, allocations: 457.8 kB / 384.2 MB, free: 7.668 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002265/0.3285, allocations: 1.378 MB / 385.5 MB, free: 7.281 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009755/0.3295, allocations: 0.5468 MB / 386.1 MB, free: 7.102 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000807/0.3303, allocations: 381.4 kB / 386.5 MB, free: 6.98 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.057e-05/0.3303, allocations: 8.828 kB / 386.5 MB, free: 6.98 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.047e-05/0.3304, allocations: 38.44 kB / 386.5 MB, free: 6.938 MB / 318.1 MB Notification: Performance of pre-optimization done (n=67): time 2.054e-06/0.3304, allocations: 0 / 386.5 MB, free: 6.938 MB / 318.1 MB Notification: Performance of matching and sorting (n=103): time 0.007253/0.3376, allocations: 3.154 MB / 389.7 MB, free: 5.52 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.867e-05/0.3377, allocations: 63.58 kB / 389.7 MB, free: 5.457 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002586/0.338, allocations: 252.3 kB / 390 MB, free: 5.312 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.884e-05/0.338, allocations: 41.14 kB / 390 MB, free: 5.27 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.3381, allocations: 200.9 kB / 390.2 MB, free: 5.102 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001999/0.3383, allocations: 367.4 kB / 390.6 MB, free: 4.816 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002075/0.3386, allocations: 145.5 kB / 390.7 MB, free: 4.738 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.3387, allocations: 358.3 kB / 391.1 MB, free: 4.406 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005834/0.3393, allocations: 282.4 kB / 391.3 MB, free: 4.316 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006119/0.3399, allocations: 349.7 kB / 391.7 MB, free: 4.184 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001147/0.341, allocations: 0.6199 MB / 392.3 MB, free: 3.91 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3411, allocations: 3.938 kB / 392.3 MB, free: 3.906 MB / 318.1 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001502/0.3426, allocations: 0.7874 MB / 393.1 MB, free: 3.602 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/0.3426, allocations: 5.438 kB / 393.1 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.3426, allocations: 1 kB / 393.1 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.498e-05/0.3426, allocations: 8.156 kB / 393.1 MB, free: 3.598 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008045/0.3434, allocations: 206 kB / 393.3 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.505e-05/0.3435, allocations: 9.203 kB / 393.3 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003754/0.3439, allocations: 46.33 kB / 393.4 MB, free: 3.574 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.98e-05/0.3439, allocations: 29.59 kB / 393.4 MB, free: 3.566 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (outerContactB.contact,outerContactA.contact,innerContactB.contact,innerContactA.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000225/0.3441, allocations: 199.9 kB / 393.6 MB, free: 3.402 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.3443, allocations: 55.33 kB / 393.6 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001413/0.3444, allocations: 74.92 kB / 393.7 MB, free: 3.305 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.28e-05/0.3444, allocations: 14.62 kB / 393.7 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.243e-05/0.3445, allocations: 0 / 393.7 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.429e-05/0.3445, allocations: 9.938 kB / 393.7 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003358/0.3478, allocations: 1.978 MB / 395.7 MB, free: 2.273 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.027e-06/0.3479, allocations: 4.844 kB / 395.7 MB, free: 2.273 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008686/0.3487, allocations: 204.6 kB / 395.9 MB, free: 2.266 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-05/0.3488, allocations: 10.16 kB / 395.9 MB, free: 2.266 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.746e-05/0.3488, allocations: 32.23 kB / 396 MB, free: 2.246 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.229e-05/0.3488, allocations: 10.42 kB / 396 MB, free: 2.246 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.375e-06/0.3489, allocations: 7.688 kB / 396 MB, free: 2.246 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002304/0.3512, allocations: 1.363 MB / 397.3 MB, free: 1.52 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000127/0.3513, allocations: 134.9 kB / 397.5 MB, free: 1.391 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.088e-05/0.3514, allocations: 31.23 kB / 397.5 MB, free: 1.371 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003927/0.3518, allocations: 45.58 kB / 397.5 MB, free: 1.359 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001331/0.3519, allocations: 73.92 kB / 397.6 MB, free: 1.344 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.053e-05/0.352, allocations: 33.95 kB / 397.7 MB, free: 1.336 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001763/0.3522, allocations: 183 kB / 397.8 MB, free: 1.23 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.242e-06/0.3522, allocations: 0 / 397.8 MB, free: 1.23 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006301/0.3528, allocations: 159.1 kB / 398 MB, free: 1.199 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (outerContactA.s_rel,outerContactA.v_rel,outerContactB.s_rel,outerContactB.v_rel,friction.s_rel,friction.v_rel) * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002779/0.3556, allocations: 1.932 MB / 399.9 MB, free: 15.94 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001689/0.3573, allocations: 0.7317 MB / 400.7 MB, free: 15.73 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.3573, allocations: 1.125 kB / 400.7 MB, free: 15.73 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000901/0.3582, allocations: 447.6 kB / 401.1 MB, free: 15.61 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008547/0.3591, allocations: 133.3 kB / 401.2 MB, free: 15.55 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008675/0.3678, allocations: 5.279 MB / 406.5 MB, free: 12.4 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005609/0.3684, allocations: 0.8647 MB / 407.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004093/0.3688, allocations: 85.88 kB / 407.4 MB, free: 11.67 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003411/0.3692, allocations: 193 kB / 407.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of SimCode: time 1.183e-06/0.3692, allocations: 0 / 407.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03404/0.4032, allocations: 11.59 MB / 419.2 MB, free: 1.422 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.725/9.129, allocations: 11.89 kB / 419.2 MB, free: 1.41 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_PreLoad.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/PreLoad/PreLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches