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.001499/0.001499, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.035/2.035, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001129/0.001129, allocations: 86.64 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.141e-05/4.175e-05, allocations: 0 / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1065, allocations: 47.57 MB / 369.1 MB, free: 2.203 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3945/0.501, allocations: 78.77 MB / 447.9 MB, free: 14.41 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002645/0.5014, allocations: 74.53 kB / 447.9 MB, free: 14.37 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04555/0.5469, allocations: 9.185 MB / 457.1 MB, free: 6.445 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.547, allocations: 0 / 457.1 MB, free: 6.445 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.396e-05/0.547, allocations: 12 kB / 457.1 MB, free: 6.434 MB / 330.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.002615/0.5497, allocations: 0.7768 MB / 457.9 MB, free: 5.641 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.5497, allocations: 8.031 kB / 457.9 MB, free: 5.633 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002402/0.55, allocations: 63.25 kB / 458 MB, free: 5.57 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006826/0.5507, allocations: 332.6 kB / 458.3 MB, free: 5.234 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.274e-05/0.5508, allocations: 39.58 kB / 458.3 MB, free: 5.211 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001487/0.5509, allocations: 42.25 kB / 458.4 MB, free: 5.184 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001526/0.5525, allocations: 0.5528 MB / 458.9 MB, free: 4.789 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.911e-05/0.5525, allocations: 10.97 kB / 458.9 MB, free: 4.781 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.412e-05/0.5526, allocations: 16 kB / 459 MB, free: 4.777 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.063e-05/0.5527, allocations: 15.98 kB / 459 MB, free: 4.762 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00146/0.5541, allocations: 0.4914 MB / 459.5 MB, free: 4.426 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004367/0.5585, allocations: 1.344 MB / 460.8 MB, free: 3.281 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001552/0.5601, allocations: 442.1 kB / 461.2 MB, free: 2.898 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008002/0.561, allocations: 270.5 kB / 461.5 MB, free: 2.633 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001234/0.5611, allocations: 8.562 kB / 461.5 MB, free: 2.625 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.574e-05/0.5612, allocations: 39.12 kB / 461.5 MB, free: 2.578 MB / 330.7 MB Notification: Performance of pre-optimization done (n=61): time 3.536e-06/0.5612, allocations: 0 / 461.5 MB, free: 2.578 MB / 330.7 MB Notification: Performance of matching and sorting (n=67): time 0.006108/0.5673, allocations: 1.924 MB / 463.5 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.411e-05/0.5674, allocations: 63.97 kB / 463.5 MB, free: 500 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004459/0.5679, allocations: 254.7 kB / 463.8 MB, free: 236 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001747/0.568, allocations: 53.64 kB / 463.8 MB, free: 176 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001977/0.5683, allocations: 236 kB / 464.1 MB, free: 15.94 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003167/0.5686, allocations: 236.7 kB / 464.3 MB, free: 15.71 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.189e-05/0.5687, allocations: 8 kB / 464.3 MB, free: 15.7 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.5688, allocations: 342.8 kB / 464.6 MB, free: 15.36 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000809/0.5697, allocations: 265.5 kB / 464.9 MB, free: 15.1 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008598/0.5705, allocations: 319.1 kB / 465.2 MB, free: 14.78 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006459/0.5712, allocations: 190.1 kB / 465.4 MB, free: 14.6 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.5712, allocations: 4 kB / 465.4 MB, free: 14.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002393/0.5736, allocations: 0.7746 MB / 466.2 MB, free: 13.8 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.853e-05/0.5737, allocations: 4 kB / 466.2 MB, free: 13.8 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.05e-05/0.5738, allocations: 4 kB / 466.2 MB, free: 13.8 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00183/0.5756, allocations: 0.5536 MB / 466.7 MB, free: 13.24 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008107/0.5764, allocations: 107.8 kB / 466.8 MB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002077/0.5785, allocations: 0.9704 MB / 467.8 MB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001482/0.5801, allocations: 147.9 kB / 468 MB, free: 12 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001451/0.5802, allocations: 31.98 kB / 468 MB, free: 11.96 MB / 346.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.0002834/0.5805, allocations: 147.2 kB / 468.1 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001665/0.5807, allocations: 51.42 kB / 468.2 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002791/0.5835, allocations: 0.8703 MB / 469 MB, free: 10.87 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.354e-05/0.5836, allocations: 4 kB / 469.1 MB, free: 10.87 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.5836, allocations: 4 kB / 469.1 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.395e-05/0.5836, allocations: 7.984 kB / 469.1 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004008/0.5876, allocations: 1.415 MB / 470.5 MB, free: 9.379 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.037e-05/0.5877, allocations: 4 kB / 470.5 MB, free: 9.375 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009002/0.5886, allocations: 99.81 kB / 470.6 MB, free: 9.277 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001736/0.5904, allocations: 0.5239 MB / 471.1 MB, free: 8.75 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001392/0.5905, allocations: 31.95 kB / 471.1 MB, free: 8.719 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001952/0.5925, allocations: 0.94 MB / 472.1 MB, free: 7.754 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.5926, allocations: 4 kB / 472.1 MB, free: 7.75 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003448/0.596, allocations: 1.121 MB / 473.2 MB, free: 6.609 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000471/0.5965, allocations: 188.4 kB / 473.4 MB, free: 6.406 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001831/0.5967, allocations: 20 kB / 473.4 MB, free: 6.387 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001298/0.598, allocations: 143.9 kB / 473.5 MB, free: 6.246 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005014/0.5986, allocations: 156.2 kB / 473.7 MB, free: 6.094 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001143/0.5987, allocations: 35.95 kB / 473.7 MB, free: 6.059 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003967/0.5991, allocations: 210.2 kB / 473.9 MB, free: 5.852 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5991, allocations: 0 / 473.9 MB, free: 5.852 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008506/0.6, allocations: 160 kB / 474.1 MB, free: 5.695 MB / 346.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,clutch2.mode,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * 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.0003765/0.6004, allocations: 139.5 kB / 474.2 MB, free: 5.551 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002381/0.6028, allocations: 0.751 MB / 475 MB, free: 4.789 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/0.6028, allocations: 4 kB / 475 MB, free: 4.785 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001258/0.6041, allocations: 377.9 kB / 475.4 MB, free: 4.418 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009721/0.6051, allocations: 94.58 kB / 475.4 MB, free: 4.324 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003931/0.6091, allocations: 1.24 MB / 476.7 MB, free: 3.055 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005405/0.6096, allocations: 0.8557 MB / 477.5 MB, free: 2.172 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002679/0.6099, allocations: 39.41 kB / 477.6 MB, free: 2.133 MB / 346.7 MB Notification: Performance of SimCode: time 1.983e-06/0.61, allocations: 0 / 477.6 MB, free: 2.133 MB / 346.7 MB Notification: Performance of Templates: time 0.02006/0.63, allocations: 8.303 MB / 485.9 MB, free: 9.824 MB / 362.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/jenkins1/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