Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009367/0.0009367, allocations: 88.73 kB / 21.5 MB, free: 2.98 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008546/0.0008546, allocations: 166.8 kB / 24.92 MB, free: 8.77 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9456/0.9456, allocations: 177 MB / 205.2 MB, free: 4.996 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.874e-06/1.874e-06, allocations: 0 / 273.4 MB, free: 1.031 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.216e-05/2.404e-05, allocations: 2.312 kB / 273.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004573/0.004597, allocations: 3.191 MB / 276.6 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002487/0.007084, allocations: 1.259 MB / 277.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003266/0.00741, allocations: 7.938 kB / 277.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000448/0.007858, allocations: 103 kB / 277.9 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006966/0.008555, allocations: 234.2 kB / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00072/0.009275, allocations: 287.4 kB / 278.4 MB, free: 11.93 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009534/0.01023, allocations: 0.8657 MB / 279.3 MB, free: 11.06 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002153/0.01044, allocations: 90.2 kB / 279.4 MB, free: 10.96 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008276/0.01127, allocations: 0.5263 MB / 279.9 MB, free: 10.44 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005038/0.01177, allocations: 339.2 kB / 280.3 MB, free: 10.11 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001386/0.01191, allocations: 64 kB / 280.3 MB, free: 10.04 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002747/0.01219, allocations: 123.9 kB / 280.4 MB, free: 9.922 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002109/0.0124, allocations: 183.4 kB / 280.6 MB, free: 9.742 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002584/0.01266, allocations: 235.4 kB / 280.9 MB, free: 9.512 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008539/0.01351, allocations: 0.619 MB / 281.5 MB, free: 8.891 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.01352, allocations: 4 kB / 281.5 MB, free: 8.887 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.01352, allocations: 0 / 281.5 MB, free: 8.887 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.339e-05/0.01353, allocations: 0 / 281.5 MB, free: 8.887 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.001405/0.01494, allocations: 0.8262 MB / 282.3 MB, free: 8.035 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.01499, allocations: 15.98 kB / 282.3 MB, free: 8.02 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003063/0.01529, allocations: 100.8 kB / 282.4 MB, free: 7.922 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004868/0.01578, allocations: 284.5 kB / 282.7 MB, free: 7.613 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.423e-05/0.01582, allocations: 37.38 kB / 282.7 MB, free: 7.578 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.176e-05/0.01592, allocations: 48.33 kB / 282.8 MB, free: 7.531 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006851/0.0166, allocations: 466.3 kB / 283.2 MB, free: 7.059 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.403e-05/0.01662, allocations: 8.125 kB / 283.2 MB, free: 7.051 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.84e-05/0.01667, allocations: 24.12 kB / 283.3 MB, free: 7.027 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.548e-05/0.01669, allocations: 16 kB / 283.3 MB, free: 7.012 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005006/0.01719, allocations: 250.7 kB / 283.5 MB, free: 6.77 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001546/0.01874, allocations: 0.7943 MB / 284.3 MB, free: 5.953 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006178/0.01935, allocations: 302.1 kB / 284.6 MB, free: 5.645 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002349/0.01959, allocations: 134.8 kB / 284.7 MB, free: 5.512 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.698e-05/0.01964, allocations: 16.59 kB / 284.8 MB, free: 5.496 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.328e-05/0.01968, allocations: 47.14 kB / 284.8 MB, free: 5.441 MB / 266.7 MB Notification: Performance of pre-optimization done (n=67): time 2.254e-06/0.01968, allocations: 0 / 284.8 MB, free: 5.441 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.003729/0.02341, allocations: 1.627 MB / 286.4 MB, free: 3.766 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.186e-05/0.02345, allocations: 64 kB / 286.5 MB, free: 3.691 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002784/0.02373, allocations: 313 kB / 286.8 MB, free: 3.375 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.715e-05/0.0238, allocations: 57.69 kB / 286.9 MB, free: 3.312 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.622e-05/0.02389, allocations: 174.1 kB / 287 MB, free: 3.141 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001922/0.02409, allocations: 265.8 kB / 287.3 MB, free: 2.879 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001954/0.02428, allocations: 130.5 kB / 287.4 MB, free: 2.746 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.0244, allocations: 362.6 kB / 287.8 MB, free: 2.383 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002569/0.02466, allocations: 118 kB / 287.9 MB, free: 2.266 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002609/0.02492, allocations: 185.4 kB / 288.1 MB, free: 2.078 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004267/0.02535, allocations: 307.7 kB / 288.4 MB, free: 1.766 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.02535, allocations: 4 kB / 288.4 MB, free: 1.762 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0009019/0.02625, allocations: 496.1 kB / 288.9 MB, free: 1.27 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.02627, allocations: 4 kB / 288.9 MB, free: 1.266 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.02628, allocations: 0 / 288.9 MB, free: 1.266 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000879/0.02716, allocations: 408.5 kB / 289.3 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002745/0.02743, allocations: 95.83 kB / 289.4 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1182/0.1456, allocations: 0.7648 MB / 290.1 MB, free: 24.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004794/0.1461, allocations: 78.84 kB / 290.2 MB, free: 24.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.288e-05/0.1461, allocations: 18.62 kB / 290.2 MB, free: 24.57 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 (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.0001712/0.1463, allocations: 152.4 kB / 290.4 MB, free: 24.45 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.1464, allocations: 55.58 kB / 290.4 MB, free: 24.45 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.473e-05/0.1465, allocations: 78.78 kB / 290.5 MB, free: 24.44 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.1465, allocations: 9.719 kB / 290.5 MB, free: 24.44 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.1465, allocations: 0 / 290.5 MB, free: 24.44 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.1465, allocations: 3.656 kB / 290.5 MB, free: 24.44 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001365/0.1478, allocations: 0.8106 MB / 291.3 MB, free: 24.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.1478, allocations: 0.7031 kB / 291.3 MB, free: 24.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002372/0.1481, allocations: 92.83 kB / 291.4 MB, free: 24.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007101/0.1488, allocations: 422.5 kB / 291.8 MB, free: 24.23 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.305e-05/0.1488, allocations: 24.31 kB / 291.8 MB, free: 24.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005818/0.1494, allocations: 0.7718 MB / 292.6 MB, free: 23.71 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.1494, allocations: 0.6094 kB / 292.6 MB, free: 23.71 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001008/0.1504, allocations: 0.7181 MB / 293.3 MB, free: 23.54 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001623/0.1506, allocations: 80.31 kB / 293.4 MB, free: 23.54 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.949e-05/0.1507, allocations: 26.33 kB / 293.4 MB, free: 23.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002611/0.1509, allocations: 72.66 kB / 293.5 MB, free: 23.54 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002237/0.1512, allocations: 140.5 kB / 293.6 MB, free: 23.54 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.845e-05/0.1512, allocations: 19.83 kB / 293.7 MB, free: 23.54 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.00013/0.1513, allocations: 132.4 kB / 293.8 MB, free: 23.52 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1513, allocations: 0 / 293.8 MB, free: 23.52 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003774/0.1517, allocations: 155.9 kB / 293.9 MB, free: 23.52 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.001046/0.1528, allocations: 471.2 kB / 294.4 MB, free: 23.41 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006817/0.1534, allocations: 435.4 kB / 294.8 MB, free: 23.38 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.174e-06/0.1534, allocations: 3.438 kB / 294.8 MB, free: 23.38 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003902/0.1538, allocations: 284.3 kB / 295.1 MB, free: 23.36 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004158/0.1542, allocations: 176.6 kB / 295.3 MB, free: 23.34 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001478/0.1557, allocations: 1.025 MB / 296.3 MB, free: 22.85 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001093/0.1558, allocations: 140.3 kB / 296.4 MB, free: 22.77 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001393/0.156, allocations: 54.64 kB / 296.5 MB, free: 22.75 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002228/0.1562, allocations: 145.5 kB / 296.6 MB, free: 22.71 MB / 266.7 MB Notification: Performance of SimCode: time 9.22e-07/0.1562, allocations: 0 / 296.6 MB, free: 22.71 MB / 266.7 MB Notification: Performance of Templates: time 0.01317/0.1694, allocations: 12.68 MB / 309.3 MB, free: 15.53 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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: 2.925671471748501]