Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.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.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001163/0.001162, allocations: 96.86 kB / 17.3 MB, free: 6.391 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.001343/0.001343, allocations: 175.1 kB / 18.2 MB, free: 5.551 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.439/1.439, allocations: 205.4 MB / 224.4 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.0006846/0.0006845, allocations: 12 kB / 281.4 MB, free: 3.43 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1408, allocations: 47.58 MB / 329 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004684/0.1456, allocations: 2.684 MB / 331.6 MB, free: 1.07 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002477/0.1481, allocations: 0.9747 MB / 332.6 MB, free: 88 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002654/0.1484, allocations: 7.938 kB / 332.6 MB, free: 80 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003097/0.1487, allocations: 47.62 kB / 332.7 MB, free: 32 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004448/0.1492, allocations: 111.2 kB / 332.8 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008788/0.1501, allocations: 187.7 kB / 333 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001006/0.1511, allocations: 0.6043 MB / 333.6 MB, free: 15.13 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003743/0.1515, allocations: 107.9 kB / 333.7 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005631/0.152, allocations: 243 kB / 333.9 MB, free: 14.78 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005341/0.1526, allocations: 274.9 kB / 334.2 MB, free: 14.51 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.047e-05/0.1527, allocations: 28 kB / 334.2 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002668/0.153, allocations: 71.89 kB / 334.3 MB, free: 14.41 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002151/0.1532, allocations: 95.64 kB / 334.4 MB, free: 14.32 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003637/0.1536, allocations: 248.5 kB / 334.6 MB, free: 14.07 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008501/0.1544, allocations: 0.5529 MB / 335.2 MB, free: 13.52 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.1545, allocations: 4 kB / 335.2 MB, free: 13.51 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.1545, allocations: 0 / 335.2 MB, free: 13.51 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.628e-06/0.1545, allocations: 0 / 335.2 MB, free: 13.51 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001827/0.1563, allocations: 0.7136 MB / 335.9 MB, free: 12.75 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.332e-05/0.1564, allocations: 12.03 kB / 335.9 MB, free: 12.74 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001543/0.1566, allocations: 56.27 kB / 335.9 MB, free: 12.68 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005533/0.1571, allocations: 323.3 kB / 336.3 MB, free: 12.32 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.161e-05/0.1572, allocations: 29.38 kB / 336.3 MB, free: 12.29 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001172/0.1573, allocations: 44.28 kB / 336.3 MB, free: 12.25 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001266/0.1586, allocations: 486.6 kB / 336.8 MB, free: 11.77 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.204e-05/0.1587, allocations: 4 kB / 336.8 MB, free: 11.77 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.421e-05/0.1587, allocations: 16 kB / 336.8 MB, free: 11.75 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.883e-05/0.1588, allocations: 8 kB / 336.8 MB, free: 11.74 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001359/0.1601, allocations: 499.6 kB / 337.3 MB, free: 11.26 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00288/0.163, allocations: 1.153 MB / 338.5 MB, free: 10.05 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001115/0.1642, allocations: 400.4 kB / 338.9 MB, free: 9.648 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007338/0.1649, allocations: 278 kB / 339.1 MB, free: 9.371 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.752e-05/0.165, allocations: 12.42 kB / 339.2 MB, free: 9.359 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.682e-05/0.165, allocations: 39 kB / 339.2 MB, free: 9.312 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 4.028e-06/0.165, allocations: 0 / 339.2 MB, free: 9.312 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.007349/0.1724, allocations: 2.456 MB / 341.6 MB, free: 6.73 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.067e-05/0.1725, allocations: 55.97 kB / 341.7 MB, free: 6.664 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004237/0.1729, allocations: 287.3 kB / 342 MB, free: 6.379 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.619e-05/0.173, allocations: 49.69 kB / 342 MB, free: 6.324 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001607/0.1732, allocations: 177.3 kB / 342.2 MB, free: 6.148 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002177/0.1734, allocations: 201.3 kB / 342.4 MB, free: 5.949 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.1736, allocations: 53.69 kB / 342.5 MB, free: 5.891 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.1737, allocations: 346.8 kB / 342.8 MB, free: 5.543 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007394/0.1745, allocations: 253.2 kB / 343 MB, free: 5.297 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007491/0.1752, allocations: 292.8 kB / 343.3 MB, free: 5.004 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001168/0.1764, allocations: 434.2 kB / 343.7 MB, free: 4.574 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.1764, allocations: 0 / 343.7 MB, free: 4.574 MB / 286.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002413/0.1789, allocations: 0.7951 MB / 344.5 MB, free: 3.766 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.649e-05/0.1789, allocations: 4 kB / 344.5 MB, free: 3.762 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/0.1789, allocations: 0 / 344.5 MB, free: 3.762 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001322/0.1803, allocations: 0.5052 MB / 345.1 MB, free: 3.25 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005028/0.1808, allocations: 87.89 kB / 345.1 MB, free: 3.164 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001894/0.1827, allocations: 1.405 MB / 346.5 MB, free: 1.707 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008156/0.1835, allocations: 99.97 kB / 346.6 MB, free: 1.609 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.697e-05/0.1836, allocations: 23.92 kB / 346.7 MB, free: 1.586 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,8), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003996/0.184, allocations: 181.4 kB / 346.8 MB, free: 1.398 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001243/0.1841, allocations: 39.47 kB / 346.9 MB, free: 1.359 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001637/0.1843, allocations: 55.73 kB / 346.9 MB, free: 1.301 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.127e-05/0.1843, allocations: 8 kB / 346.9 MB, free: 1.293 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.14e-05/0.1844, allocations: 0 / 346.9 MB, free: 1.293 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.11e-05/0.1844, allocations: 3.984 kB / 346.9 MB, free: 1.289 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004275/0.1887, allocations: 1.489 MB / 348.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.267e-05/0.1887, allocations: 3.938 kB / 348.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006066/0.1893, allocations: 91.83 kB / 348.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001257/0.1906, allocations: 489.5 kB / 349 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.319e-05/0.1907, allocations: 19.98 kB / 349 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00198/0.1927, allocations: 1.37 MB / 350.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.106e-05/0.1928, allocations: 12.14 kB / 350.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00343/0.1962, allocations: 1.1 MB / 351.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003895/0.1966, allocations: 168.6 kB / 351.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001265/0.1968, allocations: 19.94 kB / 351.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006574/0.1974, allocations: 83.92 kB / 351.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003131/0.1978, allocations: 88.41 kB / 351.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.214e-05/0.1978, allocations: 35.91 kB / 351.9 MB, free: 12.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003122/0.1982, allocations: 206 kB / 352.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1982, allocations: 0 / 352.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007938/0.199, allocations: 136 kB / 352.2 MB, free: 11.8 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (clutch.mode,clutch.startForward,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,6), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003518/0.1993, allocations: 131.2 kB / 352.4 MB, free: 11.67 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001959/0.2013, allocations: 0.6044 MB / 353 MB, free: 11.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.2013, allocations: 0 / 353 MB, free: 11.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001106/0.2024, allocations: 350.6 kB / 353.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000992/0.2035, allocations: 72.48 kB / 353.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00614/0.2096, allocations: 1.82 MB / 355.2 MB, free: 8.797 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005774/0.2102, allocations: 0.8205 MB / 356 MB, free: 7.953 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002983/0.2105, allocations: 39.28 kB / 356.1 MB, free: 7.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001406/0.2107, allocations: 39.42 kB / 356.1 MB, free: 7.871 MB / 302.1 MB Notification: Performance of SimCode: time 1.693e-06/0.2107, allocations: 0 / 356.1 MB, free: 7.871 MB / 302.1 MB Notification: Performance of Templates: time 0.02296/0.2337, allocations: 9.244 MB / 365.3 MB, free: 14.62 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches