Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009226/0.0009226, allocations: 78.19 kB / 21.42 MB, free: 3.082 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 154 kB / 24.81 MB, free: 9.297 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9485/0.9485, allocations: 173.4 MB / 201.4 MB, free: 9.215 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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=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.0.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.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 268.4 MB, free: 6.215 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.196e-05/1.336e-05, allocations: 6.25 kB / 268.4 MB, free: 6.207 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.002636/0.00265, allocations: 3.045 MB / 271.4 MB, free: 3.145 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001456/0.004105, allocations: 1.032 MB / 272.5 MB, free: 2.105 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001195/0.004225, allocations: 7.938 kB / 272.5 MB, free: 2.098 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001786/0.004403, allocations: 79.23 kB / 272.6 MB, free: 2.02 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001798/0.004583, allocations: 170.5 kB / 272.7 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000421/0.005004, allocations: 291.5 kB / 273 MB, free: 1.566 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004611/0.005465, allocations: 0.8226 MB / 273.8 MB, free: 0.7383 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001301/0.005596, allocations: 85.58 kB / 273.9 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003848/0.00598, allocations: 491 kB / 274.4 MB, free: 172 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002696/0.00625, allocations: 327.3 kB / 274.7 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.764e-05/0.006318, allocations: 63.98 kB / 274.8 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001411/0.006459, allocations: 111.8 kB / 274.9 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.922e-05/0.006558, allocations: 151.5 kB / 275 MB, free: 15.53 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001394/0.006697, allocations: 227.4 kB / 275.3 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004167/0.007114, allocations: 0.5724 MB / 275.8 MB, free: 14.73 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.543e-06/0.007115, allocations: 4 kB / 275.8 MB, free: 14.73 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.007116, allocations: 0 / 275.8 MB, free: 14.73 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.00712, allocations: 0 / 275.8 MB, free: 14.73 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.0008652/0.007985, allocations: 0.889 MB / 276.7 MB, free: 13.8 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.929e-05/0.008015, allocations: 12.03 kB / 276.7 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/0.008117, allocations: 92.56 kB / 276.8 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002629/0.00838, allocations: 308.2 kB / 277.1 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.726e-05/0.008407, allocations: 33.38 kB / 277.2 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.598e-05/0.008463, allocations: 48.33 kB / 277.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004795/0.008942, allocations: 472.7 kB / 277.7 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.008958, allocations: 16.12 kB / 277.7 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.637e-05/0.008994, allocations: 28.11 kB / 277.7 MB, free: 12.76 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.009001, allocations: 8 kB / 277.7 MB, free: 12.75 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003387/0.00934, allocations: 294.6 kB / 278 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001045/0.01039, allocations: 1.067 MB / 279.1 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006279/0.01101, allocations: 298 kB / 279.4 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001619/0.01118, allocations: 161 kB / 279.5 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.383e-05/0.01121, allocations: 8.5 kB / 279.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.094e-05/0.01123, allocations: 45.89 kB / 279.6 MB, free: 10.83 MB / 266.7 MB Notification: Performance of pre-optimization done (n=58): time 1.363e-06/0.01123, allocations: 0 / 279.6 MB, free: 10.83 MB / 266.7 MB Notification: Performance of matching and sorting (n=64): time 0.002401/0.01363, allocations: 1.678 MB / 281.3 MB, free: 9.102 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.496e-05/0.01366, allocations: 56.06 kB / 281.3 MB, free: 9.031 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001828/0.01384, allocations: 350.1 kB / 281.7 MB, free: 8.676 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.916e-05/0.01388, allocations: 45.7 kB / 281.7 MB, free: 8.625 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.78e-05/0.01398, allocations: 256.2 kB / 281.9 MB, free: 8.371 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001201/0.0141, allocations: 234.1 kB / 282.2 MB, free: 8.141 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001337/0.01423, allocations: 132.2 kB / 282.3 MB, free: 8.004 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.01435, allocations: 0.5351 MB / 282.8 MB, free: 7.457 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001828/0.01453, allocations: 149.9 kB / 283 MB, free: 7.312 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001959/0.01473, allocations: 225.5 kB / 283.2 MB, free: 7.082 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002927/0.01502, allocations: 303.3 kB / 283.5 MB, free: 6.77 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.01503, allocations: 3.938 kB / 283.5 MB, free: 6.766 MB / 266.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.0006009/0.01563, allocations: 0.5747 MB / 284.1 MB, free: 6.18 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.242e-05/0.01564, allocations: 11.98 kB / 284.1 MB, free: 6.168 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.01564, allocations: 0 / 284.1 MB, free: 6.168 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006039/0.01625, allocations: 0.6037 MB / 284.7 MB, free: 5.562 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001833/0.01643, allocations: 99.83 kB / 284.8 MB, free: 5.465 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006536/0.01708, allocations: 1.089 MB / 285.9 MB, free: 4.344 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002378/0.01732, allocations: 79.91 kB / 286 MB, free: 4.266 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.961e-05/0.01735, allocations: 12 kB / 286 MB, free: 4.254 MB / 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 (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.0001325/0.01748, allocations: 202.4 kB / 286.2 MB, free: 4.043 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.377e-05/0.01757, allocations: 75.66 kB / 286.2 MB, free: 3.969 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.608e-05/0.01763, allocations: 64.75 kB / 286.3 MB, free: 3.898 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.01764, allocations: 8 kB / 286.3 MB, free: 3.891 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.01764, allocations: 0 / 286.3 MB, free: 3.891 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.01765, allocations: 3.984 kB / 286.3 MB, free: 3.887 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001402/0.01905, allocations: 1.065 MB / 287.4 MB, free: 2.785 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.01905, allocations: 4 kB / 287.4 MB, free: 2.781 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002023/0.01925, allocations: 83.89 kB / 287.5 MB, free: 2.699 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005698/0.01982, allocations: 0.6007 MB / 288.1 MB, free: 2.094 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.251e-05/0.01985, allocations: 27.91 kB / 288.1 MB, free: 2.066 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006383/0.02049, allocations: 1.103 MB / 289.2 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.02049, allocations: 3.984 kB / 289.2 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009011/0.0214, allocations: 0.9007 MB / 290.1 MB, free: 8 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.1137/0.135, allocations: 110.1 kB / 290.2 MB, free: 30.57 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.601e-05/0.1351, allocations: 24.25 kB / 290.2 MB, free: 30.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003704/0.1355, allocations: 66.2 kB / 290.3 MB, free: 30.57 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002622/0.1358, allocations: 137.5 kB / 290.4 MB, free: 30.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.166e-05/0.1358, allocations: 24.72 kB / 290.5 MB, free: 30.57 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001213/0.1359, allocations: 224.6 kB / 290.7 MB, free: 30.45 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1359, allocations: 2.062 kB / 290.7 MB, free: 30.45 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000396/0.1363, allocations: 156.4 kB / 290.8 MB, free: 30.45 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,19)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000143/0.1365, allocations: 151.9 kB / 291 MB, free: 30.36 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000726/0.1372, allocations: 492.5 kB / 291.5 MB, free: 30.33 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.1372, allocations: 0 / 291.5 MB, free: 30.33 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004182/0.1376, allocations: 299.7 kB / 291.8 MB, free: 30.31 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004331/0.138, allocations: 135.7 kB / 291.9 MB, free: 30.31 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001572/0.1396, allocations: 1.161 MB / 293.1 MB, free: 29.76 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.803e-05/0.1397, allocations: 124.2 kB / 293.2 MB, free: 29.69 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001238/0.1398, allocations: 48.64 kB / 293.2 MB, free: 29.68 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001985/0.14, allocations: 165.5 kB / 293.4 MB, free: 29.61 MB / 266.7 MB Notification: Performance of SimCode: time 6.01e-07/0.14, allocations: 0 / 293.4 MB, free: 29.61 MB / 266.7 MB Notification: Performance of Templates: time 0.01306/0.1531, allocations: 12.73 MB / 306.1 MB, free: 23.76 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9481978048570454]