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.001403/0.001403, allocations: 181.2 kB / 17.41 MB, free: 4.406 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.383/1.383, allocations: 205.4 MB / 223.6 MB, free: 9.016 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.0007418/0.0007418, allocations: 85.42 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003473/0.0003473, allocations: 16 kB / 328.2 MB, free: 15.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2465, allocations: 47.57 MB / 375.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09703/0.3435, allocations: 78.91 MB / 454.6 MB, free: 1.719 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002369/0.3438, allocations: 71.97 kB / 454.7 MB, free: 1.648 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02566/0.3695, allocations: 9.215 MB / 463.9 MB, free: 8.422 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3696, allocations: 0 / 463.9 MB, free: 8.422 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.22e-05/0.3696, allocations: 8 kB / 463.9 MB, free: 8.414 MB / 346.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.001608/0.3712, allocations: 0.8185 MB / 464.7 MB, free: 7.543 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.3713, allocations: 8.031 kB / 464.8 MB, free: 7.535 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001184/0.3714, allocations: 60.19 kB / 464.8 MB, free: 7.477 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004588/0.3719, allocations: 355.7 kB / 465.2 MB, free: 7.09 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.153e-05/0.3719, allocations: 33.38 kB / 465.2 MB, free: 7.055 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.889e-05/0.372, allocations: 48.28 kB / 465.2 MB, free: 7.008 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001087/0.3731, allocations: 0.5961 MB / 465.8 MB, free: 6.402 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.385e-05/0.3731, allocations: 4.188 kB / 465.8 MB, free: 6.398 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.003e-05/0.3732, allocations: 19.94 kB / 465.9 MB, free: 6.379 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.3732, allocations: 12 kB / 465.9 MB, free: 6.367 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001124/0.3744, allocations: 0.5543 MB / 466.4 MB, free: 5.812 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002394/0.3768, allocations: 1.34 MB / 467.8 MB, free: 4.418 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009916/0.3778, allocations: 479.6 kB / 468.2 MB, free: 3.945 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005612/0.3783, allocations: 302.4 kB / 468.5 MB, free: 3.648 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.073e-05/0.3784, allocations: 4.562 kB / 468.5 MB, free: 3.645 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.192e-05/0.3785, allocations: 43.12 kB / 468.6 MB, free: 3.594 MB / 346.7 MB Notification: Performance of pre-optimization done (n=61): time 3.697e-06/0.3785, allocations: 0 / 468.6 MB, free: 3.594 MB / 346.7 MB Notification: Performance of matching and sorting (n=67): time 0.006449/0.3849, allocations: 2.93 MB / 471.5 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.766e-05/0.385, allocations: 59.97 kB / 471.6 MB, free: 460 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000327/0.3854, allocations: 292.5 kB / 471.8 MB, free: 160 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.024e-05/0.3854, allocations: 49.7 kB / 471.9 MB, free: 104 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001488/0.3856, allocations: 189.4 kB / 472.1 MB, free: 15.91 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001917/0.3858, allocations: 232.8 kB / 472.3 MB, free: 15.68 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.907e-05/0.3858, allocations: 16 kB / 472.3 MB, free: 15.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.386, allocations: 354.8 kB / 472.7 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005812/0.3866, allocations: 293.9 kB / 473 MB, free: 15.02 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006207/0.3872, allocations: 361.1 kB / 473.3 MB, free: 14.66 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009374/0.3882, allocations: 475.1 kB / 473.8 MB, free: 14.18 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.3882, allocations: 0 / 473.8 MB, free: 14.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001684/0.3899, allocations: 0.8568 MB / 474.6 MB, free: 13.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/0.3899, allocations: 4 kB / 474.6 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.067e-05/0.3899, allocations: 4 kB / 474.6 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001098/0.3911, allocations: 0.5751 MB / 475.2 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003673/0.3914, allocations: 103.8 kB / 475.3 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001327/0.3928, allocations: 0.9857 MB / 476.3 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006965/0.3935, allocations: 151.9 kB / 476.4 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.114e-05/0.3936, allocations: 27.98 kB / 476.5 MB, free: 11.45 MB / 362.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): 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.0003298/0.3939, allocations: 192 kB / 476.7 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000106/0.394, allocations: 47.44 kB / 476.7 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001984/0.396, allocations: 0.925 MB / 477.6 MB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.088e-05/0.396, allocations: 4 kB / 477.6 MB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.3961, allocations: 7.938 kB / 477.6 MB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.3961, allocations: 11.92 kB / 477.7 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002624/0.3987, allocations: 1.481 MB / 479.1 MB, free: 8.691 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.102e-06/0.3987, allocations: 3.938 kB / 479.1 MB, free: 8.688 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004123/0.3991, allocations: 95.88 kB / 479.2 MB, free: 8.594 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009994/0.4002, allocations: 0.5433 MB / 479.8 MB, free: 8.047 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.624e-05/0.4002, allocations: 35.95 kB / 479.8 MB, free: 8.012 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001225/0.4015, allocations: 0.9473 MB / 480.8 MB, free: 7.039 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4015, allocations: 0 / 480.8 MB, free: 7.039 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002318/0.4038, allocations: 1.206 MB / 482 MB, free: 5.809 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002713/0.4041, allocations: 184.4 kB / 482.1 MB, free: 5.609 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.4042, allocations: 23.94 kB / 482.2 MB, free: 5.586 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006182/0.4048, allocations: 143.9 kB / 482.3 MB, free: 5.445 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002829/0.4051, allocations: 152.2 kB / 482.5 MB, free: 5.297 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.25e-05/0.4052, allocations: 35.89 kB / 482.5 MB, free: 5.262 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002379/0.4055, allocations: 215.2 kB / 482.7 MB, free: 5.055 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4055, allocations: 4 kB / 482.7 MB, free: 5.051 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005633/0.406, allocations: 164 kB / 482.9 MB, free: 4.891 MB / 362.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) * 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.0002695/0.4063, allocations: 146.7 kB / 483 MB, free: 4.742 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0016/0.4079, allocations: 0.8084 MB / 483.8 MB, free: 3.918 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4079, allocations: 0 / 483.8 MB, free: 3.918 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007803/0.4087, allocations: 406 kB / 484.2 MB, free: 3.523 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000646/0.4094, allocations: 93.3 kB / 484.3 MB, free: 3.43 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002701/0.4121, allocations: 1.702 MB / 486 MB, free: 1.688 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004179/0.4125, allocations: 0.8481 MB / 486.9 MB, free: 0.8164 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001331/0.4127, allocations: 39.42 kB / 486.9 MB, free: 0.7773 MB / 362.7 MB Notification: Performance of SimCode: time 5.31e-07/0.4127, allocations: 0 / 486.9 MB, free: 0.7773 MB / 362.7 MB Notification: Performance of Templates: time 0.01111/0.4238, allocations: 8.573 MB / 495.5 MB, free: 8.207 MB / 378.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