Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001567/0.001566, allocations: 113.2 kB / 17.73 MB, free: 5.309 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.002351/0.002351, allocations: 188.2 kB / 18.66 MB, free: 4.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.471/1.471, allocations: 205.1 MB / 224.5 MB, free: 12.28 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 59.91 kB / 328.5 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09641/0.09782, allocations: 46.61 MB / 375.1 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004334/0.1022, allocations: 3.092 MB / 378.2 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002188/0.1044, allocations: 1.08 MB / 379.3 MB, free: 384 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002046/0.1046, allocations: 7.938 kB / 379.3 MB, free: 376 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002608/0.1049, allocations: 75.3 kB / 379.4 MB, free: 300 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002884/0.1052, allocations: 154.6 kB / 379.5 MB, free: 144 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2255/0.3308, allocations: 279.2 kB / 379.8 MB, free: 9.746 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001387/0.3322, allocations: 0.7965 MB / 380.6 MB, free: 9.746 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003149/0.3326, allocations: 138.6 kB / 380.8 MB, free: 9.723 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005232/0.3331, allocations: 361.8 kB / 381.1 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000578/0.3337, allocations: 385.7 kB / 381.5 MB, free: 9.625 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001578/0.3338, allocations: 59.31 kB / 381.5 MB, free: 9.625 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003554/0.3342, allocations: 111.9 kB / 381.7 MB, free: 9.625 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001808/0.3344, allocations: 150.2 kB / 381.8 MB, free: 9.605 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003706/0.3348, allocations: 301.1 kB / 382.1 MB, free: 9.527 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001003/0.3358, allocations: 0.7235 MB / 382.8 MB, free: 9.441 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.3358, allocations: 3.438 kB / 382.8 MB, free: 9.441 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.3358, allocations: 1.156 kB / 382.8 MB, free: 9.441 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.142e-05/0.3358, allocations: 0 / 382.8 MB, free: 9.441 MB / 318.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.001837/0.3377, allocations: 0.8862 MB / 383.7 MB, free: 8.91 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.3377, allocations: 9.609 kB / 383.7 MB, free: 8.91 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001365/0.3379, allocations: 61.25 kB / 383.8 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005183/0.3384, allocations: 365.5 kB / 384.1 MB, free: 8.633 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.309e-05/0.3384, allocations: 37 kB / 384.2 MB, free: 8.629 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.268e-05/0.3385, allocations: 49.42 kB / 384.2 MB, free: 8.625 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001152/0.3397, allocations: 0.6189 MB / 384.8 MB, free: 8.547 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.176e-05/0.3397, allocations: 2.125 kB / 384.8 MB, free: 8.547 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.978e-05/0.3398, allocations: 20.64 kB / 384.9 MB, free: 8.531 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.3398, allocations: 10.34 kB / 384.9 MB, free: 8.531 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001172/0.341, allocations: 0.6022 MB / 385.5 MB, free: 8.359 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002436/0.3434, allocations: 1.315 MB / 386.8 MB, free: 7.672 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001002/0.3445, allocations: 462.9 kB / 387.2 MB, free: 7.504 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005494/0.345, allocations: 306.6 kB / 387.5 MB, free: 7.391 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.793e-05/0.3451, allocations: 10.19 kB / 387.5 MB, free: 7.387 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.541e-05/0.3451, allocations: 38.66 kB / 387.6 MB, free: 7.344 MB / 318.1 MB Notification: Performance of pre-optimization done (n=58): time 2.966e-06/0.3451, allocations: 4 kB / 387.6 MB, free: 7.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.006344/0.3515, allocations: 2.868 MB / 390.5 MB, free: 5.875 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.434e-05/0.3515, allocations: 58.22 kB / 390.5 MB, free: 5.809 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003492/0.3519, allocations: 327 kB / 390.8 MB, free: 5.645 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.764e-05/0.352, allocations: 48.3 kB / 390.9 MB, free: 5.602 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/0.3521, allocations: 202.6 kB / 391.1 MB, free: 5.43 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001922/0.3523, allocations: 225.4 kB / 391.3 MB, free: 5.262 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002355/0.3525, allocations: 131.3 kB / 391.4 MB, free: 5.199 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.3526, allocations: 355.1 kB / 391.8 MB, free: 4.867 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006571/0.3533, allocations: 317.6 kB / 392.1 MB, free: 4.762 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000637/0.354, allocations: 391.3 kB / 392.5 MB, free: 4.602 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001046/0.355, allocations: 0.5043 MB / 393 MB, free: 4.398 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.355, allocations: 0 / 393 MB, free: 4.398 MB / 318.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001971/0.357, allocations: 0.9317 MB / 393.9 MB, free: 4.043 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.633e-05/0.357, allocations: 5.984 kB / 393.9 MB, free: 4.043 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.3571, allocations: 1.312 kB / 393.9 MB, free: 4.043 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001783/0.3588, allocations: 0.7262 MB / 394.6 MB, free: 3.855 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004274/0.3593, allocations: 102.3 kB / 394.7 MB, free: 3.852 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00135/0.3606, allocations: 1.086 MB / 395.8 MB, free: 3.125 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007634/0.3614, allocations: 110.1 kB / 395.9 MB, free: 3.109 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.904e-05/0.3615, allocations: 23.16 kB / 395.9 MB, free: 3.105 MB / 318.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.0003102/0.3618, allocations: 186.9 kB / 396.1 MB, free: 2.949 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/0.3619, allocations: 47.58 kB / 396.2 MB, free: 2.926 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001554/0.3621, allocations: 70.75 kB / 396.2 MB, free: 2.867 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.698e-06/0.3621, allocations: 5.594 kB / 396.3 MB, free: 2.867 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-05/0.3621, allocations: 11.69 kB / 396.3 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.998e-06/0.3621, allocations: 6.609 kB / 396.3 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002795/0.3649, allocations: 1.573 MB / 397.8 MB, free: 2.117 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.728e-06/0.365, allocations: 0.6562 kB / 397.8 MB, free: 2.117 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004305/0.3654, allocations: 88.52 kB / 397.9 MB, free: 2.113 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001191/0.3666, allocations: 0.7023 MB / 398.6 MB, free: 1.926 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.902e-05/0.3667, allocations: 28.3 kB / 398.7 MB, free: 1.914 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001398/0.3681, allocations: 1.068 MB / 399.7 MB, free: 1.199 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3681, allocations: 0 / 399.7 MB, free: 1.199 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0024/0.3705, allocations: 1.3 MB / 401 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002538/0.3708, allocations: 189.6 kB / 401.2 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001272/0.3709, allocations: 25.16 kB / 401.2 MB, free: 500 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006479/0.3716, allocations: 107.6 kB / 401.3 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003238/0.3719, allocations: 120.5 kB / 401.5 MB, free: 464 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.226e-05/0.372, allocations: 30.55 kB / 401.5 MB, free: 456 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000263/0.3722, allocations: 233 kB / 401.7 MB, free: 332 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3722, allocations: 0 / 401.7 MB, free: 332 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007002/0.3729, allocations: 161.9 kB / 401.9 MB, free: 308 kB / 318.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.0002774/0.3732, allocations: 152.5 kB / 402 MB, free: 184 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001966/0.3752, allocations: 0.7779 MB / 402.8 MB, free: 15.89 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.3752, allocations: 0 / 402.8 MB, free: 15.89 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001031/0.3763, allocations: 430.6 kB / 403.2 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000745/0.377, allocations: 93.06 kB / 403.3 MB, free: 15.65 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002812/0.3798, allocations: 1.393 MB / 404.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000459/0.3803, allocations: 0.8459 MB / 405.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000221/0.3806, allocations: 45.14 kB / 405.6 MB, free: 13.92 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001236/0.3807, allocations: 41.67 kB / 405.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3807, allocations: 4 kB / 405.6 MB, free: 13.9 MB / 334.1 MB Notification: Performance of Templates: time 0.02175/0.4025, allocations: 13.65 MB / 419.3 MB, free: 2.082 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches