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.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: translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001494/0.001494, allocations: 113.3 kB / 18.4 MB, free: 4.691 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.001694/0.001694, allocations: 181.3 kB / 19.33 MB, free: 3.773 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.563/1.563, allocations: 205.1 MB / 225.2 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.001222/0.001222, allocations: 47.94 kB / 329.2 MB, free: 3.336 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1091, allocations: 46.62 MB / 375.8 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004648/0.1138, allocations: 2.984 MB / 378.8 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002309/0.1162, allocations: 1.209 MB / 380 MB, free: 396 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002034/0.1164, allocations: 4 kB / 380 MB, free: 392 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004566/0.1169, allocations: 83.28 kB / 380.1 MB, free: 308 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002068/0.1171, allocations: 110.9 kB / 380.2 MB, free: 196 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.251/0.3681, allocations: 408.1 kB / 380.6 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001256/0.3694, allocations: 0.7988 MB / 381.4 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003/0.3697, allocations: 101.5 kB / 381.5 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005375/0.3702, allocations: 362.5 kB / 381.8 MB, free: 10.28 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002162/0.3724, allocations: 1.341 MB / 383.2 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001545/0.3726, allocations: 68.75 kB / 383.2 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002863/0.3729, allocations: 120.2 kB / 383.4 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002656/0.3732, allocations: 225.7 kB / 383.6 MB, free: 10.15 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003445/0.3735, allocations: 352.2 kB / 383.9 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001143/0.3747, allocations: 0.874 MB / 384.8 MB, free: 9.867 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.878e-06/0.3747, allocations: 4.797 kB / 384.8 MB, free: 9.863 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.276e-06/0.3747, allocations: 0 / 384.8 MB, free: 9.863 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.861e-05/0.3747, allocations: 0 / 384.8 MB, free: 9.863 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.00399/0.3787, allocations: 1.32 MB / 386.1 MB, free: 9.133 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.638e-05/0.3788, allocations: 10.84 kB / 386.1 MB, free: 9.133 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001895/0.379, allocations: 74.38 kB / 386.2 MB, free: 9.098 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006257/0.3796, allocations: 430.4 kB / 386.6 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.239e-05/0.3797, allocations: 28.84 kB / 386.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001167/0.3798, allocations: 39.73 kB / 386.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002128/0.3819, allocations: 1.161 MB / 387.9 MB, free: 8.434 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.279e-05/0.382, allocations: 3.047 kB / 387.9 MB, free: 8.434 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.716e-05/0.382, allocations: 20.36 kB / 387.9 MB, free: 8.418 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.761e-05/0.3821, allocations: 11.81 kB / 387.9 MB, free: 8.418 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003006/0.3851, allocations: 1.744 MB / 389.6 MB, free: 8.105 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005031/0.3901, allocations: 2.471 MB / 392.1 MB, free: 7.133 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001848/0.392, allocations: 0.9065 MB / 393 MB, free: 6.891 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001258/0.3933, allocations: 0.7127 MB / 393.7 MB, free: 6.727 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.554e-05/0.3933, allocations: 8.125 kB / 393.7 MB, free: 6.723 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001761/0.3951, allocations: 0.9013 MB / 394.6 MB, free: 6.484 MB / 318.1 MB Notification: Performance of pre-optimization done (n=47): time 2.765e-06/0.3951, allocations: 0 / 394.6 MB, free: 6.484 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.01228/0.4074, allocations: 5.798 MB / 400.4 MB, free: 4.625 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.761e-05/0.4075, allocations: 82.7 kB / 400.5 MB, free: 4.531 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001356/0.4088, allocations: 0.9144 MB / 401.4 MB, free: 4.102 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001124/0.409, allocations: 51.25 kB / 401.5 MB, free: 4.055 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001891/0.4092, allocations: 299.6 kB / 401.8 MB, free: 3.789 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001437/0.4093, allocations: 164.7 kB / 401.9 MB, free: 3.652 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002453/0.4096, allocations: 123.6 kB / 402.1 MB, free: 3.57 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.4097, allocations: 379.4 kB / 402.4 MB, free: 3.211 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001282/0.411, allocations: 0.8405 MB / 403.3 MB, free: 2.953 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001139/0.4121, allocations: 0.9445 MB / 404.2 MB, free: 2.082 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001932/0.4141, allocations: 1.456 MB / 405.7 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.408e-06/0.4141, allocations: 0 / 405.7 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004039/0.4181, allocations: 2.49 MB / 408.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.4182, allocations: 8.031 kB / 408.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/0.4182, allocations: 4 kB / 408.2 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001992/0.4202, allocations: 1.896 MB / 410.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005269/0.4207, allocations: 117.5 kB / 410.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008/0.4287, allocations: 6.696 MB / 416.9 MB, free: 5.133 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001624/0.4304, allocations: 232.3 kB / 417.1 MB, free: 4.906 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001136/0.4305, allocations: 20 kB / 417.1 MB, free: 4.887 MB / 334.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,6), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0005606/0.4311, allocations: 271.2 kB / 417.4 MB, free: 4.621 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002122/0.4313, allocations: 71.78 kB / 417.5 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002469/0.4316, allocations: 106.8 kB / 417.6 MB, free: 4.441 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.4316, allocations: 4 kB / 417.6 MB, free: 4.438 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.108e-05/0.4316, allocations: 4 kB / 417.6 MB, free: 4.434 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.4316, allocations: 0 / 417.6 MB, free: 4.434 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004552/0.4362, allocations: 3.094 MB / 420.7 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-06/0.4362, allocations: 3.188 kB / 420.7 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005044/0.4367, allocations: 83.86 kB / 420.7 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001909/0.4386, allocations: 1.872 MB / 422.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.949e-05/0.4387, allocations: 19.97 kB / 422.6 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007117/0.4458, allocations: 6.335 MB / 429 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/0.4459, allocations: 4.031 kB / 429 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005123/0.451, allocations: 3.223 MB / 432.2 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004466/0.4515, allocations: 212.2 kB / 432.4 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001753/0.4517, allocations: 20 kB / 432.4 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001871/0.4536, allocations: 267.6 kB / 432.7 MB, free: 4.891 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001345/0.4549, allocations: 0.5655 MB / 433.3 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001065/0.455, allocations: 23.97 kB / 433.3 MB, free: 4.301 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008685/0.4559, allocations: 0.6787 MB / 434 MB, free: 3.629 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4559, allocations: 0 / 434 MB, free: 3.629 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009935/0.4569, allocations: 184 kB / 434.1 MB, free: 3.449 MB / 350.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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003679/0.4573, allocations: 157 kB / 434.3 MB, free: 3.289 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003094/0.4604, allocations: 1.91 MB / 436.2 MB, free: 1.352 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.4604, allocations: 4.438 kB / 436.2 MB, free: 1.348 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001639/0.4621, allocations: 1.053 MB / 437.3 MB, free: 276 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007789/0.4629, allocations: 80.44 kB / 437.3 MB, free: 200 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004476/0.4674, allocations: 2.004 MB / 439.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005448/0.4679, allocations: 0.9182 MB / 440.3 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001788/0.4681, allocations: 43.42 kB / 440.3 MB, free: 13.17 MB / 366.1 MB Notification: Performance of SimCode: time 9.11e-07/0.4681, allocations: 0 / 440.3 MB, free: 13.17 MB / 366.1 MB Notification: Performance of Templates: time 0.02048/0.4886, allocations: 13.74 MB / 454 MB, free: 15.42 MB / 382.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.makefile (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 & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches