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.0009244/0.0009244, allocations: 100.4 kB / 16.94 MB, free: 5.539 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.001096/0.001096, allocations: 183.3 kB / 17.83 MB, free: 5.234 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.518/1.518, allocations: 205.4 MB / 224 MB, free: 13.07 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.0004836/0.0004837, allocations: 12 kB / 280.7 MB, free: 3.734 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1124, allocations: 47.58 MB / 328.3 MB, free: 4.082 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003194/0.1157, allocations: 2.417 MB / 330.7 MB, free: 1.641 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001993/0.1177, allocations: 1.143 MB / 331.9 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001555/0.1178, allocations: 7.938 kB / 331.9 MB, free: 500 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003518/0.1182, allocations: 47.67 kB / 331.9 MB, free: 452 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002264/0.1184, allocations: 147.6 kB / 332.1 MB, free: 304 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007475/0.1192, allocations: 339.2 kB / 332.4 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000549/0.1198, allocations: 460.2 kB / 332.9 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001847/0.12, allocations: 81.42 kB / 332.9 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003998/0.1204, allocations: 319.1 kB / 333.3 MB, free: 15.12 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001487/0.1219, allocations: 1.4 MB / 334.7 MB, free: 13.72 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.998e-05/0.122, allocations: 40 kB / 334.7 MB, free: 13.68 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001762/0.1221, allocations: 83.94 kB / 334.8 MB, free: 13.6 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002033/0.1223, allocations: 195.3 kB / 335 MB, free: 13.41 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001791/0.1225, allocations: 125.3 kB / 335.1 MB, free: 13.28 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006434/0.1232, allocations: 0.6003 MB / 335.7 MB, free: 12.68 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.1232, allocations: 0 / 335.7 MB, free: 12.68 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1232, allocations: 0 / 335.7 MB, free: 12.68 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.448e-06/0.1232, allocations: 0 / 335.7 MB, free: 12.68 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.003599/0.1268, allocations: 1.317 MB / 337 MB, free: 11.31 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/0.1269, allocations: 8.031 kB / 337 MB, free: 11.3 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000172/0.1271, allocations: 79.06 kB / 337.1 MB, free: 11.22 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006069/0.1277, allocations: 402.8 kB / 337.5 MB, free: 10.79 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.244e-05/0.1278, allocations: 25 kB / 337.5 MB, free: 10.76 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001065/0.1279, allocations: 43.98 kB / 337.6 MB, free: 10.71 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001821/0.1297, allocations: 1.161 MB / 338.7 MB, free: 9.543 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.942e-05/0.1297, allocations: 7.906 kB / 338.7 MB, free: 9.535 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.136e-05/0.1298, allocations: 12 kB / 338.7 MB, free: 9.523 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.173e-05/0.1298, allocations: 8 kB / 338.7 MB, free: 9.516 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002588/0.1324, allocations: 1.779 MB / 340.5 MB, free: 7.738 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00423/0.1367, allocations: 2.561 MB / 343.1 MB, free: 5.094 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001567/0.1383, allocations: 0.9382 MB / 344 MB, free: 4.137 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.18e-05/0.1383, allocations: 4 kB / 344 MB, free: 4.133 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001444/0.1398, allocations: 0.9123 MB / 344.9 MB, free: 3.199 MB / 286.1 MB Notification: Performance of pre-optimization done (n=47): time 2.655e-06/0.1398, allocations: 3.938 kB / 344.9 MB, free: 3.195 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.01127/0.1511, allocations: 6.025 MB / 351 MB, free: 13.01 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.628e-05/0.1511, allocations: 81.11 kB / 351 MB, free: 12.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001151/0.1523, allocations: 0.918 MB / 352 MB, free: 11.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.674e-05/0.1524, allocations: 49.69 kB / 352 MB, free: 11.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002414/0.1527, allocations: 296.3 kB / 352.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001767/0.1528, allocations: 165.9 kB / 352.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.427e-05/0.1529, allocations: 8 kB / 352.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.1531, allocations: 378.8 kB / 352.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001248/0.1543, allocations: 0.8642 MB / 353.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001369/0.1557, allocations: 0.9519 MB / 354.7 MB, free: 9.238 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001192/0.1569, allocations: 0.777 MB / 355.4 MB, free: 8.461 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1569, allocations: 0 / 355.4 MB, free: 8.461 MB / 302.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003882/0.1608, allocations: 2.487 MB / 357.9 MB, free: 5.957 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.929e-05/0.1609, allocations: 7.281 kB / 357.9 MB, free: 5.953 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.1609, allocations: 4 kB / 357.9 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002085/0.163, allocations: 1.9 MB / 359.8 MB, free: 4.039 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005152/0.1635, allocations: 123.8 kB / 359.9 MB, free: 3.918 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007708/0.1712, allocations: 6.47 MB / 366.4 MB, free: 13.15 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001518/0.1728, allocations: 303.8 kB / 366.7 MB, free: 12.86 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.052e-05/0.1728, allocations: 23.98 kB / 366.7 MB, free: 12.83 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.0004303/0.1733, allocations: 252 kB / 367 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000124/0.1734, allocations: 75.16 kB / 367.1 MB, free: 12.5 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001874/0.1736, allocations: 98.17 kB / 367.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.1736, allocations: 12.2 kB / 367.2 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.1736, allocations: 0 / 367.2 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.378e-06/0.1737, allocations: 8.172 kB / 367.2 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004055/0.1777, allocations: 3.135 MB / 370.3 MB, free: 9.172 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.1777, allocations: 0 / 370.3 MB, free: 9.172 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004776/0.1782, allocations: 95.94 kB / 370.4 MB, free: 9.078 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00184/0.1801, allocations: 1.861 MB / 372.3 MB, free: 7.207 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.957e-05/0.1801, allocations: 31.95 kB / 372.3 MB, free: 7.176 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006674/0.1868, allocations: 6.184 MB / 378.5 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1868, allocations: 0 / 378.5 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2201/0.4069, allocations: 3.305 MB / 381.8 MB, free: 54.77 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004912/0.4075, allocations: 205.5 kB / 382 MB, free: 54.67 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001371/0.4076, allocations: 26.62 kB / 382 MB, free: 54.67 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001947/0.4096, allocations: 353.8 kB / 382.4 MB, free: 54.67 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001818/0.4114, allocations: 0.6393 MB / 383 MB, free: 54.67 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.871e-05/0.4115, allocations: 28.61 kB / 383 MB, free: 54.67 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009835/0.4125, allocations: 0.6727 MB / 383.7 MB, free: 54.58 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.4125, allocations: 0 / 383.7 MB, free: 54.58 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001039/0.4136, allocations: 187.7 kB / 383.9 MB, free: 54.58 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.0003424/0.4139, allocations: 148.1 kB / 384 MB, free: 54.49 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003469/0.4174, allocations: 1.946 MB / 386 MB, free: 54.27 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.4174, allocations: 4.781 kB / 386 MB, free: 54.27 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001989/0.4194, allocations: 1.096 MB / 387.1 MB, free: 53.87 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004523/0.4199, allocations: 61.92 kB / 387.1 MB, free: 53.84 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004363/0.4243, allocations: 2.289 MB / 389.4 MB, free: 52.88 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004905/0.4248, allocations: 0.9357 MB / 390.4 MB, free: 52.16 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000232/0.425, allocations: 42.58 kB / 390.4 MB, free: 52.15 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001165/0.4251, allocations: 31.38 kB / 390.4 MB, free: 52.14 MB / 318.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4251, allocations: 0 / 390.4 MB, free: 52.14 MB / 318.1 MB Notification: Performance of Templates: time 0.02476/0.4499, allocations: 20.96 MB / 411.4 MB, free: 33.88 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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