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.00131/0.00131, allocations: 103.6 kB / 18.39 MB, free: 4.641 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.001268/0.001268, allocations: 187 kB / 19.33 MB, free: 3.715 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.424/1.424, allocations: 205.1 MB / 225.2 MB, free: 12.21 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.001405/0.001405, allocations: 47.94 kB / 329.2 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09745/0.09887, allocations: 46.62 MB / 375.8 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.005723/0.1047, allocations: 3.104 MB / 378.9 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002656/0.1074, allocations: 1.076 MB / 380 MB, free: 368 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004412/0.1078, allocations: 4 kB / 380 MB, free: 364 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003814/0.1083, allocations: 79.23 kB / 380.1 MB, free: 284 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005662/0.1089, allocations: 154.7 kB / 380.2 MB, free: 128 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2128/0.3217, allocations: 278.4 kB / 380.5 MB, free: 9.773 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00115/0.3229, allocations: 0.7959 MB / 381.3 MB, free: 9.773 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002836/0.3232, allocations: 140.6 kB / 381.4 MB, free: 9.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005306/0.3237, allocations: 358.1 kB / 381.8 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005235/0.3243, allocations: 386.8 kB / 382.2 MB, free: 9.652 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001509/0.3244, allocations: 59.91 kB / 382.2 MB, free: 9.652 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003281/0.3248, allocations: 110.8 kB / 382.3 MB, free: 9.652 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001758/0.325, allocations: 156.5 kB / 382.5 MB, free: 9.633 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003734/0.3253, allocations: 301.2 kB / 382.8 MB, free: 9.555 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001011/0.3264, allocations: 0.7203 MB / 383.5 MB, free: 9.477 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.3264, allocations: 1.094 kB / 383.5 MB, free: 9.477 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3264, allocations: 0 / 383.5 MB, free: 9.477 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.209e-05/0.3264, allocations: 0 / 383.5 MB, free: 9.477 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.001848/0.3283, allocations: 0.8874 MB / 384.4 MB, free: 8.949 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.3283, allocations: 12.91 kB / 384.4 MB, free: 8.945 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001354/0.3285, allocations: 61.62 kB / 384.5 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005097/0.329, allocations: 364.5 kB / 384.8 MB, free: 8.668 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.245e-05/0.329, allocations: 29.78 kB / 384.8 MB, free: 8.664 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.3291, allocations: 49.48 kB / 384.9 MB, free: 8.66 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001166/0.3303, allocations: 0.6188 MB / 385.5 MB, free: 8.562 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.393e-05/0.3303, allocations: 8.062 kB / 385.5 MB, free: 8.559 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.609e-05/0.3304, allocations: 19.91 kB / 385.5 MB, free: 8.543 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.197e-05/0.3304, allocations: 11.53 kB / 385.5 MB, free: 8.543 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001179/0.3316, allocations: 0.5982 MB / 386.1 MB, free: 8.371 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002331/0.3339, allocations: 1.312 MB / 387.5 MB, free: 7.684 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009961/0.3349, allocations: 471.5 kB / 387.9 MB, free: 7.512 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005332/0.3355, allocations: 306 kB / 388.2 MB, free: 7.398 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.616e-05/0.3355, allocations: 6.656 kB / 388.2 MB, free: 7.398 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.108e-05/0.3356, allocations: 41.92 kB / 388.3 MB, free: 7.352 MB / 318.1 MB Notification: Performance of pre-optimization done (n=58): time 2.324e-06/0.3356, allocations: 4 kB / 388.3 MB, free: 7.348 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.006111/0.3417, allocations: 2.867 MB / 391.1 MB, free: 5.883 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.165e-05/0.3418, allocations: 59.22 kB / 391.2 MB, free: 5.816 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003616/0.3421, allocations: 325.9 kB / 391.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.202e-05/0.3422, allocations: 51.78 kB / 391.6 MB, free: 5.605 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/0.3423, allocations: 196.5 kB / 391.8 MB, free: 5.438 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001589/0.3425, allocations: 230.9 kB / 392 MB, free: 5.27 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002305/0.3427, allocations: 130.5 kB / 392.1 MB, free: 5.207 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.708e-05/0.3428, allocations: 354.9 kB / 392.5 MB, free: 4.875 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005886/0.3434, allocations: 317.4 kB / 392.8 MB, free: 4.77 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006636/0.3441, allocations: 392.5 kB / 393.1 MB, free: 4.609 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009244/0.345, allocations: 0.5033 MB / 393.6 MB, free: 4.406 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.345, allocations: 1.188 kB / 393.6 MB, free: 4.406 MB / 318.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001707/0.3467, allocations: 0.9311 MB / 394.6 MB, free: 4.051 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.3468, allocations: 6.094 kB / 394.6 MB, free: 4.051 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.3468, allocations: 0.875 kB / 394.6 MB, free: 4.051 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001216/0.348, allocations: 0.7288 MB / 395.3 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003914/0.3484, allocations: 102.4 kB / 395.4 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001255/0.3497, allocations: 1.084 MB / 396.5 MB, free: 3.137 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007514/0.3504, allocations: 109.8 kB / 396.6 MB, free: 3.121 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.868e-05/0.3505, allocations: 23.36 kB / 396.6 MB, free: 3.117 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.0002913/0.3508, allocations: 187.2 kB / 396.8 MB, free: 2.961 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/0.3509, allocations: 47.38 kB / 396.9 MB, free: 2.938 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001534/0.3511, allocations: 70.56 kB / 396.9 MB, free: 2.879 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.468e-06/0.3511, allocations: 10.09 kB / 396.9 MB, free: 2.879 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.165e-05/0.3511, allocations: 1.375 kB / 396.9 MB, free: 2.879 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.3511, allocations: 6.75 kB / 396.9 MB, free: 2.875 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002717/0.3538, allocations: 1.572 MB / 398.5 MB, free: 2.133 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.3539, allocations: 0 / 398.5 MB, free: 2.133 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004184/0.3543, allocations: 89.2 kB / 398.6 MB, free: 2.129 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001058/0.3554, allocations: 0.7092 MB / 399.3 MB, free: 1.938 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.993e-05/0.3554, allocations: 26.3 kB / 399.3 MB, free: 1.926 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001182/0.3566, allocations: 1.067 MB / 400.4 MB, free: 1.211 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3566, allocations: 0 / 400.4 MB, free: 1.211 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002356/0.359, allocations: 1.301 MB / 401.7 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002553/0.3593, allocations: 189.1 kB / 401.9 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001156/0.3594, allocations: 26.89 kB / 401.9 MB, free: 0.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006434/0.36, allocations: 102.8 kB / 402 MB, free: 496 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003027/0.3603, allocations: 119.7 kB / 402.1 MB, free: 476 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.357e-05/0.3604, allocations: 32.12 kB / 402.2 MB, free: 468 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002639/0.3607, allocations: 231.5 kB / 402.4 MB, free: 344 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3607, allocations: 0 / 402.4 MB, free: 344 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.000624/0.3613, allocations: 162.6 kB / 402.6 MB, free: 320 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.0002559/0.3616, allocations: 152.8 kB / 402.7 MB, free: 200 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001612/0.3632, allocations: 0.7703 MB / 403.5 MB, free: 15.89 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3632, allocations: 0 / 403.5 MB, free: 15.89 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008598/0.3641, allocations: 432.2 kB / 403.9 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.0007226/0.3648, allocations: 102 kB / 404 MB, free: 15.64 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002773/0.3676, allocations: 1.41 MB / 405.4 MB, free: 14.68 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004753/0.3681, allocations: 0.8465 MB / 406.2 MB, free: 13.91 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001614/0.3683, allocations: 53.75 kB / 406.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3683, allocations: 0 / 406.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of Templates: time 0.01393/0.3822, allocations: 8.624 MB / 414.9 MB, free: 7.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/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