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.0007845/0.0007845, allocations: 84 kB / 21.43 MB, free: 3.129 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.003885/0.003885, allocations: 149.6 kB / 24.68 MB, free: 9.426 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.8191/0.8191, allocations: 173.4 MB / 201.2 MB, free: 9.078 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.553e-06/1.553e-06, allocations: 0 / 319.7 MB, free: 5.863 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.943e-05/2.098e-05, allocations: 2.281 kB / 319.7 MB, free: 5.859 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.00266/0.002681, allocations: 2.862 MB / 322.5 MB, free: 2.977 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001256/0.003937, allocations: 0.9972 MB / 323.5 MB, free: 1.973 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001364/0.004074, allocations: 11.94 kB / 323.6 MB, free: 1.961 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002127/0.004286, allocations: 87.16 kB / 323.6 MB, free: 1.875 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001874/0.004474, allocations: 158.6 kB / 323.8 MB, free: 1.719 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004775/0.004951, allocations: 303.4 kB / 324.1 MB, free: 1.422 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004638/0.005415, allocations: 0.815 MB / 324.9 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001556/0.005571, allocations: 93.55 kB / 325 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003612/0.005932, allocations: 487 kB / 325.5 MB, free: 36 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002723/0.006204, allocations: 323.3 kB / 325.8 MB, free: 15.71 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.888e-05/0.006263, allocations: 60 kB / 325.9 MB, free: 15.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001347/0.006398, allocations: 111.9 kB / 326 MB, free: 15.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001045/0.006502, allocations: 163.5 kB / 326.1 MB, free: 15.39 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001328/0.006635, allocations: 215.5 kB / 326.3 MB, free: 15.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005498/0.007185, allocations: 0.7867 MB / 327.1 MB, free: 14.39 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.007189, allocations: 4 kB / 327.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.00719, allocations: 0 / 327.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.007196, allocations: 4 kB / 327.1 MB, free: 14.38 MB / 298.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.0009907/0.008186, allocations: 0.8164 MB / 327.9 MB, free: 13.53 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.008223, allocations: 12.02 kB / 328 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.009e-05/0.008313, allocations: 64.56 kB / 328 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003532/0.008666, allocations: 301.4 kB / 328.3 MB, free: 13.13 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.649e-05/0.008692, allocations: 37.31 kB / 328.3 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.577e-05/0.008758, allocations: 52.33 kB / 328.4 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000686/0.009444, allocations: 0.6195 MB / 329 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.009461, allocations: 4.141 kB / 329 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.767e-05/0.009499, allocations: 24.12 kB / 329 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.009507, allocations: 12 kB / 329.1 MB, free: 12.37 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007977/0.0103, allocations: 0.5934 MB / 329.7 MB, free: 11.78 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001312/0.01162, allocations: 1.08 MB / 330.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006068/0.01222, allocations: 440.3 kB / 331.2 MB, free: 10.21 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003307/0.01255, allocations: 298.2 kB / 331.5 MB, free: 9.922 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.485e-05/0.01259, allocations: 4.5 kB / 331.5 MB, free: 9.918 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.994e-05/0.01261, allocations: 43 kB / 331.5 MB, free: 9.867 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 1.883e-06/0.01261, allocations: 0 / 331.5 MB, free: 9.867 MB / 298.7 MB Notification: Performance of matching and sorting (n=64): time 0.003494/0.01611, allocations: 2.497 MB / 334 MB, free: 7.328 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.145e-05/0.01614, allocations: 56.06 kB / 334.1 MB, free: 7.258 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002044/0.01634, allocations: 316.5 kB / 334.4 MB, free: 6.945 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.021e-05/0.01638, allocations: 45.69 kB / 334.4 MB, free: 6.895 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.13e-05/0.01647, allocations: 201.5 kB / 334.6 MB, free: 6.691 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001154/0.01659, allocations: 234.1 kB / 334.8 MB, free: 6.461 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001316/0.01672, allocations: 134.6 kB / 335 MB, free: 6.324 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.836e-05/0.01681, allocations: 346.8 kB / 335.3 MB, free: 5.977 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003651/0.01717, allocations: 321.8 kB / 335.6 MB, free: 5.66 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003923/0.01757, allocations: 389 kB / 336 MB, free: 5.273 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006442/0.01821, allocations: 0.5028 MB / 336.5 MB, free: 4.762 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.01821, allocations: 0 / 336.5 MB, free: 4.762 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001001/0.01921, allocations: 0.9234 MB / 337.4 MB, free: 3.828 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.01923, allocations: 4 kB / 337.4 MB, free: 3.824 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.01923, allocations: 0 / 337.4 MB, free: 3.824 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007458/0.01998, allocations: 0.7259 MB / 338.1 MB, free: 3.098 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001926/0.02017, allocations: 107.8 kB / 338.3 MB, free: 2.992 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008591/0.02103, allocations: 1.091 MB / 339.3 MB, free: 1.875 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003028/0.02133, allocations: 107.9 kB / 339.5 MB, free: 1.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.273e-05/0.02137, allocations: 27.92 kB / 339.5 MB, free: 1.742 MB / 298.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.0001507/0.02152, allocations: 175.8 kB / 339.7 MB, free: 1.559 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.666e-05/0.02157, allocations: 51.66 kB / 339.7 MB, free: 1.508 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.32e-05/0.02165, allocations: 68.75 kB / 339.8 MB, free: 1.438 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.02165, allocations: 11.94 kB / 339.8 MB, free: 1.426 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.02166, allocations: 0 / 339.8 MB, free: 1.426 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.02166, allocations: 7.984 kB / 339.8 MB, free: 1.418 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001527/0.02319, allocations: 1.372 MB / 341.2 MB, free: 0 / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.02319, allocations: 112 / 341.2 MB, free: 16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002114/0.0234, allocations: 95.83 kB / 341.3 MB, free: 15.9 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006568/0.02406, allocations: 0.7034 MB / 342 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.465e-05/0.02409, allocations: 27.97 kB / 342 MB, free: 15.17 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008009/0.02489, allocations: 1.071 MB / 343.1 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.02489, allocations: 0 / 343.1 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001478/0.02637, allocations: 1.304 MB / 344.4 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001565/0.02653, allocations: 111.6 kB / 344.5 MB, free: 12.64 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.87e-05/0.02659, allocations: 20 kB / 344.5 MB, free: 12.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002849/0.02687, allocations: 95.86 kB / 344.6 MB, free: 12.53 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001637/0.02704, allocations: 132.4 kB / 344.7 MB, free: 12.39 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.098e-05/0.02707, allocations: 31.95 kB / 344.7 MB, free: 12.36 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001343/0.0272, allocations: 219.1 kB / 345 MB, free: 12.15 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0272, allocations: 0 / 345 MB, free: 12.15 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000305/0.02751, allocations: 159.9 kB / 345.1 MB, free: 12 MB / 314.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.0001796/0.02769, allocations: 143.2 kB / 345.3 MB, free: 11.85 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009064/0.02859, allocations: 0.7419 MB / 346 MB, free: 11.11 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.02859, allocations: 3.938 kB / 346 MB, free: 11.1 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004415/0.02904, allocations: 406.1 kB / 346.4 MB, free: 10.71 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003998/0.02944, allocations: 97.84 kB / 346.5 MB, free: 10.61 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001461/0.0309, allocations: 1.248 MB / 347.7 MB, free: 9.328 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001396/0.03104, allocations: 245.6 kB / 348 MB, free: 9.066 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.653e-05/0.03113, allocations: 44.48 kB / 348 MB, free: 9.023 MB / 314.7 MB Notification: Performance of SimCode: time 3.91e-07/0.03113, allocations: 4 kB / 348 MB, free: 9.02 MB / 314.7 MB Notification: Performance of Templates: time 0.00708/0.03821, allocations: 8.873 MB / 356.9 MB, free: 168 kB / 314.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.781909990124404]