Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) 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.PreLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.PreLoad,fileNamePrefix="Modelica_4_0_0_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.001534/0.001534, allocations: 109.7 kB / 17.06 MB, free: 6.016 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.001793/0.001793, allocations: 189.4 kB / 18 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.528/1.528, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 51.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3024/0.3039, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.005288/0.3092, allocations: 3.542 MB / 403.8 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001821/0.3111, allocations: 0.8839 MB / 404.7 MB, free: 4.383 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000273/0.3114, allocations: 8 kB / 404.7 MB, free: 4.375 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000246/0.3116, allocations: 83.11 kB / 404.7 MB, free: 4.293 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003075/0.312, allocations: 142.7 kB / 404.9 MB, free: 4.152 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004721/0.3125, allocations: 155.7 kB / 405 MB, free: 4 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006825/0.3132, allocations: 0.5919 MB / 405.6 MB, free: 3.406 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003575/0.3135, allocations: 189.5 kB / 405.8 MB, free: 3.211 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003333/0.3139, allocations: 239.1 kB / 406 MB, free: 2.977 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003515/0.3142, allocations: 274.9 kB / 406.3 MB, free: 2.707 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.107e-05/0.3143, allocations: 48 kB / 406.4 MB, free: 2.66 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001075/0.3144, allocations: 52 kB / 406.4 MB, free: 2.609 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001136/0.3146, allocations: 119.6 kB / 406.5 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002806/0.3148, allocations: 274.7 kB / 406.8 MB, free: 2.223 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007184/0.3156, allocations: 0.6021 MB / 407.4 MB, free: 1.621 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.3156, allocations: 0 / 407.4 MB, free: 1.621 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.3156, allocations: 0 / 407.4 MB, free: 1.621 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.648e-06/0.3156, allocations: 0 / 407.4 MB, free: 1.621 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.001755/0.3174, allocations: 0.8531 MB / 408.3 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/0.3174, allocations: 11.89 kB / 408.3 MB, free: 0.707 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001087/0.3175, allocations: 86.7 kB / 408.3 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000108/0.3177, allocations: 56.61 kB / 408.4 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005537/0.3182, allocations: 339.4 kB / 408.7 MB, free: 196 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.251e-05/0.3183, allocations: 33.38 kB / 408.8 MB, free: 164 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.802e-05/0.3184, allocations: 52.33 kB / 408.8 MB, free: 112 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009834/0.3193, allocations: 454.5 kB / 409.3 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.82e-05/0.3194, allocations: 4 kB / 409.3 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.624e-05/0.3195, allocations: 19.98 kB / 409.3 MB, free: 15.63 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.349e-05/0.3195, allocations: 19.94 kB / 409.3 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001101/0.3206, allocations: 451.7 kB / 409.7 MB, free: 15.17 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002507/0.3231, allocations: 1.371 MB / 411.1 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001033/0.3242, allocations: 0.5326 MB / 411.7 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000866/0.325, allocations: 378.8 kB / 412 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.629e-05/0.3251, allocations: 12.55 kB / 412 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.518e-05/0.3251, allocations: 43.12 kB / 412.1 MB, free: 12.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=67): time 2.725e-06/0.3251, allocations: 0 / 412.1 MB, free: 12.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=103): time 0.007835/0.333, allocations: 3.144 MB / 415.2 MB, free: 9.527 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.386e-05/0.3331, allocations: 64.41 kB / 415.3 MB, free: 9.453 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003146/0.3334, allocations: 251 kB / 415.5 MB, free: 9.203 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.478e-05/0.3335, allocations: 41.7 kB / 415.6 MB, free: 9.156 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001677/0.3337, allocations: 205.5 kB / 415.8 MB, free: 8.953 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002975/0.334, allocations: 364.8 kB / 416.1 MB, free: 8.594 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002273/0.3342, allocations: 146.6 kB / 416.3 MB, free: 8.445 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001914/0.3344, allocations: 362.8 kB / 416.6 MB, free: 8.082 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006257/0.335, allocations: 269.9 kB / 416.9 MB, free: 7.816 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006733/0.3357, allocations: 353.4 kB / 417.2 MB, free: 7.465 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001308/0.337, allocations: 0.6272 MB / 417.9 MB, free: 6.832 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.337, allocations: 0 / 417.9 MB, free: 6.832 MB / 334.1 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001592/0.3386, allocations: 0.7901 MB / 418.6 MB, free: 6.031 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.3387, allocations: 4 kB / 418.7 MB, free: 6.027 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.3387, allocations: 3.938 kB / 418.7 MB, free: 6.023 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.268e-05/0.3387, allocations: 7.938 kB / 418.7 MB, free: 6.016 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008174/0.3396, allocations: 207.7 kB / 418.9 MB, free: 5.812 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.622e-05/0.3396, allocations: 7.938 kB / 418.9 MB, free: 5.805 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003929/0.34, allocations: 51.95 kB / 418.9 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.693e-05/0.3401, allocations: 28 kB / 419 MB, free: 5.727 MB / 334.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.0002857/0.3403, allocations: 197.6 kB / 419.1 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/0.3405, allocations: 51.67 kB / 419.2 MB, free: 5.473 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001823/0.3406, allocations: 73.34 kB / 419.3 MB, free: 5.395 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.324e-05/0.3407, allocations: 15.98 kB / 419.3 MB, free: 5.379 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.296e-05/0.3407, allocations: 0 / 419.3 MB, free: 5.379 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.988e-06/0.3407, allocations: 7.922 kB / 419.3 MB, free: 5.371 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003372/0.3441, allocations: 1.98 MB / 421.3 MB, free: 3.277 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.662e-05/0.3441, allocations: 4 kB / 421.3 MB, free: 3.273 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008165/0.3449, allocations: 203.7 kB / 421.5 MB, free: 3.074 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.351e-05/0.345, allocations: 8.594 kB / 421.5 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.551e-05/0.345, allocations: 35.92 kB / 421.5 MB, free: 3.031 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.484e-05/0.345, allocations: 15.94 kB / 421.5 MB, free: 3.016 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.336e-06/0.3451, allocations: 4 kB / 421.5 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002413/0.3475, allocations: 1.373 MB / 422.9 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001661/0.3477, allocations: 128.8 kB / 423 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.721e-05/0.3477, allocations: 27.94 kB / 423.1 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000408/0.3482, allocations: 47.95 kB / 423.1 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001326/0.3483, allocations: 76.8 kB / 423.2 MB, free: 1.273 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.786e-05/0.3484, allocations: 35.98 kB / 423.2 MB, free: 1.238 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001907/0.3486, allocations: 170 kB / 423.4 MB, free: 1.07 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3486, allocations: 0 / 423.4 MB, free: 1.07 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005377/0.3491, allocations: 156 kB / 423.5 MB, free: 0.918 MB / 334.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.002928/0.352, allocations: 1.963 MB / 425.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001573/0.3536, allocations: 0.7348 MB / 426.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/0.3537, allocations: 0 / 426.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008411/0.3545, allocations: 454.6 kB / 426.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008441/0.3554, allocations: 123.2 kB / 426.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008837/0.3642, allocations: 5.279 MB / 432.1 MB, free: 8.082 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006102/0.3649, allocations: 0.8684 MB / 432.9 MB, free: 7.188 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00037/0.3652, allocations: 80.97 kB / 433 MB, free: 7.105 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003435/0.3656, allocations: 195.4 kB / 433.2 MB, free: 6.914 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3656, allocations: 0 / 433.2 MB, free: 6.914 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04164/0.4072, allocations: 11.57 MB / 444.8 MB, free: 11.49 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.911/9.318, allocations: 7.172 kB / 444.8 MB, free: 11.49 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_Translational_Examples_PreLoad.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/PreLoad/PreLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches