Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.599/1.599, allocations: 221.4 MB / 235.5 MB, free: 2.953 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008203/0.0008203, allocations: 95.67 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.647e-05/2.65e-05, allocations: 4 kB / 343.8 MB, free: 4.316 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1177, allocations: 50.42 MB / 394.2 MB, free: 1.859 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3382/0.456, allocations: 79.68 MB / 473.9 MB, free: 7.871 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002175/0.4562, allocations: 71.78 kB / 474 MB, free: 7.805 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02581/0.4821, allocations: 9.324 MB / 483.3 MB, free: 14.47 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4821, allocations: 4 kB / 483.3 MB, free: 14.46 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.438e-05/0.4821, allocations: 12 kB / 483.3 MB, free: 14.45 MB / 362.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.001401/0.4835, allocations: 0.7719 MB / 484.1 MB, free: 13.63 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.4836, allocations: 12.03 kB / 484.1 MB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001168/0.4837, allocations: 63.19 kB / 484.2 MB, free: 13.56 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004228/0.4841, allocations: 339.5 kB / 484.5 MB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.382e-05/0.4842, allocations: 33 kB / 484.5 MB, free: 13.15 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.836e-05/0.4843, allocations: 47.98 kB / 484.6 MB, free: 13.11 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008908/0.4852, allocations: 0.5527 MB / 485.1 MB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.41e-05/0.4852, allocations: 7.906 kB / 485.1 MB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.717e-05/0.4853, allocations: 23.95 kB / 485.2 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.4853, allocations: 8 kB / 485.2 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008154/0.4861, allocations: 0.4919 MB / 485.7 MB, free: 12.01 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002264/0.4884, allocations: 1.344 MB / 487 MB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008264/0.4892, allocations: 440.7 kB / 487.4 MB, free: 10.17 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003872/0.4896, allocations: 274.5 kB / 487.7 MB, free: 9.902 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.86e-05/0.4897, allocations: 12.55 kB / 487.7 MB, free: 9.891 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.502e-05/0.4898, allocations: 43.06 kB / 487.8 MB, free: 9.84 MB / 362.7 MB Notification: Performance of pre-optimization done (n=61): time 1.773e-06/0.4898, allocations: 0 / 487.8 MB, free: 9.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.003292/0.4931, allocations: 1.94 MB / 489.7 MB, free: 7.809 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.556e-05/0.4931, allocations: 55.97 kB / 489.8 MB, free: 7.742 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000241/0.4934, allocations: 254.7 kB / 490 MB, free: 7.484 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.072e-05/0.4934, allocations: 45.7 kB / 490.1 MB, free: 7.434 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/0.4936, allocations: 193.4 kB / 490.2 MB, free: 7.242 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001693/0.4937, allocations: 224.9 kB / 490.5 MB, free: 7.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.141e-05/0.4938, allocations: 15.94 kB / 490.5 MB, free: 7.004 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.4939, allocations: 354.8 kB / 490.8 MB, free: 6.648 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000431/0.4943, allocations: 261.5 kB / 491.1 MB, free: 6.395 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004554/0.4948, allocations: 319.1 kB / 491.4 MB, free: 6.078 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003323/0.4951, allocations: 198.1 kB / 491.6 MB, free: 5.887 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.4952, allocations: 0 / 491.6 MB, free: 5.887 MB / 362.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001281/0.4964, allocations: 0.794 MB / 492.4 MB, free: 5.078 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.4965, allocations: 7.953 kB / 492.4 MB, free: 5.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.664e-05/0.4965, allocations: 4 kB / 492.4 MB, free: 5.066 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009829/0.4975, allocations: 0.5454 MB / 492.9 MB, free: 4.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003602/0.4979, allocations: 99.81 kB / 493 MB, free: 4.422 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001169/0.499, allocations: 0.9886 MB / 494 MB, free: 3.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006823/0.4997, allocations: 143.9 kB / 494.2 MB, free: 3.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.742e-05/0.4998, allocations: 35.98 kB / 494.2 MB, free: 3.234 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 () * 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.0001602/0.5, allocations: 143.1 kB / 494.3 MB, free: 3.09 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.26e-05/0.5001, allocations: 47.44 kB / 494.4 MB, free: 3.043 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001655/0.5017, allocations: 0.8626 MB / 495.2 MB, free: 2.16 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.5018, allocations: 11.94 kB / 495.3 MB, free: 2.148 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.5018, allocations: 0 / 495.3 MB, free: 2.148 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.5018, allocations: 3.984 kB / 495.3 MB, free: 2.145 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002192/0.504, allocations: 1.426 MB / 496.7 MB, free: 0.6562 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.504, allocations: 3.938 kB / 496.7 MB, free: 0.6523 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004179/0.5044, allocations: 99.88 kB / 496.8 MB, free: 0.5547 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009244/0.5054, allocations: 0.5278 MB / 497.3 MB, free: 24 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.127e-05/0.5055, allocations: 28.02 kB / 497.3 MB, free: 15.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001069/0.5065, allocations: 0.9426 MB / 498.3 MB, free: 15.03 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.5065, allocations: 4 kB / 498.3 MB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001846/0.5084, allocations: 1.117 MB / 499.4 MB, free: 13.89 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002529/0.5087, allocations: 188.4 kB / 499.6 MB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.5088, allocations: 23.95 kB / 499.6 MB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006652/0.5094, allocations: 143.9 kB / 499.8 MB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002886/0.5097, allocations: 148.2 kB / 499.9 MB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.323e-05/0.5098, allocations: 31.95 kB / 499.9 MB, free: 13.34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002172/0.51, allocations: 218.1 kB / 0.4884 GB, free: 13.13 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5101, allocations: 0 / 0.4884 GB, free: 13.13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005519/0.5106, allocations: 160 kB / 0.4886 GB, free: 12.97 MB / 378.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.0003111/0.5109, allocations: 162.5 kB / 0.4887 GB, free: 12.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001286/0.5122, allocations: 0.7429 MB / 0.4895 GB, free: 12.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.5122, allocations: 4 kB / 0.4895 GB, free: 12.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006456/0.5129, allocations: 382 kB / 0.4898 GB, free: 11.67 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005075/0.5134, allocations: 69.17 kB / 0.4899 GB, free: 11.61 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002097/0.5155, allocations: 1.22 MB / 0.4911 GB, free: 10.36 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004839/0.516, allocations: 0.8557 MB / 0.4919 GB, free: 9.48 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001815/0.5162, allocations: 40.17 kB / 0.492 GB, free: 9.438 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001072/0.5163, allocations: 31.42 kB / 0.492 GB, free: 9.406 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5163, allocations: 0 / 0.492 GB, free: 9.406 MB / 378.7 MB Notification: Performance of Templates: time 0.01619/0.5325, allocations: 11.47 MB / 0.5032 GB, free: 13.98 MB / 394.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches