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.001297/0.001297, allocations: 94.81 kB / 16.95 MB, free: 6.891 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.001925/0.001925, allocations: 185.9 kB / 17.84 MB, free: 6.137 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.547/1.547, allocations: 205.4 MB / 224 MB, free: 13.16 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.0005017/0.0005017, allocations: 16 kB / 280.8 MB, free: 3.742 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09562/0.09614, allocations: 47.59 MB / 328.4 MB, free: 4.086 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.00273/0.09891, allocations: 2.529 MB / 330.9 MB, free: 1.531 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001768/0.1007, allocations: 1.151 MB / 332 MB, free: 388 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001411/0.1009, allocations: 11.88 kB / 332 MB, free: 376 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003308/0.1012, allocations: 55.61 kB / 332.1 MB, free: 320 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001643/0.1014, allocations: 99.17 kB / 332.2 MB, free: 220 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007114/0.1021, allocations: 335.4 kB / 332.5 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007594/0.1029, allocations: 0.6787 MB / 333.2 MB, free: 15.21 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002096/0.1031, allocations: 81.42 kB / 333.3 MB, free: 15.12 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005421/0.1036, allocations: 315 kB / 333.6 MB, free: 14.82 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001554/0.1052, allocations: 1.431 MB / 335 MB, free: 13.38 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.452e-05/0.1053, allocations: 39.98 kB / 335.1 MB, free: 13.34 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000201/0.1055, allocations: 71.97 kB / 335.1 MB, free: 13.27 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002106/0.1057, allocations: 199.4 kB / 335.3 MB, free: 13.08 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001453/0.1059, allocations: 125.3 kB / 335.4 MB, free: 12.95 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006173/0.1065, allocations: 0.6081 MB / 336.1 MB, free: 12.34 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.173e-06/0.1065, allocations: 0 / 336.1 MB, free: 12.34 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1065, allocations: 0 / 336.1 MB, free: 12.34 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.1066, allocations: 0 / 336.1 MB, free: 12.34 MB / 286.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.003099/0.1097, allocations: 1.309 MB / 337.4 MB, free: 10.98 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.1097, allocations: 8.031 kB / 337.4 MB, free: 10.97 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001467/0.1099, allocations: 79.06 kB / 337.4 MB, free: 10.89 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005306/0.1104, allocations: 406.7 kB / 337.8 MB, free: 10.45 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.961e-05/0.1105, allocations: 40.92 kB / 337.9 MB, free: 10.41 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.437e-05/0.1106, allocations: 36 kB / 337.9 MB, free: 10.38 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001744/0.1123, allocations: 1.161 MB / 339.1 MB, free: 9.203 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.443e-05/0.1124, allocations: 11.91 kB / 339.1 MB, free: 9.191 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.69e-05/0.1124, allocations: 16 kB / 339.1 MB, free: 9.176 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.1124, allocations: 8 kB / 339.1 MB, free: 9.168 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002613/0.1151, allocations: 1.775 MB / 340.9 MB, free: 7.395 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004103/0.1192, allocations: 2.553 MB / 343.4 MB, free: 4.758 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001579/0.1208, allocations: 0.9342 MB / 344.4 MB, free: 3.805 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001102/0.1219, allocations: 0.7282 MB / 345.1 MB, free: 3.07 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.63e-05/0.122, allocations: 8 kB / 345.1 MB, free: 3.062 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001424/0.1234, allocations: 0.9239 MB / 346 MB, free: 2.117 MB / 286.1 MB Notification: Performance of pre-optimization done (n=47): time 3.647e-06/0.1234, allocations: 0 / 346 MB, free: 2.117 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.01108/0.1345, allocations: 6.033 MB / 352.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.087e-05/0.1346, allocations: 85.11 kB / 352.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001192/0.1358, allocations: 0.914 MB / 353.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.495e-05/0.1359, allocations: 45.7 kB / 353.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002345/0.1362, allocations: 292.3 kB / 353.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000157/0.1363, allocations: 170 kB / 353.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.682e-05/0.1364, allocations: 15.94 kB / 353.6 MB, free: 10.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.1365, allocations: 382.7 kB / 354 MB, free: 9.992 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001237/0.1378, allocations: 0.8603 MB / 354.8 MB, free: 9.129 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001272/0.1391, allocations: 0.9519 MB / 355.8 MB, free: 8.148 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00108/0.1402, allocations: 0.7809 MB / 356.5 MB, free: 7.367 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.1402, allocations: 0 / 356.5 MB, free: 7.367 MB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003567/0.1438, allocations: 2.483 MB / 359 MB, free: 4.867 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.991e-05/0.1438, allocations: 11.28 kB / 359 MB, free: 4.859 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.083e-05/0.1438, allocations: 0 / 359 MB, free: 4.859 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002434/0.1463, allocations: 1.904 MB / 360.9 MB, free: 2.945 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005144/0.1468, allocations: 119.9 kB / 361.1 MB, free: 2.828 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007302/0.1541, allocations: 6.451 MB / 367.5 MB, free: 12.08 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001285/0.1555, allocations: 299.8 kB / 367.8 MB, free: 11.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.089e-05/0.1556, allocations: 23.98 kB / 367.8 MB, free: 11.76 MB / 318.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,$whenCondition2,stop1.free,$PRE.stop1.startForward,stop1.startForward,$PRE.stop1.startBackward,stop1.startBackward,stop1.locked,$PRE.stop1.mode,stop1.mode,stop1.stopped,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,$whenCondition1,stop2.free,$PRE.stop2.startForward,stop2.startForward,$PRE.stop2.startBackward,stop2.startBackward,stop2.locked,$PRE.stop2.mode,stop2.mode,stop2.stopped) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0004102/0.156, allocations: 256 kB / 368.1 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001389/0.1561, allocations: 67.16 kB / 368.1 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002065/0.1563, allocations: 106.1 kB / 368.3 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.1564, allocations: 4 kB / 368.3 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.1564, allocations: 0 / 368.3 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/0.1564, allocations: 7.984 kB / 368.3 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00392/0.1603, allocations: 3.127 MB / 371.4 MB, free: 8.113 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.101e-06/0.1603, allocations: 4.062 kB / 371.4 MB, free: 8.109 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004554/0.1608, allocations: 95.86 kB / 371.5 MB, free: 8.016 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001835/0.1626, allocations: 1.873 MB / 373.4 MB, free: 6.133 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.93e-05/0.1627, allocations: 23.95 kB / 373.4 MB, free: 6.109 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2038/0.3666, allocations: 6.152 MB / 379.5 MB, free: 54.28 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.3666, allocations: 1.859 kB / 379.5 MB, free: 54.28 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005362/0.372, allocations: 3.269 MB / 382.8 MB, free: 54.09 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00039/0.3724, allocations: 209.1 kB / 383 MB, free: 53.99 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001187/0.3725, allocations: 21.41 kB / 383 MB, free: 53.99 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001528/0.374, allocations: 353.8 kB / 383.4 MB, free: 53.99 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001653/0.3757, allocations: 0.6441 MB / 384 MB, free: 53.99 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.797e-05/0.3758, allocations: 27.03 kB / 384 MB, free: 53.99 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008849/0.3767, allocations: 0.673 MB / 384.7 MB, free: 53.9 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3767, allocations: 0 / 384.7 MB, free: 53.9 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009434/0.3777, allocations: 188.1 kB / 384.9 MB, free: 53.9 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002981/0.378, allocations: 152 kB / 385.1 MB, free: 53.81 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003039/0.381, allocations: 1.951 MB / 387 MB, free: 53.45 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.381, allocations: 1.219 kB / 387 MB, free: 53.45 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001971/0.383, allocations: 1.097 MB / 388.1 MB, free: 53.03 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006073/0.3836, allocations: 70.33 kB / 388.2 MB, free: 52.99 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004039/0.3877, allocations: 2.284 MB / 390.5 MB, free: 52.04 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004667/0.3882, allocations: 0.9282 MB / 391.4 MB, free: 51.32 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002285/0.3884, allocations: 37.88 kB / 391.4 MB, free: 51.32 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000114/0.3885, allocations: 35.72 kB / 391.5 MB, free: 51.3 MB / 318.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3885, allocations: 0 / 391.5 MB, free: 51.3 MB / 318.1 MB Notification: Performance of Templates: time 0.02405/0.4126, allocations: 20.99 MB / 412.4 MB, free: 32.37 MB / 318.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","../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches