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.001561/0.001561, allocations: 110.6 kB / 17.73 MB, free: 5.316 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.001527/0.001527, allocations: 190.9 kB / 18.67 MB, free: 4.383 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.425/1.425, allocations: 205.1 MB / 224.5 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.00138/0.00138, allocations: 55.92 kB / 328.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1028, allocations: 46.61 MB / 375.1 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004138/0.107, allocations: 2.968 MB / 378.1 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002143/0.1092, allocations: 1.22 MB / 379.3 MB, free: 384 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002011/0.1094, allocations: 4 kB / 379.3 MB, free: 380 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004544/0.1099, allocations: 79.23 kB / 379.4 MB, free: 300 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000224/0.1101, allocations: 115 kB / 379.5 MB, free: 184 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.211/0.3211, allocations: 411.1 kB / 379.9 MB, free: 9.766 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008921/0.322, allocations: 0.8039 MB / 380.7 MB, free: 9.766 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002407/0.3222, allocations: 100.5 kB / 380.8 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005262/0.3228, allocations: 359.4 kB / 381.2 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001945/0.3247, allocations: 1.343 MB / 382.5 MB, free: 9.613 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001658/0.3249, allocations: 67.66 kB / 382.6 MB, free: 9.613 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002928/0.3252, allocations: 123 kB / 382.7 MB, free: 9.613 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002784/0.3255, allocations: 223 kB / 382.9 MB, free: 9.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003884/0.3259, allocations: 352 kB / 383.3 MB, free: 9.477 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001481/0.3274, allocations: 0.8711 MB / 384.1 MB, free: 9.367 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.3274, allocations: 1.188 kB / 384.1 MB, free: 9.367 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.288e-06/0.3274, allocations: 0 / 384.1 MB, free: 9.367 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.065e-05/0.3274, allocations: 3.375 kB / 384.1 MB, free: 9.367 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.003907/0.3313, allocations: 1.324 MB / 385.5 MB, free: 8.723 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.3314, allocations: 9.031 kB / 385.5 MB, free: 8.723 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001832/0.3316, allocations: 76.22 kB / 385.5 MB, free: 8.688 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006913/0.3323, allocations: 430.6 kB / 386 MB, free: 8.398 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.206e-05/0.3324, allocations: 28.5 kB / 386 MB, free: 8.398 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001182/0.3325, allocations: 39.53 kB / 386 MB, free: 8.395 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002349/0.3348, allocations: 1.165 MB / 387.2 MB, free: 8.172 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.805e-05/0.3349, allocations: 5.219 kB / 387.2 MB, free: 8.168 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.263e-05/0.335, allocations: 15.69 kB / 387.2 MB, free: 8.156 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.329e-05/0.335, allocations: 8.875 kB / 387.2 MB, free: 8.156 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003275/0.3383, allocations: 1.74 MB / 389 MB, free: 7.844 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006105/0.3444, allocations: 2.476 MB / 391.4 MB, free: 6.871 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002661/0.3471, allocations: 0.9031 MB / 392.3 MB, free: 6.629 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001728/0.3489, allocations: 0.7134 MB / 393.1 MB, free: 6.465 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.371e-05/0.349, allocations: 10.78 kB / 393.1 MB, free: 6.461 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002415/0.3514, allocations: 0.8988 MB / 394 MB, free: 6.223 MB / 318.1 MB Notification: Performance of pre-optimization done (n=47): time 4.218e-06/0.3514, allocations: 2.062 kB / 394 MB, free: 6.223 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.01769/0.3691, allocations: 5.793 MB / 399.8 MB, free: 4.387 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.913e-05/0.3692, allocations: 89.45 kB / 399.8 MB, free: 4.289 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002207/0.3714, allocations: 0.9108 MB / 400.8 MB, free: 3.863 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001665/0.3716, allocations: 48.56 kB / 400.8 MB, free: 3.816 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002609/0.3719, allocations: 300 kB / 401.1 MB, free: 3.551 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000198/0.3721, allocations: 165.6 kB / 401.3 MB, free: 3.414 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003574/0.3725, allocations: 125 kB / 401.4 MB, free: 3.332 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.3726, allocations: 378 kB / 401.7 MB, free: 2.973 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00198/0.3746, allocations: 0.8415 MB / 402.6 MB, free: 2.715 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001813/0.3764, allocations: 0.9404 MB / 403.5 MB, free: 1.887 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002816/0.3793, allocations: 1.46 MB / 405 MB, free: 416 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.3793, allocations: 0 / 405 MB, free: 416 kB / 318.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.0058/0.3851, allocations: 2.489 MB / 407.5 MB, free: 13.92 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.483e-05/0.3851, allocations: 8.031 kB / 407.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.619e-05/0.3852, allocations: 7.172 kB / 407.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003115/0.3883, allocations: 1.9 MB / 409.4 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008728/0.3892, allocations: 115 kB / 409.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0115/0.4007, allocations: 6.7 MB / 416.2 MB, free: 4.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002335/0.4031, allocations: 227.7 kB / 416.4 MB, free: 4.707 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002173/0.4033, allocations: 20 kB / 416.4 MB, free: 4.688 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.0009197/0.4043, allocations: 271.8 kB / 416.7 MB, free: 4.422 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003635/0.4046, allocations: 71.16 kB / 416.8 MB, free: 4.352 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003448/0.405, allocations: 106.2 kB / 416.9 MB, free: 4.242 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/0.405, allocations: 8 kB / 416.9 MB, free: 4.234 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.106e-05/0.405, allocations: 0 / 416.9 MB, free: 4.234 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/0.4051, allocations: 0 / 416.9 MB, free: 4.234 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006548/0.4116, allocations: 3.091 MB / 420 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.4117, allocations: 4.031 kB / 420 MB, free: 1.086 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007315/0.4124, allocations: 79.88 kB / 420.1 MB, free: 1.008 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002853/0.4153, allocations: 1.873 MB / 421.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001065/0.4154, allocations: 19.97 kB / 422 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01026/0.4257, allocations: 6.337 MB / 428.3 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/0.4257, allocations: 4.031 kB / 428.3 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007109/0.4328, allocations: 3.224 MB / 431.5 MB, free: 5.199 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004951/0.4334, allocations: 212.2 kB / 431.7 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001895/0.4336, allocations: 20 kB / 431.8 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002301/0.4359, allocations: 267.6 kB / 432 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001874/0.4378, allocations: 0.5694 MB / 432.6 MB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001427/0.4379, allocations: 27.95 kB / 432.6 MB, free: 4.094 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001412/0.4394, allocations: 0.6748 MB / 433.3 MB, free: 3.426 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.4394, allocations: 0 / 433.3 MB, free: 3.426 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001519/0.4409, allocations: 188 kB / 433.5 MB, free: 3.242 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.0004683/0.4414, allocations: 151.1 kB / 433.6 MB, free: 3.086 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004549/0.446, allocations: 1.917 MB / 435.5 MB, free: 1.141 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.187e-06/0.446, allocations: 448 / 435.5 MB, free: 1.141 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002422/0.4484, allocations: 1.092 MB / 436.6 MB, free: 24 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001108/0.4495, allocations: 72.08 kB / 436.7 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006061/0.4556, allocations: 1.957 MB / 438.7 MB, free: 13.97 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007262/0.4564, allocations: 0.9221 MB / 439.6 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002304/0.4566, allocations: 43.28 kB / 439.6 MB, free: 12.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001385/0.4568, allocations: 43.41 kB / 439.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4568, allocations: 0 / 439.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of Templates: time 0.03636/0.4931, allocations: 24.39 MB / 464 MB, free: 4.547 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins/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