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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001956/0.001956, allocations: 114.4 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002312/0.002313, allocations: 207.9 kB / 19.4 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.222/2.222, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001589/0.001589, allocations: 56.14 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3388/0.3404, allocations: 50.54 MB / 409.9 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.009059/0.3496, allocations: 3.244 MB / 413.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004512/0.3541, allocations: 1.236 MB / 414.4 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006934/0.3549, allocations: 8 kB / 414.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007597/0.3558, allocations: 107.1 kB / 414.5 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00135/0.3571, allocations: 210.4 kB / 414.7 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001325/0.3585, allocations: 279.5 kB / 415 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002309/0.3609, allocations: 0.8466 MB / 415.8 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000554/0.3615, allocations: 137.1 kB / 416 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001232/0.3627, allocations: 386.8 kB / 416.4 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001122/0.3639, allocations: 402.6 kB / 416.7 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002981/0.3642, allocations: 64 kB / 416.8 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005966/0.3648, allocations: 127.9 kB / 416.9 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004409/0.3653, allocations: 179.4 kB / 417.1 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007342/0.3661, allocations: 318.5 kB / 417.4 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001861/0.3679, allocations: 0.7954 MB / 418.2 MB, free: 9.246 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.197e-06/0.368, allocations: 0 / 418.2 MB, free: 9.246 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.368, allocations: 4 kB / 418.2 MB, free: 9.242 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.114e-05/0.3681, allocations: 0 / 418.2 MB, free: 9.242 MB / 334.1 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.003845/0.3719, allocations: 0.9429 MB / 419.2 MB, free: 8.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.336e-05/0.372, allocations: 12.03 kB / 419.2 MB, free: 8.238 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007479/0.3728, allocations: 76.17 kB / 419.2 MB, free: 8.164 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001301/0.3741, allocations: 409.8 kB / 419.6 MB, free: 7.723 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.238e-05/0.3742, allocations: 41.38 kB / 419.7 MB, free: 7.684 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002138/0.3745, allocations: 44.38 kB / 419.7 MB, free: 7.641 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002373/0.3769, allocations: 0.619 MB / 420.3 MB, free: 7.008 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.159e-05/0.3769, allocations: 7.906 kB / 420.4 MB, free: 7 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001076/0.3771, allocations: 16 kB / 420.4 MB, free: 6.984 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.524e-05/0.3771, allocations: 12 kB / 420.4 MB, free: 6.973 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002744/0.3799, allocations: 0.5855 MB / 421 MB, free: 6.387 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005138/0.3851, allocations: 1.347 MB / 422.3 MB, free: 4.984 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002386/0.3875, allocations: 0.5012 MB / 422.8 MB, free: 4.473 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001383/0.389, allocations: 322.4 kB / 423.1 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000133/0.3891, allocations: 4.562 kB / 423.1 MB, free: 4.152 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.397e-05/0.3892, allocations: 43.11 kB / 423.2 MB, free: 4.098 MB / 334.1 MB Notification: Performance of pre-optimization done (n=67): time 5.27e-06/0.3893, allocations: 0 / 423.2 MB, free: 4.098 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.01449/0.4038, allocations: 2.908 MB / 426.1 MB, free: 1.055 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.463e-05/0.4039, allocations: 60.06 kB / 426.1 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009528/0.4049, allocations: 353.7 kB / 426.5 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002037/0.4051, allocations: 53.69 kB / 426.5 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002684/0.4054, allocations: 197.3 kB / 426.7 MB, free: 384 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005423/0.406, allocations: 252.6 kB / 427 MB, free: 128 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000544/0.4065, allocations: 138.6 kB / 427.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002589/0.4068, allocations: 354.8 kB / 427.5 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001421/0.4083, allocations: 313.8 kB / 427.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001498/0.4098, allocations: 369.4 kB / 428.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002294/0.4121, allocations: 0.4889 MB / 428.6 MB, free: 14.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.4122, allocations: 0 / 428.6 MB, free: 14.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.004386/0.4166, allocations: 0.9466 MB / 429.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.015e-05/0.4167, allocations: 4 kB / 429.6 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.065e-05/0.4167, allocations: 4 kB / 429.6 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002871/0.4196, allocations: 0.5785 MB / 430.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008127/0.4205, allocations: 95.81 kB / 430.2 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003398/0.4239, allocations: 1.088 MB / 431.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001565/0.4255, allocations: 119.8 kB / 431.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000179/0.4257, allocations: 31.92 kB / 431.5 MB, free: 11.55 MB / 350.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 (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.0006208/0.4264, allocations: 195.8 kB / 431.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003404/0.4267, allocations: 55.34 kB / 431.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003504/0.4271, allocations: 77.09 kB / 431.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.932e-05/0.4271, allocations: 8 kB / 431.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.229e-05/0.4272, allocations: 0 / 431.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.776e-05/0.4272, allocations: 3.984 kB / 431.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006373/0.4336, allocations: 1.626 MB / 433.4 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.176e-05/0.4336, allocations: 0 / 433.4 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009766/0.4346, allocations: 91.88 kB / 433.5 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002666/0.4373, allocations: 0.5318 MB / 434.1 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002145/0.4376, allocations: 27.97 kB / 434.1 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003146/0.4408, allocations: 1.074 MB / 435.2 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.4408, allocations: 4 kB / 435.2 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005633/0.4465, allocations: 1.308 MB / 436.5 MB, free: 6.434 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006488/0.4472, allocations: 200.3 kB / 436.7 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000289/0.4475, allocations: 27.94 kB / 436.7 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001383/0.4489, allocations: 111.8 kB / 436.8 MB, free: 6.082 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005331/0.4495, allocations: 132.4 kB / 436.9 MB, free: 5.949 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001265/0.4496, allocations: 27.97 kB / 437 MB, free: 5.922 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006221/0.4503, allocations: 259.1 kB / 437.2 MB, free: 5.668 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.32e-07/0.4503, allocations: 0 / 437.2 MB, free: 5.668 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001092/0.4514, allocations: 164 kB / 437.4 MB, free: 5.508 MB / 350.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,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001687/0.4531, allocations: 393.7 kB / 437.8 MB, free: 5.234 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003691/0.4568, allocations: 0.7778 MB / 438.5 MB, free: 4.461 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.022e-06/0.4569, allocations: 0 / 438.5 MB, free: 4.461 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001967/0.4589, allocations: 436.6 kB / 439 MB, free: 4.035 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001638/0.4605, allocations: 112.5 kB / 439.1 MB, free: 3.926 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005285/0.4658, allocations: 1.447 MB / 440.5 MB, free: 2.445 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007416/0.4666, allocations: 0.8635 MB / 441.4 MB, free: 1.555 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003949/0.4671, allocations: 55.41 kB / 441.4 MB, free: 1.5 MB / 350.1 MB Notification: Performance of SimCode: time 6.312e-06/0.4671, allocations: 7.938 kB / 441.4 MB, free: 1.492 MB / 350.1 MB Notification: Performance of Templates: time 0.0271/0.4942, allocations: 9.346 MB / 450.8 MB, free: 8.16 MB / 366.1 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/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_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches