Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001438/0.001438, allocations: 116.9 kB / 18.4 MB, free: 4.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001773/0.001773, allocations: 204.5 kB / 19.35 MB, free: 3.805 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 60.5 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1016, allocations: 50.53 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004501/0.1061, allocations: 3.108 MB / 362 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002176/0.1083, allocations: 1.344 MB / 363.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001647/0.1085, allocations: 4 kB / 363.3 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004513/0.109, allocations: 103.1 kB / 363.4 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002003/0.1092, allocations: 122.9 kB / 363.6 MB, free: 8.652 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008447/0.11, allocations: 425.5 kB / 364 MB, free: 8.242 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007191/0.1108, allocations: 0.8192 MB / 364.8 MB, free: 7.418 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001788/0.111, allocations: 97.55 kB / 364.9 MB, free: 7.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00045/0.1114, allocations: 379 kB / 365.3 MB, free: 6.949 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001463/0.1129, allocations: 1.459 MB / 366.7 MB, free: 5.484 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000114/0.113, allocations: 72 kB / 366.8 MB, free: 5.414 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002597/0.1133, allocations: 136 kB / 366.9 MB, free: 5.281 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000256/0.1135, allocations: 231.8 kB / 367.2 MB, free: 5.055 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003424/0.1139, allocations: 358 kB / 367.5 MB, free: 4.703 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001066/0.115, allocations: 0.9073 MB / 368.4 MB, free: 3.793 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.115, allocations: 0 / 368.4 MB, free: 3.793 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.115, allocations: 0 / 368.4 MB, free: 3.793 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.2e-05/0.115, allocations: 0 / 368.4 MB, free: 3.793 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.003479/0.1185, allocations: 1.347 MB / 369.8 MB, free: 2.395 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.1185, allocations: 12.03 kB / 369.8 MB, free: 2.383 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004576/0.119, allocations: 99.97 kB / 369.9 MB, free: 2.285 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006132/0.1196, allocations: 443.4 kB / 370.3 MB, free: 1.809 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.707e-05/0.1197, allocations: 33.38 kB / 370.3 MB, free: 1.773 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/0.1198, allocations: 40.28 kB / 370.4 MB, free: 1.734 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00139/0.1212, allocations: 0.6343 MB / 371 MB, free: 1.086 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.1212, allocations: 4 kB / 371 MB, free: 1.082 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.653e-05/0.1213, allocations: 12 kB / 371 MB, free: 1.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.1213, allocations: 12 kB / 371 MB, free: 1.059 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001811/0.1231, allocations: 0.6992 MB / 371.7 MB, free: 368 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1901/0.3133, allocations: 1.644 MB / 373.4 MB, free: 19.74 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/0.3148, allocations: 0.4898 MB / 373.9 MB, free: 19.69 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008223/0.3157, allocations: 296.5 kB / 374.2 MB, free: 19.64 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.11e-05/0.3157, allocations: 4.781 kB / 374.2 MB, free: 19.64 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001157/0.3169, allocations: 0.4891 MB / 374.7 MB, free: 19.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 3.316e-06/0.3169, allocations: 4.906 kB / 374.7 MB, free: 19.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.008726/0.3257, allocations: 2.8 MB / 377.5 MB, free: 18.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.006e-05/0.3257, allocations: 82.52 kB / 377.5 MB, free: 18.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001033/0.3268, allocations: 0.9169 MB / 378.5 MB, free: 17.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.073e-05/0.3269, allocations: 48.38 kB / 378.5 MB, free: 17.63 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001798/0.3271, allocations: 296.9 kB / 378.8 MB, free: 17.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/0.3272, allocations: 169.3 kB / 379 MB, free: 17.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002355/0.3274, allocations: 121.1 kB / 379.1 MB, free: 17.22 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.3276, allocations: 384.8 kB / 379.5 MB, free: 16.88 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008613/0.3284, allocations: 323.4 kB / 379.8 MB, free: 16.77 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009247/0.3294, allocations: 422.6 kB / 380.2 MB, free: 16.55 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001322/0.3307, allocations: 0.5085 MB / 380.7 MB, free: 16.31 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.3307, allocations: 1.25 kB / 380.7 MB, free: 16.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002686/0.3334, allocations: 1.003 MB / 381.7 MB, free: 15.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/0.3334, allocations: 8.812 kB / 381.7 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.3335, allocations: 2.188 kB / 381.7 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001031/0.3345, allocations: 0.543 MB / 382.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005014/0.335, allocations: 112.9 kB / 382.4 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00507/0.3401, allocations: 4.73 MB / 387.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001382/0.3415, allocations: 231.5 kB / 387.3 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.875e-05/0.3416, allocations: 27.7 kB / 387.3 MB, free: 11.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,7), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003791/0.342, allocations: 263.3 kB / 387.6 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001194/0.3421, allocations: 70.2 kB / 387.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001762/0.3423, allocations: 106.3 kB / 387.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.3423, allocations: 10.41 kB / 387.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.3423, allocations: 0 / 387.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.3423, allocations: 3.922 kB / 387.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002816/0.3451, allocations: 1.417 MB / 389.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.3451, allocations: 1.188 kB / 389.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004576/0.3456, allocations: 90.91 kB / 389.3 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000853/0.3465, allocations: 0.507 MB / 389.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.835e-05/0.3465, allocations: 28.53 kB / 389.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004409/0.3509, allocations: 4.354 MB / 394.2 MB, free: 6.617 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.351, allocations: 5.734 kB / 394.2 MB, free: 6.617 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003214/0.3542, allocations: 1.262 MB / 395.4 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000358/0.3546, allocations: 221.5 kB / 395.7 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001116/0.3547, allocations: 20.28 kB / 395.7 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001545/0.3563, allocations: 271.1 kB / 396 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001187/0.3575, allocations: 0.5632 MB / 396.5 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.775e-05/0.3575, allocations: 25.72 kB / 396.5 MB, free: 5.203 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007167/0.3582, allocations: 0.6689 MB / 397.2 MB, free: 4.875 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3583, allocations: 0 / 397.2 MB, free: 4.875 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008048/0.3591, allocations: 188.1 kB / 397.4 MB, free: 4.848 MB / 302.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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008581/0.3599, allocations: 395.6 kB / 397.8 MB, free: 4.648 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002246/0.3622, allocations: 0.9625 MB / 398.7 MB, free: 4.062 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.3622, allocations: 448 / 398.7 MB, free: 4.062 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001352/0.3636, allocations: 0.6698 MB / 399.4 MB, free: 3.598 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006339/0.3642, allocations: 83.5 kB / 399.5 MB, free: 3.551 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003834/0.3681, allocations: 1.873 MB / 401.4 MB, free: 2.457 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003655/0.3684, allocations: 0.935 MB / 402.3 MB, free: 1.645 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002069/0.3687, allocations: 42.7 kB / 402.3 MB, free: 1.617 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.3688, allocations: 42.64 kB / 402.4 MB, free: 1.602 MB / 302.1 MB Notification: Performance of SimCode: time 1.183e-06/0.3688, allocations: 0 / 402.4 MB, free: 1.602 MB / 302.1 MB Notification: Performance of Templates: time 0.02304/0.3918, allocations: 15.79 MB / 418.2 MB, free: 2.27 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches