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.001642/0.001642, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002137/0.002137, allocations: 198 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001161, allocations: 63.89 kB / 358.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2922/0.2933, allocations: 50.54 MB / 409.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.00427/0.2977, allocations: 3.234 MB / 412.5 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002161/0.2998, allocations: 1.24 MB / 413.7 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002157/0.3001, allocations: 11.94 kB / 413.7 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004136/0.3005, allocations: 99.08 kB / 413.8 MB, free: 13 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004674/0.301, allocations: 218.4 kB / 414 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005244/0.3015, allocations: 267.5 kB / 414.3 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007628/0.3023, allocations: 0.8583 MB / 415.2 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002447/0.3026, allocations: 137.1 kB / 415.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005204/0.3031, allocations: 386.8 kB / 415.7 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005034/0.3036, allocations: 406.6 kB / 416.1 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001101/0.3037, allocations: 68 kB / 416.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002416/0.304, allocations: 119.9 kB / 416.2 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002089/0.3042, allocations: 179.4 kB / 416.4 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002893/0.3045, allocations: 318.5 kB / 416.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007538/0.3052, allocations: 0.8032 MB / 417.5 MB, free: 9.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.3053, allocations: 0 / 417.5 MB, free: 9.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.3053, allocations: 0 / 417.5 MB, free: 9.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.238e-06/0.3053, allocations: 0 / 417.5 MB, free: 9.27 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.001815/0.3071, allocations: 0.9351 MB / 418.5 MB, free: 8.285 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.3071, allocations: 20.02 kB / 418.5 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000316/0.3075, allocations: 80.11 kB / 418.6 MB, free: 8.188 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006194/0.3081, allocations: 401.9 kB / 419 MB, free: 7.754 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.708e-05/0.3081, allocations: 33.38 kB / 419 MB, free: 7.723 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.735e-05/0.3082, allocations: 48.38 kB / 419 MB, free: 7.676 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001086/0.3093, allocations: 0.623 MB / 419.7 MB, free: 7.039 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.845e-05/0.3094, allocations: 7.906 kB / 419.7 MB, free: 7.031 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.109e-05/0.3094, allocations: 16 kB / 419.7 MB, free: 7.016 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.3095, allocations: 8 kB / 419.7 MB, free: 7.008 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001216/0.3107, allocations: 0.5855 MB / 420.3 MB, free: 6.422 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00228/0.313, allocations: 1.355 MB / 421.6 MB, free: 5.012 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001074/0.3141, allocations: 0.5012 MB / 422.1 MB, free: 4.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005877/0.3147, allocations: 314.4 kB / 422.4 MB, free: 4.191 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.191e-05/0.3147, allocations: 8.547 kB / 422.4 MB, free: 4.184 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.511e-05/0.3148, allocations: 43.12 kB / 422.5 MB, free: 4.129 MB / 334.1 MB Notification: Performance of pre-optimization done (n=67): time 1.824e-06/0.3148, allocations: 0 / 422.5 MB, free: 4.129 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.006839/0.3216, allocations: 2.905 MB / 425.4 MB, free: 1.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.039e-05/0.3217, allocations: 60.05 kB / 425.5 MB, free: 1.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003951/0.3221, allocations: 361.7 kB / 425.8 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.006e-05/0.3222, allocations: 53.69 kB / 425.9 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/0.3223, allocations: 197.3 kB / 426.1 MB, free: 412 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002044/0.3225, allocations: 248.6 kB / 426.3 MB, free: 160 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002187/0.3227, allocations: 134.5 kB / 426.4 MB, free: 20 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.3229, allocations: 358.9 kB / 426.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000622/0.3236, allocations: 309.9 kB / 427.1 MB, free: 15.35 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006707/0.3242, allocations: 377.3 kB / 427.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000982/0.3252, allocations: 488.6 kB / 427.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3252, allocations: 4 kB / 427.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002002/0.3273, allocations: 0.9506 MB / 428.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.35e-05/0.3273, allocations: 6.656 kB / 428.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.888e-06/0.3273, allocations: 4 kB / 428.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001372/0.3287, allocations: 0.5746 MB / 429.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003887/0.3291, allocations: 99.81 kB / 429.6 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001512/0.3306, allocations: 1.096 MB / 430.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000736/0.3314, allocations: 115.8 kB / 430.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.531e-05/0.3314, allocations: 23.98 kB / 430.8 MB, free: 11.58 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.0003378/0.3318, allocations: 199.9 kB / 431 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001276/0.3319, allocations: 55.34 kB / 431 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001609/0.3321, allocations: 73.09 kB / 431.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.297e-06/0.3321, allocations: 8 kB / 431.1 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.278e-06/0.3321, allocations: 4 kB / 431.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.3321, allocations: 3.984 kB / 431.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00297/0.3351, allocations: 1.63 MB / 432.8 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.3351, allocations: 4 kB / 432.8 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004049/0.3355, allocations: 87.89 kB / 432.9 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001159/0.3367, allocations: 0.5356 MB / 433.4 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.713e-05/0.3368, allocations: 23.97 kB / 433.4 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001399/0.3382, allocations: 1.078 MB / 434.5 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.3382, allocations: 0 / 434.5 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002481/0.3407, allocations: 1.308 MB / 435.8 MB, free: 6.461 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002876/0.341, allocations: 204.2 kB / 436 MB, free: 6.242 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000109/0.3411, allocations: 27.94 kB / 436 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006358/0.3417, allocations: 103.9 kB / 436.1 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002865/0.342, allocations: 132.4 kB / 436.3 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.568e-05/0.3421, allocations: 27.95 kB / 436.3 MB, free: 5.953 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002857/0.3424, allocations: 263.1 kB / 436.5 MB, free: 5.695 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3424, allocations: 0 / 436.5 MB, free: 5.695 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005548/0.3429, allocations: 168 kB / 436.7 MB, free: 5.531 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.0009368/0.3439, allocations: 389.2 kB / 437.1 MB, free: 5.262 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001698/0.3456, allocations: 0.7738 MB / 437.9 MB, free: 4.492 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3456, allocations: 0 / 437.9 MB, free: 4.492 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008578/0.3465, allocations: 440.7 kB / 438.3 MB, free: 4.062 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007601/0.3472, allocations: 108.1 kB / 438.4 MB, free: 3.957 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002525/0.3498, allocations: 1.415 MB / 439.8 MB, free: 2.512 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003949/0.3502, allocations: 0.8673 MB / 440.7 MB, free: 1.617 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001886/0.3504, allocations: 52.39 kB / 440.7 MB, free: 1.566 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000138/0.3505, allocations: 47.42 kB / 440.8 MB, free: 1.52 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3505, allocations: 7.938 kB / 440.8 MB, free: 1.512 MB / 350.1 MB Notification: Performance of Templates: time 0.01975/0.3703, allocations: 13.78 MB / 454.6 MB, free: 3.805 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches