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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008032/0.0008032, allocations: 93.42 kB / 17.31 MB, free: 5.668 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.0008609/0.0008609, allocations: 176.6 kB / 18.21 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.128/1.128, allocations: 223.3 MB / 242.3 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002062/0.0002062, allocations: 7.938 kB / 302.1 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06838/0.0686, allocations: 50.42 MB / 352.5 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.002454/0.07107, allocations: 2.744 MB / 355.2 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001474/0.07255, allocations: 1.04 MB / 356.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001696/0.07273, allocations: 7.938 kB / 356.3 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001725/0.07292, allocations: 59.61 kB / 356.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002427/0.07317, allocations: 134.9 kB / 356.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004562/0.07363, allocations: 235.7 kB / 356.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005915/0.07423, allocations: 0.7607 MB / 357.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001782/0.07442, allocations: 120.8 kB / 357.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000364/0.07479, allocations: 310.8 kB / 357.9 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003517/0.07515, allocations: 350.7 kB / 358.2 MB, free: 13.69 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.272e-05/0.07522, allocations: 36 kB / 358.3 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000156/0.07538, allocations: 79.89 kB / 358.3 MB, free: 13.58 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001174/0.0755, allocations: 119.5 kB / 358.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002165/0.07572, allocations: 296.2 kB / 358.8 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000395/0.07612, allocations: 0.499 MB / 359.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.573e-06/0.07613, allocations: 0 / 359.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.07614, allocations: 0 / 359.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.617e-06/0.07615, allocations: 0 / 359.3 MB, free: 12.66 MB / 302.1 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.001354/0.07751, allocations: 0.8147 MB / 360.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.713e-05/0.07754, allocations: 8.031 kB / 360.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001019/0.07765, allocations: 64.19 kB / 360.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003434/0.078, allocations: 355.7 kB / 360.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.444e-05/0.07804, allocations: 33.38 kB / 360.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.771e-05/0.07814, allocations: 48.36 kB / 360.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009515/0.07909, allocations: 0.6269 MB / 361.2 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.898e-05/0.07912, allocations: 7.906 kB / 361.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.174e-05/0.07918, allocations: 20 kB / 361.2 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.07919, allocations: 12 kB / 361.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001057/0.08025, allocations: 0.6167 MB / 361.8 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001963/0.08223, allocations: 1.371 MB / 363.2 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00082/0.08306, allocations: 466.2 kB / 363.7 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005093/0.08358, allocations: 322.4 kB / 364 MB, free: 7.758 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.197e-05/0.08363, allocations: 12.55 kB / 364 MB, free: 7.746 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.734e-05/0.08365, allocations: 35.12 kB / 364 MB, free: 7.703 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 1.663e-06/0.08366, allocations: 0 / 364 MB, free: 7.703 MB / 302.1 MB Notification: Performance of matching and sorting (n=64): time 0.005599/0.08926, allocations: 3.039 MB / 367.1 MB, free: 4.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.147e-05/0.0893, allocations: 59.91 kB / 367.1 MB, free: 4.449 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002724/0.08958, allocations: 329.7 kB / 367.5 MB, free: 4.117 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.295e-05/0.08965, allocations: 45.7 kB / 367.5 MB, free: 4.066 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.08976, allocations: 197.2 kB / 367.7 MB, free: 3.871 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001551/0.08992, allocations: 228.9 kB / 367.9 MB, free: 3.645 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.045e-05/0.09002, allocations: 65.67 kB / 368 MB, free: 3.574 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.09013, allocations: 354.7 kB / 368.3 MB, free: 3.219 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005577/0.09069, allocations: 325.8 kB / 368.6 MB, free: 2.902 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005817/0.09128, allocations: 405 kB / 369 MB, free: 2.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008787/0.09217, allocations: 0.5187 MB / 369.6 MB, free: 1.973 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.09218, allocations: 3.938 kB / 369.6 MB, free: 1.969 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00153/0.09371, allocations: 0.9428 MB / 370.5 MB, free: 1.016 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.09374, allocations: 11.98 kB / 370.5 MB, free: 1.004 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.09375, allocations: 0 / 370.5 MB, free: 1.004 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001027/0.09478, allocations: 0.7258 MB / 371.2 MB, free: 284 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003413/0.09513, allocations: 103.9 kB / 371.3 MB, free: 180 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1246/0.2197, allocations: 1.088 MB / 372.4 MB, free: 24.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007574/0.2205, allocations: 148 kB / 372.6 MB, free: 24.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.046e-05/0.2206, allocations: 27.73 kB / 372.6 MB, free: 24.77 MB / 302.1 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 (clutch3.mode,$PRE.clutch3.mode,clutch3.locked,clutch3.startBackward,$PRE.clutch3.startBackward,clutch3.startForward,$PRE.clutch3.startForward,clutch3.free,clutch2.mode,$PRE.clutch2.mode,clutch2.locked,clutch2.startBackward,$PRE.clutch2.startBackward,clutch2.startForward,$PRE.clutch2.startForward,clutch2.free,clutch1.mode,$PRE.clutch1.mode,clutch1.locked,clutch1.startBackward,$PRE.clutch1.startBackward,clutch1.startForward,$PRE.clutch1.startForward,clutch1.free) * 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 (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(3,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0002296/0.2208, allocations: 181.3 kB / 372.8 MB, free: 24.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.207e-05/0.2209, allocations: 53.23 kB / 372.8 MB, free: 24.66 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001615/0.2211, allocations: 69.7 kB / 372.9 MB, free: 24.65 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.2211, allocations: 6.844 kB / 372.9 MB, free: 24.65 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.2211, allocations: 0.8906 kB / 372.9 MB, free: 24.65 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.2211, allocations: 3.641 kB / 372.9 MB, free: 24.65 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002376/0.2235, allocations: 1.583 MB / 374.5 MB, free: 24.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.2235, allocations: 0 / 374.5 MB, free: 24.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000375/0.2239, allocations: 92.88 kB / 374.6 MB, free: 24.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001011/0.2249, allocations: 0.7091 MB / 375.3 MB, free: 24.12 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.443e-05/0.225, allocations: 27.61 kB / 375.3 MB, free: 24.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001005/0.226, allocations: 1.078 MB / 376.4 MB, free: 23.4 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.226, allocations: 0 / 376.4 MB, free: 23.4 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002031/0.228, allocations: 1.33 MB / 377.7 MB, free: 22.87 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000177/0.2282, allocations: 189.3 kB / 377.9 MB, free: 22.75 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.064e-05/0.2283, allocations: 21.16 kB / 377.9 MB, free: 22.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00062/0.2289, allocations: 146.5 kB / 378.1 MB, free: 22.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002367/0.2292, allocations: 121 kB / 378.2 MB, free: 22.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.927e-05/0.2292, allocations: 30.72 kB / 378.2 MB, free: 22.69 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001803/0.2294, allocations: 231.1 kB / 378.5 MB, free: 22.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.2294, allocations: 0 / 378.5 MB, free: 22.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000439/0.2299, allocations: 167.5 kB / 378.6 MB, free: 22.55 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(3,19)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001739/0.2301, allocations: 148.6 kB / 378.8 MB, free: 22.44 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001333/0.2314, allocations: 0.7902 MB / 379.5 MB, free: 22.19 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2314, allocations: 0 / 379.5 MB, free: 22.19 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007104/0.2321, allocations: 436 kB / 380 MB, free: 22.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005776/0.2327, allocations: 82.48 kB / 380.1 MB, free: 22.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002123/0.2348, allocations: 1.759 MB / 381.8 MB, free: 20.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002326/0.2351, allocations: 0.8412 MB / 382.7 MB, free: 20.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001182/0.2352, allocations: 42.52 kB / 382.7 MB, free: 20.2 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2352, allocations: 0 / 382.7 MB, free: 20.2 MB / 302.1 MB Notification: Performance of Templates: time 0.0101/0.2453, allocations: 8.515 MB / 391.2 MB, free: 16.8 MB / 302.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches