Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.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_4.0.0_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_4.0.0_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.001121/0.001121, allocations: 103.6 kB / 17.59 MB, free: 5.43 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.0014/0.0014, allocations: 187.3 kB / 18.51 MB, free: 4.508 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.379/1.379, allocations: 222.9 MB / 242.2 MB, free: 15.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001705/0.001706, allocations: 49.83 kB / 301.3 MB, free: 5.898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1276, allocations: 49.44 MB / 350.7 MB, free: 4.449 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004843/0.1325, allocations: 3.005 MB / 353.7 MB, free: 1.414 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002465/0.135, allocations: 1.153 MB / 354.9 MB, free: 264 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000346/0.1354, allocations: 11.94 kB / 354.9 MB, free: 252 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004798/0.1359, allocations: 83.28 kB / 355 MB, free: 168 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003207/0.1362, allocations: 110.9 kB / 355.1 MB, free: 56 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001015/0.1373, allocations: 418.6 kB / 355.5 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009055/0.1382, allocations: 0.7919 MB / 356.3 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002134/0.1384, allocations: 97.59 kB / 356.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000682/0.1391, allocations: 359.1 kB / 356.7 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001531/0.1406, allocations: 1.335 MB / 358.1 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001937/0.1408, allocations: 68 kB / 358.1 MB, free: 13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002619/0.1411, allocations: 112 kB / 358.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002398/0.1414, allocations: 227.8 kB / 358.5 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004295/0.1418, allocations: 350 kB / 358.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001021/0.1428, allocations: 0.8685 MB / 359.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.1429, allocations: 4 kB / 359.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1429, allocations: 0 / 359.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.274e-05/0.1429, allocations: 0 / 359.7 MB, free: 11.45 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.004175/0.1471, allocations: 1.327 MB / 361 MB, free: 10.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.1471, allocations: 11.97 kB / 361 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002081/0.1473, allocations: 80 kB / 361.1 MB, free: 9.984 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005717/0.1479, allocations: 419.5 kB / 361.5 MB, free: 9.535 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.422e-05/0.148, allocations: 29.38 kB / 361.5 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/0.1481, allocations: 48.25 kB / 361.6 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001969/0.1501, allocations: 1.154 MB / 362.7 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.533e-05/0.1501, allocations: 7.938 kB / 362.7 MB, free: 8.281 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.008e-05/0.1502, allocations: 20 kB / 362.8 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.2e-05/0.1502, allocations: 8 kB / 362.8 MB, free: 8.254 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002807/0.153, allocations: 1.74 MB / 364.5 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004858/0.1579, allocations: 2.479 MB / 367 MB, free: 3.953 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001814/0.1597, allocations: 0.9069 MB / 367.9 MB, free: 3.027 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001198/0.161, allocations: 0.7123 MB / 368.6 MB, free: 2.309 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.374e-05/0.161, allocations: 8 kB / 368.6 MB, free: 2.301 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001618/0.1627, allocations: 0.8966 MB / 369.5 MB, free: 1.391 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 3.166e-06/0.1627, allocations: 0 / 369.5 MB, free: 1.391 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.2132/0.3759, allocations: 5.782 MB / 375.3 MB, free: 25.64 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.219e-05/0.376, allocations: 83.08 kB / 375.4 MB, free: 25.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001209/0.3772, allocations: 0.9188 MB / 376.3 MB, free: 25.22 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000103/0.3773, allocations: 51.02 kB / 376.3 MB, free: 25.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002171/0.3776, allocations: 296.9 kB / 376.6 MB, free: 24.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001448/0.3777, allocations: 167.2 kB / 376.8 MB, free: 24.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002361/0.378, allocations: 123.6 kB / 376.9 MB, free: 24.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.3781, allocations: 380.2 kB / 377.3 MB, free: 24.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001288/0.3794, allocations: 0.8423 MB / 378.1 MB, free: 24.26 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001398/0.3808, allocations: 0.9397 MB / 379.1 MB, free: 24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002346/0.3832, allocations: 1.467 MB / 380.5 MB, free: 23.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.3832, allocations: 5.094 kB / 380.5 MB, free: 23.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004323/0.3875, allocations: 2.481 MB / 383 MB, free: 23.1 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.595e-05/0.3875, allocations: 3.969 kB / 383 MB, free: 23.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.3876, allocations: 3.969 kB / 383 MB, free: 23.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002367/0.3899, allocations: 1.905 MB / 384.9 MB, free: 22.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005612/0.3905, allocations: 111.4 kB / 385 MB, free: 22.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006326/0.3968, allocations: 6.706 MB / 391.7 MB, free: 16.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001492/0.3984, allocations: 231.4 kB / 392 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.899e-05/0.3984, allocations: 23.23 kB / 392 MB, free: 16.57 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,6), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003927/0.3988, allocations: 259.6 kB / 392.2 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001215/0.399, allocations: 76.41 kB / 392.3 MB, free: 16.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001776/0.3991, allocations: 102.1 kB / 392.4 MB, free: 16.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.3991, allocations: 11.56 kB / 392.4 MB, free: 16.15 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/0.3992, allocations: 1.359 kB / 392.4 MB, free: 16.15 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.3992, allocations: 1.266 kB / 392.4 MB, free: 16.15 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003119/0.4023, allocations: 3.097 MB / 395.5 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.4023, allocations: 4 kB / 395.5 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004537/0.4028, allocations: 87.86 kB / 395.6 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001325/0.4041, allocations: 1.865 MB / 397.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.506e-05/0.4042, allocations: 23.97 kB / 397.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005151/0.4093, allocations: 6.33 MB / 403.8 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.668e-06/0.4094, allocations: 8.234 kB / 403.8 MB, free: 4.668 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003887/0.4133, allocations: 3.228 MB / 407.1 MB, free: 1.414 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002555/0.4135, allocations: 204.2 kB / 407.3 MB, free: 1.195 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001064/0.4136, allocations: 28.12 kB / 407.3 MB, free: 1.168 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001631/0.4153, allocations: 263.6 kB / 407.6 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001125/0.4164, allocations: 0.5617 MB / 408.1 MB, free: 356 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.498e-05/0.4165, allocations: 27.97 kB / 408.1 MB, free: 328 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000619/0.4171, allocations: 0.6787 MB / 408.8 MB, free: 15.64 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4171, allocations: 0 / 408.8 MB, free: 15.64 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000814/0.4179, allocations: 187.2 kB / 409 MB, free: 15.46 MB / 318.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.0002893/0.4182, allocations: 162.9 kB / 409.2 MB, free: 15.3 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003131/0.4214, allocations: 1.938 MB / 411.1 MB, free: 13.34 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.4214, allocations: 0 / 411.1 MB, free: 13.34 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001629/0.423, allocations: 1.043 MB / 412.1 MB, free: 12.27 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006218/0.4237, allocations: 68.75 kB / 412.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004589/0.4283, allocations: 2.023 MB / 414.2 MB, free: 10.16 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008128/0.4291, allocations: 0.9221 MB / 415.2 MB, free: 9.215 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002601/0.4294, allocations: 47.42 kB / 415.2 MB, free: 9.168 MB / 318.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4294, allocations: 3.828 kB / 415.2 MB, free: 9.168 MB / 318.1 MB Notification: Performance of Templates: time 0.02507/0.4545, allocations: 13.7 MB / 428.9 MB, free: 11.47 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/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_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches