Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches") translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000926/0.0009261, allocations: 175.1 kB / 16.72 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.461/1.461, allocations: 205.4 MB / 222.9 MB, free: 8.941 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007676/0.0007675, allocations: 90.41 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003855/0.0003857, allocations: 8 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.256, allocations: 47.57 MB / 375.1 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.00269/0.2588, allocations: 2.626 MB / 377.7 MB, free: 43.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001633/0.2605, allocations: 1.04 MB / 378.8 MB, free: 42.49 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002027/0.2607, allocations: 9.062 kB / 378.8 MB, free: 42.48 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002118/0.2609, allocations: 58.61 kB / 378.8 MB, free: 42.44 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002225/0.2611, allocations: 137.1 kB / 379 MB, free: 42.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000469/0.2616, allocations: 205.5 kB / 379.2 MB, free: 42.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000681/0.2623, allocations: 0.7058 MB / 379.9 MB, free: 41.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002276/0.2625, allocations: 116.5 kB / 380 MB, free: 41.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003948/0.2629, allocations: 308.6 kB / 380.3 MB, free: 41.5 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003595/0.2633, allocations: 341.5 kB / 380.6 MB, free: 41.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.731e-05/0.2634, allocations: 32.59 kB / 380.6 MB, free: 41.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001783/0.2636, allocations: 81.16 kB / 380.7 MB, free: 41.26 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001209/0.2637, allocations: 123.3 kB / 380.8 MB, free: 41.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002295/0.264, allocations: 284 kB / 381.1 MB, free: 40.96 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003958/0.2644, allocations: 0.4911 MB / 381.6 MB, free: 40.6 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.2644, allocations: 4 kB / 381.6 MB, free: 40.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.2644, allocations: 1.406 kB / 381.6 MB, free: 40.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.406e-06/0.2644, allocations: 0 / 381.6 MB, free: 40.59 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001491/0.2659, allocations: 0.8147 MB / 382.4 MB, free: 39.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.2659, allocations: 10.12 kB / 382.4 MB, free: 39.95 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001248/0.2661, allocations: 56.91 kB / 382.5 MB, free: 39.92 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004059/0.2665, allocations: 357.8 kB / 382.8 MB, free: 39.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.046e-05/0.2665, allocations: 35.09 kB / 382.9 MB, free: 39.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.537e-05/0.2666, allocations: 44.78 kB / 382.9 MB, free: 39.55 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001053/0.2677, allocations: 0.626 MB / 383.5 MB, free: 39.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.381e-05/0.2677, allocations: 10.09 kB / 383.6 MB, free: 39.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.612e-05/0.2678, allocations: 19.84 kB / 383.6 MB, free: 39.14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.355e-05/0.2678, allocations: 11.03 kB / 383.6 MB, free: 39.14 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001136/0.269, allocations: 0.6128 MB / 384.2 MB, free: 38.86 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002328/0.2713, allocations: 1.375 MB / 385.6 MB, free: 37.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009389/0.2723, allocations: 471.1 kB / 386 MB, free: 37.58 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004626/0.2727, allocations: 314.4 kB / 386.3 MB, free: 37.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.629e-05/0.2728, allocations: 8.562 kB / 386.3 MB, free: 37.27 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.914e-05/0.2728, allocations: 39.12 kB / 386.4 MB, free: 37.22 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 2.825e-06/0.2728, allocations: 3.938 kB / 386.4 MB, free: 37.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=64): time 0.00534/0.2782, allocations: 3.019 MB / 389.4 MB, free: 34.05 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.851e-05/0.2782, allocations: 63.97 kB / 389.5 MB, free: 33.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002814/0.2785, allocations: 329.6 kB / 389.8 MB, free: 33.64 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.897e-05/0.2786, allocations: 49.7 kB / 389.8 MB, free: 33.59 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.986e-05/0.2787, allocations: 189.3 kB / 390 MB, free: 33.4 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/0.2788, allocations: 228.9 kB / 390.3 MB, free: 33.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.311e-05/0.2789, allocations: 8 kB / 390.3 MB, free: 33.17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.644e-05/0.279, allocations: 362.7 kB / 390.6 MB, free: 32.8 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000511/0.2795, allocations: 337.7 kB / 390.9 MB, free: 32.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005313/0.28, allocations: 389 kB / 391.3 MB, free: 32.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008055/0.2808, allocations: 0.5148 MB / 391.8 MB, free: 31.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.2808, allocations: 4 kB / 391.8 MB, free: 31.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001545/0.2824, allocations: 0.9427 MB / 392.8 MB, free: 30.61 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.2824, allocations: 8.031 kB / 392.8 MB, free: 30.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.2824, allocations: 4 kB / 392.8 MB, free: 30.6 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001048/0.2835, allocations: 0.7234 MB / 393.5 MB, free: 29.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000348/0.2839, allocations: 107.9 kB / 393.6 MB, free: 29.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001104/0.285, allocations: 1.095 MB / 394.7 MB, free: 28.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006785/0.2857, allocations: 155.9 kB / 394.9 MB, free: 28.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.616e-05/0.2857, allocations: 23.98 kB / 394.9 MB, free: 28.48 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0002351/0.286, allocations: 188 kB / 395.1 MB, free: 28.28 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.487e-05/0.2861, allocations: 47.44 kB / 395.1 MB, free: 28.23 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001356/0.2862, allocations: 68.75 kB / 395.2 MB, free: 28.16 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.2862, allocations: 7.984 kB / 395.2 MB, free: 28.15 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.787e-06/0.2862, allocations: 4 kB / 395.2 MB, free: 28.15 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.2862, allocations: 0 / 395.2 MB, free: 28.15 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002211/0.2885, allocations: 1.586 MB / 396.8 MB, free: 26.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.2885, allocations: 0 / 396.8 MB, free: 26.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003733/0.2889, allocations: 95.88 kB / 396.9 MB, free: 26.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009227/0.2898, allocations: 0.7033 MB / 397.6 MB, free: 25.7 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.422e-05/0.2899, allocations: 23.97 kB / 397.6 MB, free: 25.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001052/0.2909, allocations: 1.064 MB / 398.7 MB, free: 24.59 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.2909, allocations: 0 / 398.7 MB, free: 24.59 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002074/0.293, allocations: 1.323 MB / 400 MB, free: 23.24 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002811/0.2933, allocations: 196.4 kB / 400.2 MB, free: 23.03 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001084/0.2934, allocations: 24 kB / 400.2 MB, free: 23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005854/0.294, allocations: 147.8 kB / 400.4 MB, free: 22.86 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002661/0.2943, allocations: 144.2 kB / 400.5 MB, free: 22.72 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.213e-05/0.2944, allocations: 31.97 kB / 400.5 MB, free: 22.69 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002005/0.2946, allocations: 235.1 kB / 400.8 MB, free: 22.46 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2946, allocations: 0 / 400.8 MB, free: 22.46 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005508/0.2951, allocations: 156 kB / 400.9 MB, free: 22.3 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,J3.phi,J3.w,clutch3.phi_rel,clutch3.w_rel) * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode) * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.mode,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.000247/0.2954, allocations: 143.2 kB / 401.1 MB, free: 22.16 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001344/0.2967, allocations: 0.7883 MB / 401.8 MB, free: 21.37 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.2968, allocations: 0 / 401.8 MB, free: 21.37 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007449/0.2975, allocations: 433.9 kB / 402.3 MB, free: 20.95 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006187/0.2981, allocations: 85.31 kB / 402.3 MB, free: 20.86 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002213/0.3004, allocations: 1.705 MB / 404.1 MB, free: 19.13 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002362/0.3006, allocations: 0.8364 MB / 404.9 MB, free: 18.27 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001279/0.3007, allocations: 43.41 kB / 404.9 MB, free: 18.23 MB / 298.7 MB Notification: Performance of SimCode: time 6.71e-07/0.3008, allocations: 4 kB / 404.9 MB, free: 18.22 MB / 298.7 MB Notification: Performance of Templates: time 0.009235/0.31, allocations: 8.515 MB / 413.4 MB, free: 9.711 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches