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: translateModel(Modelica.Mechanics.Translational.Examples.PreLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|friction.v_rel|innerContactA.s_rel|innerContactB.s_rel|outerContactA.v_rel|outerContactB.s_rel|outerContactB.v_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad") translateModel(Modelica.Mechanics.Translational.Examples.PreLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|friction.v_rel|innerContactA.s_rel|innerContactB.s_rel|outerContactA.v_rel|outerContactB.s_rel|outerContactB.v_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001282/0.001281, allocations: 113.7 kB / 17.07 MB, free: 5.965 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.00129/0.00129, allocations: 190.8 kB / 18 MB, free: 5.055 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.367/1.367, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00153/0.00153, allocations: 48.02 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3106/0.3121, allocations: 49.43 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.004964/0.3171, allocations: 3.553 MB / 404.3 MB, free: 5.305 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001632/0.3188, allocations: 0.8723 MB / 405.1 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001904/0.319, allocations: 8 kB / 405.1 MB, free: 4.418 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002177/0.3192, allocations: 83.16 kB / 405.2 MB, free: 4.336 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002552/0.3195, allocations: 146.7 kB / 405.4 MB, free: 4.191 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003956/0.3199, allocations: 143.7 kB / 405.5 MB, free: 4.051 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005662/0.3205, allocations: 0.5957 MB / 406.1 MB, free: 3.453 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003348/0.3208, allocations: 201.5 kB / 406.3 MB, free: 3.246 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003304/0.3212, allocations: 235.1 kB / 406.5 MB, free: 3.016 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002981/0.3215, allocations: 278.9 kB / 406.8 MB, free: 2.742 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.582e-05/0.3215, allocations: 52 kB / 406.9 MB, free: 2.691 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.179e-05/0.3216, allocations: 48 kB / 406.9 MB, free: 2.645 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.944e-05/0.3217, allocations: 115.6 kB / 407 MB, free: 2.531 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000223/0.322, allocations: 270.7 kB / 407.3 MB, free: 2.266 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005842/0.3226, allocations: 0.5952 MB / 407.9 MB, free: 1.668 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3226, allocations: 4 kB / 407.9 MB, free: 1.664 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3226, allocations: 0 / 407.9 MB, free: 1.664 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.3226, allocations: 7.938 kB / 407.9 MB, free: 1.656 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.001542/0.3241, allocations: 0.8609 MB / 408.7 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.3242, allocations: 8.031 kB / 408.8 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.856e-05/0.3243, allocations: 56.61 kB / 408.8 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004238/0.3247, allocations: 335.4 kB / 409.1 MB, free: 328 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.254e-05/0.3248, allocations: 41.38 kB / 409.2 MB, free: 288 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.803e-05/0.3249, allocations: 52.33 kB / 409.2 MB, free: 236 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001009/0.3259, allocations: 450.7 kB / 409.7 MB, free: 15.78 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.339e-05/0.3259, allocations: 3.984 kB / 409.7 MB, free: 15.78 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.159e-05/0.3259, allocations: 20 kB / 409.7 MB, free: 15.76 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.326, allocations: 16 kB / 409.7 MB, free: 15.74 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009986/0.327, allocations: 459.6 kB / 410.2 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0022/0.3292, allocations: 1.363 MB / 411.5 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009777/0.3302, allocations: 0.5442 MB / 412.1 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008071/0.331, allocations: 371.7 kB / 412.4 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.622e-05/0.3311, allocations: 8.547 kB / 412.4 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.883e-05/0.3311, allocations: 47.12 kB / 412.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of pre-optimization done (n=67): time 2.484e-06/0.3311, allocations: 0 / 412.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=103): time 0.007207/0.3383, allocations: 3.154 MB / 415.6 MB, free: 9.645 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.586e-05/0.3384, allocations: 64.41 kB / 415.7 MB, free: 9.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002777/0.3387, allocations: 247 kB / 415.9 MB, free: 9.324 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.671e-05/0.3387, allocations: 45.7 kB / 416 MB, free: 9.273 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001432/0.3389, allocations: 193.6 kB / 416.2 MB, free: 9.082 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002764/0.3392, allocations: 372.8 kB / 416.5 MB, free: 8.715 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001963/0.3394, allocations: 146.6 kB / 416.7 MB, free: 8.566 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.3395, allocations: 362.8 kB / 417 MB, free: 8.203 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005704/0.3401, allocations: 273.8 kB / 417.3 MB, free: 7.934 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006244/0.3407, allocations: 345.4 kB / 417.6 MB, free: 7.59 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001223/0.342, allocations: 0.6195 MB / 418.3 MB, free: 6.965 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.342, allocations: 0 / 418.3 MB, free: 6.965 MB / 334.1 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001407/0.3434, allocations: 0.7862 MB / 419 MB, free: 6.168 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.3434, allocations: 15.92 kB / 419.1 MB, free: 6.152 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.3434, allocations: 0 / 419.1 MB, free: 6.152 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.106e-05/0.3435, allocations: 7.938 kB / 419.1 MB, free: 6.145 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007562/0.3442, allocations: 207.8 kB / 419.3 MB, free: 5.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.3442, allocations: 4 kB / 419.3 MB, free: 5.938 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003278/0.3446, allocations: 47.91 kB / 419.3 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.073e-05/0.3446, allocations: 31.98 kB / 419.4 MB, free: 5.859 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.0002217/0.3449, allocations: 189.7 kB / 419.5 MB, free: 5.664 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.747e-05/0.345, allocations: 55.67 kB / 419.6 MB, free: 5.609 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001688/0.3451, allocations: 81.33 kB / 419.7 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.744e-06/0.3452, allocations: 11.94 kB / 419.7 MB, free: 5.512 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.387e-06/0.3452, allocations: 0 / 419.7 MB, free: 5.512 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/0.3452, allocations: 3.984 kB / 419.7 MB, free: 5.508 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002931/0.3481, allocations: 1.991 MB / 421.7 MB, free: 3.402 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/0.3481, allocations: 4 kB / 421.7 MB, free: 3.398 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008178/0.349, allocations: 204.3 kB / 421.9 MB, free: 3.199 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.968e-06/0.349, allocations: 8 kB / 421.9 MB, free: 3.191 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.511e-05/0.3491, allocations: 31.94 kB / 421.9 MB, free: 3.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.552e-05/0.3491, allocations: 15.92 kB / 421.9 MB, free: 3.145 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/0.3491, allocations: 8 kB / 421.9 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002255/0.3513, allocations: 1.377 MB / 423.3 MB, free: 1.688 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001122/0.3515, allocations: 124.8 kB / 423.4 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.337e-05/0.3516, allocations: 31.98 kB / 423.5 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003939/0.352, allocations: 47.97 kB / 423.5 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001401/0.3521, allocations: 76.78 kB / 423.6 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.756e-05/0.3522, allocations: 28 kB / 423.6 MB, free: 1.367 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001817/0.3523, allocations: 182 kB / 423.8 MB, free: 1.188 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3524, allocations: 0 / 423.8 MB, free: 1.188 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005068/0.3529, allocations: 152 kB / 424 MB, free: 1.039 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.0001752/0.353, allocations: 138.9 kB / 424.1 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001396/0.3544, allocations: 0.7347 MB / 424.8 MB, free: 164 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.3545, allocations: 4 kB / 424.8 MB, free: 160 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008/0.3553, allocations: 442.8 kB / 425.3 MB, free: 15.72 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007454/0.356, allocations: 123.6 kB / 425.4 MB, free: 15.6 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002408/0.3584, allocations: 1.55 MB / 426.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003924/0.3589, allocations: 0.8723 MB / 427.8 MB, free: 13.06 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003065/0.3592, allocations: 76.97 kB / 427.9 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001618/0.3593, allocations: 55.42 kB / 427.9 MB, free: 12.94 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3593, allocations: 0 / 427.9 MB, free: 12.94 MB / 350.1 MB Notification: Performance of Templates: time 0.01177/0.3711, allocations: 6.664 MB / 434.6 MB, free: 6.324 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.makefile (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 & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/PreLoad/PreLoad.csv","/var/lib/jenkins/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