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.0014/0.0014, allocations: 106.6 kB / 17.72 MB, free: 5.324 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.001574/0.001574, allocations: 194.9 kB / 18.67 MB, free: 4.387 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.471/1.471, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001317/0.001317, allocations: 47.94 kB / 328.5 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1092, 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.005349/0.1146, allocations: 2.988 MB / 378.1 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002997/0.1176, allocations: 1.209 MB / 379.3 MB, free: 376 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004154/0.1181, allocations: 4 kB / 379.3 MB, free: 372 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000549/0.1186, allocations: 79.3 kB / 379.4 MB, free: 292 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004127/0.1191, allocations: 114.9 kB / 379.5 MB, free: 176 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2229/0.342, allocations: 403.3 kB / 379.9 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001488/0.3435, allocations: 0.8065 MB / 380.7 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003647/0.3439, allocations: 98.52 kB / 380.8 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008336/0.3447, allocations: 360.3 kB / 381.2 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002616/0.3474, allocations: 1.341 MB / 382.5 MB, free: 9.594 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001823/0.3476, allocations: 69.81 kB / 382.6 MB, free: 9.594 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000351/0.3479, allocations: 122.5 kB / 382.7 MB, free: 9.594 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002679/0.3482, allocations: 222.8 kB / 382.9 MB, free: 9.57 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003749/0.3486, allocations: 350.9 kB / 383.3 MB, free: 9.461 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001129/0.3497, allocations: 0.8714 MB / 384.1 MB, free: 9.332 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3497, allocations: 0.5938 kB / 384.1 MB, free: 9.332 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.3497, allocations: 1.594 kB / 384.1 MB, free: 9.332 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.074e-05/0.3497, allocations: 4 kB / 384.1 MB, free: 9.328 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.003817/0.3536, allocations: 1.343 MB / 385.5 MB, free: 8.664 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.3536, allocations: 9.5 kB / 385.5 MB, free: 8.664 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001692/0.3538, allocations: 86.55 kB / 385.6 MB, free: 8.617 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006419/0.3544, allocations: 436.9 kB / 386 MB, free: 8.324 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.509e-05/0.3545, allocations: 24.62 kB / 386 MB, free: 8.324 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/0.3546, allocations: 42.89 kB / 386.1 MB, free: 8.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001923/0.3566, allocations: 1.16 MB / 387.2 MB, free: 8.102 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.367e-05/0.3566, allocations: 1.156 kB / 387.2 MB, free: 8.102 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.768e-05/0.3567, allocations: 24.25 kB / 387.2 MB, free: 8.082 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.258e-05/0.3567, allocations: 8.594 kB / 387.3 MB, free: 8.082 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002889/0.3596, allocations: 1.741 MB / 389 MB, free: 7.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004571/0.3642, allocations: 2.471 MB / 391.5 MB, free: 6.805 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001566/0.3657, allocations: 0.903 MB / 392.4 MB, free: 6.562 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001123/0.3669, allocations: 0.7173 MB / 393.1 MB, free: 6.395 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.327e-05/0.3669, allocations: 6.781 kB / 393.1 MB, free: 6.395 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001439/0.3684, allocations: 0.9078 MB / 394 MB, free: 6.148 MB / 318.1 MB Notification: Performance of pre-optimization done (n=47): time 2.224e-06/0.3684, allocations: 0 / 394 MB, free: 6.148 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.01136/0.3798, allocations: 5.807 MB / 399.8 MB, free: 4.309 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.227e-05/0.3798, allocations: 86.77 kB / 399.9 MB, free: 4.211 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001136/0.381, allocations: 0.9179 MB / 400.8 MB, free: 3.777 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.97e-05/0.3811, allocations: 49.94 kB / 400.9 MB, free: 3.73 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001711/0.3813, allocations: 297.7 kB / 401.1 MB, free: 3.469 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001209/0.3814, allocations: 176.6 kB / 401.3 MB, free: 3.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002217/0.3816, allocations: 117 kB / 401.4 MB, free: 3.246 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.472e-05/0.3817, allocations: 378 kB / 401.8 MB, free: 2.887 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00119/0.3829, allocations: 0.8501 MB / 402.7 MB, free: 2.621 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001047/0.384, allocations: 0.9387 MB / 403.6 MB, free: 1.812 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00162/0.3856, allocations: 1.459 MB / 405.1 MB, free: 336 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.3856, allocations: 2.812 kB / 405.1 MB, free: 336 kB / 318.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003794/0.3894, allocations: 2.489 MB / 407.5 MB, free: 13.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.3895, allocations: 4 kB / 407.5 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.3895, allocations: 4 kB / 407.6 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001968/0.3914, allocations: 1.905 MB / 409.5 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004992/0.392, allocations: 111.4 kB / 409.6 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008239/0.4002, allocations: 6.708 MB / 416.3 MB, free: 4.852 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001642/0.4019, allocations: 227.7 kB / 416.5 MB, free: 4.629 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.334e-05/0.402, allocations: 31.45 kB / 416.5 MB, free: 4.602 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.000531/0.4025, allocations: 259.5 kB / 416.8 MB, free: 4.344 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001492/0.4027, allocations: 75.53 kB / 416.9 MB, free: 4.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002163/0.4029, allocations: 107.2 kB / 417 MB, free: 4.16 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.736e-06/0.4029, allocations: 8 kB / 417 MB, free: 4.152 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/0.403, allocations: 3.562 kB / 417 MB, free: 4.152 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.403, allocations: 3.984 kB / 417 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004186/0.4072, allocations: 3.087 MB / 420.1 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.4072, allocations: 4.219 kB / 420.1 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004782/0.4077, allocations: 89.41 kB / 420.2 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001899/0.4096, allocations: 1.863 MB / 422 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.012e-05/0.4097, allocations: 27.97 kB / 422 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006954/0.4166, allocations: 6.339 MB / 428.4 MB, free: 8.383 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.4167, allocations: 4 kB / 428.4 MB, free: 8.379 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004708/0.4214, allocations: 3.228 MB / 431.6 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005284/0.4219, allocations: 212.6 kB / 431.8 MB, free: 4.891 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001185/0.4221, allocations: 20 kB / 431.8 MB, free: 4.871 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001693/0.4238, allocations: 271.6 kB / 432.1 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00138/0.4252, allocations: 0.5616 MB / 432.7 MB, free: 4.043 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.344e-05/0.4252, allocations: 31.97 kB / 432.7 MB, free: 4.012 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000705/0.4259, allocations: 0.6748 MB / 433.4 MB, free: 3.344 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.426, allocations: 0 / 433.4 MB, free: 3.344 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008071/0.4268, allocations: 187.9 kB / 433.6 MB, free: 3.16 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.0002596/0.427, allocations: 147.1 kB / 433.7 MB, free: 3.008 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002938/0.43, allocations: 1.925 MB / 435.6 MB, free: 1.055 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.43, allocations: 0 / 435.6 MB, free: 1.055 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001722/0.4317, allocations: 1.094 MB / 436.7 MB, free: 15.94 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006351/0.4324, allocations: 74.83 kB / 436.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004189/0.4366, allocations: 1.964 MB / 438.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004917/0.4371, allocations: 0.926 MB / 439.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002138/0.4373, allocations: 47.27 kB / 439.7 MB, free: 12.88 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001289/0.4374, allocations: 35.42 kB / 439.8 MB, free: 12.85 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.4375, allocations: 7.938 kB / 439.8 MB, free: 12.84 MB / 366.1 MB Notification: Performance of Templates: time 0.03452/0.472, allocations: 24.38 MB / 464.2 MB, free: 4.445 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