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.001259/0.001259, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.001357/0.001357, allocations: 140.3 kB / 24.89 MB, free: 9.207 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.9234/0.9234, allocations: 173.3 MB / 201.5 MB, free: 9.168 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.242e-06/1.242e-06, allocations: 0 / 268.5 MB, free: 6.18 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.478e-05/1.602e-05, allocations: 2.312 kB / 268.5 MB, free: 6.176 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.002889/0.002905, allocations: 3.047 MB / 271.5 MB, free: 3.113 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001592/0.004497, allocations: 1.071 MB / 272.6 MB, free: 2.035 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001607/0.004658, allocations: 11.94 kB / 272.6 MB, free: 2.023 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001998/0.004857, allocations: 71.3 kB / 272.7 MB, free: 1.953 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002221/0.005079, allocations: 170.5 kB / 272.8 MB, free: 1.785 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005497/0.005629, allocations: 291.5 kB / 273.1 MB, free: 1.5 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006277/0.006257, allocations: 0.8188 MB / 273.9 MB, free: 0.6758 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/0.006417, allocations: 98.14 kB / 274 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000491/0.006908, allocations: 0.4911 MB / 274.5 MB, free: 80 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003161/0.007224, allocations: 315.3 kB / 274.8 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.841e-05/0.007293, allocations: 60 kB / 274.9 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001636/0.007456, allocations: 111.9 kB / 275 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001113/0.007568, allocations: 155.5 kB / 275.1 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001508/0.007718, allocations: 223.4 kB / 275.4 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004575/0.008176, allocations: 0.5724 MB / 275.9 MB, free: 14.66 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.763e-06/0.008178, allocations: 4 kB / 275.9 MB, free: 14.65 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.008179, allocations: 0 / 275.9 MB, free: 14.65 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.008186, allocations: 0 / 275.9 MB, free: 14.65 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.0008455/0.009031, allocations: 0.7565 MB / 276.7 MB, free: 13.87 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.85e-05/0.00906, allocations: 16.02 kB / 276.7 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.646e-05/0.009156, allocations: 68.89 kB / 276.8 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000284/0.00944, allocations: 253.5 kB / 277 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.102e-05/0.009471, allocations: 29.38 kB / 277 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.268e-05/0.009534, allocations: 52.31 kB / 277.1 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004788/0.01001, allocations: 475 kB / 277.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.01003, allocations: 12.12 kB / 277.6 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.35e-05/0.01006, allocations: 20.12 kB / 277.6 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.01007, allocations: 12 kB / 277.6 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003107/0.01038, allocations: 254.7 kB / 277.9 MB, free: 12.66 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001049/0.01143, allocations: 0.8035 MB / 278.7 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004077/0.01184, allocations: 261.6 kB / 278.9 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001466/0.01198, allocations: 142.2 kB / 279.1 MB, free: 11.43 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.915e-05/0.01202, allocations: 12.5 kB / 279.1 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.044e-05/0.01204, allocations: 39.06 kB / 279.1 MB, free: 11.36 MB / 266.7 MB Notification: Performance of pre-optimization done (n=58): time 1.513e-06/0.01204, allocations: 0 / 279.1 MB, free: 11.36 MB / 266.7 MB Notification: Performance of matching and sorting (n=64): time 0.002285/0.01433, allocations: 1.589 MB / 280.7 MB, free: 9.727 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.701e-05/0.01436, allocations: 56.06 kB / 280.7 MB, free: 9.66 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001585/0.01452, allocations: 290.9 kB / 281 MB, free: 9.363 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.42e-05/0.01456, allocations: 45.7 kB / 281.1 MB, free: 9.312 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.67e-05/0.01463, allocations: 182 kB / 281.3 MB, free: 9.133 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002419/0.01487, allocations: 234.1 kB / 281.5 MB, free: 8.902 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001254/0.01499, allocations: 126.6 kB / 281.6 MB, free: 8.773 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.703e-05/0.01508, allocations: 362.7 kB / 282 MB, free: 8.41 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001649/0.01525, allocations: 125.9 kB / 282.1 MB, free: 8.289 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001728/0.01542, allocations: 189.1 kB / 282.3 MB, free: 8.098 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002731/0.01569, allocations: 302.7 kB / 282.6 MB, free: 7.797 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.01569, allocations: 0 / 282.6 MB, free: 7.797 MB / 266.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.0005171/0.01621, allocations: 474 kB / 283 MB, free: 7.324 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.01623, allocations: 14.95 kB / 283 MB, free: 7.312 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.01623, allocations: 0 / 283 MB, free: 7.312 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006037/0.01684, allocations: 0.5736 MB / 283.6 MB, free: 6.738 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001895/0.01702, allocations: 95.83 kB / 283.7 MB, free: 6.645 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005639/0.01759, allocations: 0.802 MB / 284.5 MB, free: 5.816 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000231/0.01782, allocations: 79.91 kB / 284.6 MB, free: 5.738 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.892e-05/0.01785, allocations: 15.98 kB / 284.6 MB, free: 5.723 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.0001304/0.01798, allocations: 146.6 kB / 284.7 MB, free: 5.566 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.679e-05/0.01805, allocations: 47.95 kB / 284.8 MB, free: 5.52 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.551e-05/0.01811, allocations: 68.75 kB / 284.9 MB, free: 5.441 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.01812, allocations: 11.94 kB / 284.9 MB, free: 5.43 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.01812, allocations: 7.938 kB / 284.9 MB, free: 5.422 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.01813, allocations: 3.984 kB / 284.9 MB, free: 5.418 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001205/0.01933, allocations: 0.7944 MB / 285.7 MB, free: 4.598 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.01933, allocations: 4 kB / 285.7 MB, free: 4.594 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002053/0.01954, allocations: 87.89 kB / 285.8 MB, free: 4.508 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005554/0.02009, allocations: 0.5706 MB / 286.3 MB, free: 3.934 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.326e-05/0.02013, allocations: 31.89 kB / 286.4 MB, free: 3.902 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005357/0.02066, allocations: 0.7855 MB / 287.2 MB, free: 3.094 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.02066, allocations: 0 / 287.2 MB, free: 3.094 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007623/0.02143, allocations: 0.7221 MB / 287.9 MB, free: 2.355 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001297/0.02156, allocations: 79.61 kB / 288 MB, free: 2.277 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.24e-05/0.02162, allocations: 24 kB / 288 MB, free: 2.254 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002099/0.02183, allocations: 71.91 kB / 288 MB, free: 2.184 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001546/0.02198, allocations: 136.3 kB / 288.2 MB, free: 2.051 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.76e-05/0.02201, allocations: 19.97 kB / 288.2 MB, free: 2.031 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.564e-05/0.02209, allocations: 108.6 kB / 288.3 MB, free: 1.918 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02209, allocations: 7.938 kB / 288.3 MB, free: 1.91 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002853/0.02237, allocations: 163.9 kB / 288.5 MB, free: 1.75 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.0001517/0.02252, allocations: 128.3 kB / 288.6 MB, free: 1.617 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005109/0.02303, allocations: 438.2 kB / 289 MB, free: 1.191 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.84e-06/0.02304, allocations: 4 kB / 289 MB, free: 1.188 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002836/0.02332, allocations: 276.8 kB / 289.3 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003176/0.02364, allocations: 133.3 kB / 289.4 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0867/0.1103, allocations: 1.005 MB / 290.4 MB, free: 30.58 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.039e-05/0.1104, allocations: 124.8 kB / 290.6 MB, free: 30.51 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000174/0.1106, allocations: 48.64 kB / 290.6 MB, free: 30.5 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002113/0.1108, allocations: 136.8 kB / 290.7 MB, free: 30.46 MB / 266.7 MB Notification: Performance of SimCode: time 9.22e-07/0.1108, allocations: 1.969 kB / 290.7 MB, free: 30.46 MB / 266.7 MB Notification: Performance of Templates: time 0.01433/0.1251, allocations: 12.55 MB / 303.3 MB, free: 26.47 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.8273494238965213]