Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001212/0.001212, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 226.7 MB / 245.5 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009737/0.0009737, allocations: 101.8 kB / 296.7 MB, free: 6.488 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008756/0.0008757, allocations: 51.92 kB / 356.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1922/0.1931, allocations: 50.44 MB / 407 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003789/0.1969, allocations: 3.27 MB / 410.3 MB, free: 24.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001818/0.1988, allocations: 1.197 MB / 411.5 MB, free: 23.35 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003912/0.1992, allocations: 4 kB / 411.5 MB, free: 23.35 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00037/0.1996, allocations: 79.45 kB / 411.6 MB, free: 23.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004795/0.2001, allocations: 186.8 kB / 411.8 MB, free: 23.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004464/0.2005, allocations: 215.7 kB / 412 MB, free: 22.88 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006293/0.2012, allocations: 0.792 MB / 412.8 MB, free: 22.08 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001835/0.2014, allocations: 120.8 kB / 412.9 MB, free: 21.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004397/0.2018, allocations: 350.7 kB / 413.2 MB, free: 21.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004209/0.2022, allocations: 374.5 kB / 413.6 MB, free: 21.24 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001117/0.2024, allocations: 36 kB / 413.6 MB, free: 21.21 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002748/0.2026, allocations: 95.97 kB / 413.7 MB, free: 21.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001645/0.2028, allocations: 147.4 kB / 413.9 MB, free: 20.97 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002205/0.203, allocations: 294.4 kB / 414.2 MB, free: 20.68 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005181/0.2036, allocations: 0.7451 MB / 414.9 MB, free: 19.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/0.2036, allocations: 0 / 414.9 MB, free: 19.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2036, allocations: 0 / 414.9 MB, free: 19.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.515e-05/0.2036, allocations: 0 / 414.9 MB, free: 19.93 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: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.001623/0.2052, allocations: 0.9352 MB / 415.8 MB, free: 18.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.2053, allocations: 12.03 kB / 415.9 MB, free: 18.94 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003365/0.2056, allocations: 76.25 kB / 415.9 MB, free: 18.86 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004229/0.2061, allocations: 378 kB / 416.3 MB, free: 18.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.236e-05/0.2061, allocations: 41.38 kB / 416.3 MB, free: 18.41 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.946e-05/0.2062, allocations: 60.2 kB / 416.4 MB, free: 18.36 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009538/0.2071, allocations: 0.5996 MB / 417 MB, free: 17.74 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.401e-05/0.2072, allocations: 7.984 kB / 417 MB, free: 17.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.006e-05/0.2072, allocations: 20 kB / 417 MB, free: 17.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.036e-06/0.2072, allocations: 8 kB / 417 MB, free: 17.71 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001019/0.2083, allocations: 0.566 MB / 417.6 MB, free: 17.14 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001941/0.2102, allocations: 1.348 MB / 418.9 MB, free: 15.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009218/0.2112, allocations: 0.4973 MB / 419.4 MB, free: 15.23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000489/0.2117, allocations: 306.4 kB / 419.7 MB, free: 14.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.976e-05/0.2117, allocations: 12.55 kB / 419.8 MB, free: 14.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.539e-05/0.2118, allocations: 39.06 kB / 419.8 MB, free: 14.86 MB / 298.7 MB Notification: Performance of pre-optimization done (n=67): time 1.873e-06/0.2118, allocations: 4 kB / 419.8 MB, free: 14.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.005544/0.2173, allocations: 2.838 MB / 422.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.212e-05/0.2173, allocations: 64.05 kB / 422.7 MB, free: 11.81 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002895/0.2176, allocations: 353.6 kB / 423 MB, free: 11.46 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.203e-05/0.2177, allocations: 49.7 kB / 423.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.113e-05/0.2178, allocations: 201.4 kB / 423.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001311/0.2179, allocations: 252.5 kB / 423.5 MB, free: 10.96 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000187/0.2181, allocations: 134.6 kB / 423.7 MB, free: 10.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.831e-05/0.2182, allocations: 358.8 kB / 424 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005397/0.2187, allocations: 297.9 kB / 424.3 MB, free: 10.17 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005375/0.2193, allocations: 365.3 kB / 424.7 MB, free: 9.805 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008049/0.2201, allocations: 484.7 kB / 425.1 MB, free: 9.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2201, allocations: 0 / 425.1 MB, free: 9.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001476/0.2216, allocations: 0.8922 MB / 426 MB, free: 8.422 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.2216, allocations: 15.97 kB / 426 MB, free: 8.406 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.2216, allocations: 0 / 426 MB, free: 8.406 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001155/0.2228, allocations: 0.5005 MB / 426.5 MB, free: 7.902 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003344/0.2231, allocations: 95.88 kB / 426.6 MB, free: 7.809 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001158/0.2243, allocations: 1.082 MB / 427.7 MB, free: 6.699 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006373/0.225, allocations: 111.9 kB / 427.8 MB, free: 6.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.935e-05/0.225, allocations: 20 kB / 427.9 MB, free: 6.57 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 (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 (61): * Single equations (assignments): 60 * 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,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0001927/0.2252, allocations: 198 kB / 428 MB, free: 6.367 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/0.2253, allocations: 59.28 kB / 428.1 MB, free: 6.309 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001619/0.2255, allocations: 72.98 kB / 428.2 MB, free: 6.23 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.2255, allocations: 8 kB / 428.2 MB, free: 6.223 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.2255, allocations: 0 / 428.2 MB, free: 6.223 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.2255, allocations: 8.062 kB / 428.2 MB, free: 6.215 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002292/0.2278, allocations: 1.601 MB / 429.8 MB, free: 4.555 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.2278, allocations: 4 kB / 429.8 MB, free: 4.551 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003747/0.2282, allocations: 87.88 kB / 429.9 MB, free: 4.465 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009307/0.2292, allocations: 480.8 kB / 430.3 MB, free: 3.992 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.004e-05/0.2292, allocations: 39.95 kB / 430.4 MB, free: 3.953 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001081/0.2303, allocations: 1.057 MB / 431.4 MB, free: 2.871 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.2303, allocations: 0 / 431.4 MB, free: 2.871 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01343/0.2438, allocations: 8.446 MB / 439.9 MB, free: 10.11 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002598/0.2441, allocations: 192.3 kB / 440.1 MB, free: 9.906 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001106/0.2442, allocations: 31.94 kB / 440.1 MB, free: 9.875 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006372/0.2448, allocations: 103.9 kB / 440.2 MB, free: 9.773 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002928/0.2451, allocations: 124.4 kB / 440.3 MB, free: 9.652 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.975e-05/0.2452, allocations: 35.91 kB / 440.4 MB, free: 9.617 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002561/0.2455, allocations: 255.2 kB / 440.6 MB, free: 9.367 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2455, allocations: 0 / 440.6 MB, free: 9.367 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007165/0.2462, allocations: 232 kB / 440.8 MB, free: 9.141 MB / 314.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 (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,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001131/0.2473, allocations: 0.4885 MB / 441.3 MB, free: 8.816 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001756/0.2491, allocations: 0.7465 MB / 442.1 MB, free: 8.074 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.2491, allocations: 4 kB / 442.1 MB, free: 8.07 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008555/0.25, allocations: 432.7 kB / 442.5 MB, free: 7.648 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000727/0.2507, allocations: 101.5 kB / 442.6 MB, free: 7.547 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003194/0.2539, allocations: 2.209 MB / 444.8 MB, free: 5.293 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004528/0.2544, allocations: 0.8832 MB / 445.7 MB, free: 4.383 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002619/0.2547, allocations: 60.53 kB / 445.8 MB, free: 4.32 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001735/0.2549, allocations: 55.39 kB / 445.8 MB, free: 4.266 MB / 314.7 MB Notification: Performance of SimCode: time 3.21e-07/0.2549, allocations: 0 / 445.8 MB, free: 4.266 MB / 314.7 MB Notification: Performance of Templates: time 0.02272/0.2776, allocations: 16.09 MB / 461.9 MB, free: 4.242 MB / 330.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches