Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 80.8 kB / 21.5 MB, free: 2.996 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 170.5 kB / 24.91 MB, free: 9.211 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9589/0.9589, allocations: 177.1 MB / 205.3 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1500,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_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1500,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_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 3.938 kB / 273.4 MB, free: 1.305 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.282e-05/1.444e-05, allocations: 2.312 kB / 273.4 MB, free: 1.301 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.002942/0.002957, allocations: 3.195 MB / 276.6 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001756/0.004713, allocations: 1.259 MB / 277.9 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001343/0.004847, allocations: 7.938 kB / 277.9 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002594/0.005107, allocations: 107 kB / 278 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003323/0.005439, allocations: 234.2 kB / 278.2 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003732/0.005812, allocations: 279.5 kB / 278.5 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005178/0.00633, allocations: 0.8656 MB / 279.4 MB, free: 11.34 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001463/0.006476, allocations: 98.19 kB / 279.5 MB, free: 11.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004408/0.006917, allocations: 0.5223 MB / 280 MB, free: 10.71 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002967/0.007214, allocations: 343.2 kB / 280.3 MB, free: 10.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.08e-05/0.007284, allocations: 64 kB / 280.4 MB, free: 10.31 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001437/0.007428, allocations: 123.8 kB / 280.5 MB, free: 10.19 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001325/0.007561, allocations: 183.4 kB / 280.7 MB, free: 10.01 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001515/0.007712, allocations: 239.4 kB / 280.9 MB, free: 9.777 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004582/0.00817, allocations: 0.619 MB / 281.5 MB, free: 9.156 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.603e-06/0.008172, allocations: 0 / 281.5 MB, free: 9.156 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.91e-07/0.008172, allocations: 0 / 281.5 MB, free: 9.156 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.008177, allocations: 4 kB / 281.5 MB, free: 9.152 MB / 266.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.0008656/0.009043, allocations: 0.8186 MB / 282.4 MB, free: 8.309 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.788e-05/0.009071, allocations: 12.03 kB / 282.4 MB, free: 8.297 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001951/0.009266, allocations: 92.86 kB / 282.5 MB, free: 8.207 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003078/0.009574, allocations: 300.4 kB / 282.8 MB, free: 7.883 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.971e-05/0.009604, allocations: 41.38 kB / 282.8 MB, free: 7.844 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.241e-05/0.009666, allocations: 52.31 kB / 282.8 MB, free: 7.793 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004519/0.01012, allocations: 466.3 kB / 283.3 MB, free: 7.324 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.01013, allocations: 4.141 kB / 283.3 MB, free: 7.32 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.189e-05/0.01016, allocations: 20.12 kB / 283.3 MB, free: 7.301 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.277e-06/0.01017, allocations: 12 kB / 283.3 MB, free: 7.289 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003134/0.01049, allocations: 250.8 kB / 283.6 MB, free: 7.047 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001145/0.01163, allocations: 0.8059 MB / 284.4 MB, free: 6.219 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003959/0.01203, allocations: 294.2 kB / 284.7 MB, free: 5.918 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001444/0.01217, allocations: 130.8 kB / 284.8 MB, free: 5.789 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.656e-05/0.01222, allocations: 16.66 kB / 284.8 MB, free: 5.773 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.049e-05/0.01224, allocations: 39.16 kB / 284.9 MB, free: 5.727 MB / 266.7 MB Notification: Performance of pre-optimization done (n=67): time 1.703e-06/0.01224, allocations: 0 / 284.9 MB, free: 5.727 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.00226/0.0145, allocations: 1.635 MB / 286.5 MB, free: 4.043 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.801e-05/0.01453, allocations: 60.06 kB / 286.5 MB, free: 3.973 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001813/0.01471, allocations: 309 kB / 286.9 MB, free: 3.66 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.703e-05/0.01476, allocations: 49.7 kB / 286.9 MB, free: 3.605 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.698e-05/0.01483, allocations: 178.1 kB / 287.1 MB, free: 3.43 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001311/0.01496, allocations: 269.8 kB / 287.3 MB, free: 3.164 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/0.01508, allocations: 130.5 kB / 287.5 MB, free: 3.031 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.822e-05/0.01518, allocations: 370.6 kB / 287.8 MB, free: 2.66 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001589/0.01534, allocations: 121.9 kB / 287.9 MB, free: 2.539 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000165/0.01551, allocations: 181.5 kB / 288.1 MB, free: 2.355 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002689/0.01577, allocations: 295.7 kB / 288.4 MB, free: 2.055 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.01578, allocations: 0 / 288.4 MB, free: 2.055 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.000572/0.01635, allocations: 0.4883 MB / 288.9 MB, free: 1.555 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/0.01636, allocations: 4 kB / 288.9 MB, free: 1.551 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.01637, allocations: 4.078 kB / 288.9 MB, free: 1.547 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005712/0.01694, allocations: 420.4 kB / 289.3 MB, free: 1.133 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001686/0.01711, allocations: 87.89 kB / 289.4 MB, free: 1.047 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005918/0.0177, allocations: 0.7784 MB / 290.2 MB, free: 244 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002229/0.01792, allocations: 75.91 kB / 290.3 MB, free: 168 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.598e-05/0.01795, allocations: 15.98 kB / 290.3 MB, free: 152 kB / 266.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.1085/0.1264, allocations: 151.7 kB / 290.4 MB, free: 26.03 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001379/0.1266, allocations: 57.61 kB / 290.5 MB, free: 26.03 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.684e-05/0.1267, allocations: 75.2 kB / 290.5 MB, free: 26.02 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.1267, allocations: 5.469 kB / 290.6 MB, free: 26.02 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.1267, allocations: 1.688 kB / 290.6 MB, free: 26.02 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.1267, allocations: 5.188 kB / 290.6 MB, free: 26.02 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001387/0.1281, allocations: 0.8167 MB / 291.4 MB, free: 25.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.1281, allocations: 1.125 kB / 291.4 MB, free: 25.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002403/0.1283, allocations: 83.94 kB / 291.5 MB, free: 25.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006511/0.129, allocations: 415.3 kB / 291.9 MB, free: 25.81 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.764e-05/0.129, allocations: 28.41 kB / 291.9 MB, free: 25.81 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005825/0.1296, allocations: 0.781 MB / 292.7 MB, free: 25.27 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.1296, allocations: 1.688 kB / 292.7 MB, free: 25.27 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009068/0.1305, allocations: 0.7085 MB / 293.4 MB, free: 25.11 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001578/0.1307, allocations: 78.72 kB / 293.5 MB, free: 25.11 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.319e-05/0.1307, allocations: 25.77 kB / 293.5 MB, free: 25.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002429/0.131, allocations: 72.64 kB / 293.6 MB, free: 25.11 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001951/0.1312, allocations: 139.2 kB / 293.7 MB, free: 25.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.623e-05/0.1312, allocations: 28.33 kB / 293.7 MB, free: 25.11 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001238/0.1313, allocations: 128.7 kB / 293.8 MB, free: 25.09 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1313, allocations: 0.5469 kB / 293.8 MB, free: 25.09 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003843/0.1317, allocations: 155.8 kB / 294 MB, free: 25.09 MB / 266.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.0009669/0.1327, allocations: 474.9 kB / 294.5 MB, free: 24.98 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000682/0.1334, allocations: 442.8 kB / 294.9 MB, free: 24.94 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/0.1334, allocations: 6.969 kB / 294.9 MB, free: 24.94 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003594/0.1337, allocations: 288.8 kB / 295.2 MB, free: 24.92 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003894/0.1341, allocations: 161.9 kB / 295.3 MB, free: 24.91 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001374/0.1355, allocations: 1.029 MB / 296.4 MB, free: 24.42 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.976e-05/0.1356, allocations: 135 kB / 296.5 MB, free: 24.34 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001421/0.1357, allocations: 51.36 kB / 296.6 MB, free: 24.32 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002105/0.1359, allocations: 151.5 kB / 296.7 MB, free: 24.27 MB / 266.7 MB Notification: Performance of SimCode: time 6.41e-07/0.1359, allocations: 3.656 kB / 296.7 MB, free: 24.27 MB / 266.7 MB Notification: Performance of Templates: time 0.01314/0.1491, allocations: 12.7 MB / 309.4 MB, free: 16.93 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1586052430793643]