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.001306/0.001306, allocations: 87.67 kB / 21.19 MB, free: 3.367 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.001353/0.001353, allocations: 156.5 kB / 24.55 MB, free: 12 kB / 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 1.059/1.059, allocations: 177 MB / 204.8 MB, free: 5.562 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.703e-06/1.703e-06, allocations: 0 / 272.9 MB, free: 1.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.155e-05/3.325e-05, allocations: 5.266 kB / 272.9 MB, free: 1.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004084/0.004117, allocations: 3.233 MB / 276.1 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002126/0.006244, allocations: 1.232 MB / 277.4 MB, free: 12.94 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002056/0.006449, allocations: 15.88 kB / 277.4 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003665/0.006816, allocations: 95.08 kB / 277.5 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004271/0.007243, allocations: 242.2 kB / 277.7 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005548/0.007798, allocations: 271.5 kB / 278 MB, free: 12.33 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008761/0.008674, allocations: 0.8734 MB / 278.9 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002555/0.008929, allocations: 93.5 kB / 278.9 MB, free: 11.36 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007177/0.009647, allocations: 0.5224 MB / 279.5 MB, free: 10.83 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004415/0.01009, allocations: 339.2 kB / 279.8 MB, free: 10.5 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001096/0.0102, allocations: 64 kB / 279.9 MB, free: 10.44 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002222/0.01042, allocations: 123.9 kB / 280 MB, free: 10.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000204/0.01062, allocations: 179.4 kB / 280.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002409/0.01087, allocations: 235.4 kB / 280.4 MB, free: 9.91 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007657/0.01163, allocations: 0.6267 MB / 281 MB, free: 9.281 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.01164, allocations: 0 / 281 MB, free: 9.281 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.01164, allocations: 0 / 281 MB, free: 9.281 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.396e-05/0.01165, allocations: 0 / 281 MB, free: 9.281 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.001508/0.01316, allocations: 0.9512 MB / 282 MB, free: 8.293 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.18e-05/0.01322, allocations: 19.92 kB / 282 MB, free: 8.273 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003581/0.01358, allocations: 112.5 kB / 282.1 MB, free: 8.164 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005099/0.01409, allocations: 351.2 kB / 282.4 MB, free: 7.789 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.445e-05/0.01414, allocations: 37.38 kB / 282.5 MB, free: 7.754 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.647e-05/0.01421, allocations: 48.33 kB / 282.5 MB, free: 7.707 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007067/0.01492, allocations: 0.5078 MB / 283 MB, free: 7.18 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.82e-05/0.01494, allocations: 4.188 kB / 283 MB, free: 7.176 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.824e-05/0.01499, allocations: 24.12 kB / 283.1 MB, free: 7.152 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.015, allocations: 12 kB / 283.1 MB, free: 7.141 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005619/0.01556, allocations: 365.6 kB / 283.4 MB, free: 6.789 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001562/0.01712, allocations: 1.121 MB / 284.5 MB, free: 5.621 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007064/0.01783, allocations: 362.7 kB / 284.9 MB, free: 5.25 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002745/0.0181, allocations: 189.5 kB / 285.1 MB, free: 5.062 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.784e-05/0.01816, allocations: 20.66 kB / 285.1 MB, free: 5.039 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.004e-05/0.01819, allocations: 42.05 kB / 285.1 MB, free: 4.988 MB / 266.7 MB Notification: Performance of pre-optimization done (n=67): time 3.336e-06/0.0182, allocations: 3.984 kB / 285.1 MB, free: 4.984 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.003895/0.02209, allocations: 1.977 MB / 287.1 MB, free: 2.957 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.382e-05/0.02213, allocations: 68 kB / 287.2 MB, free: 2.875 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003333/0.02247, allocations: 370.7 kB / 287.6 MB, free: 2.496 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.11e-05/0.02253, allocations: 53.69 kB / 287.6 MB, free: 2.438 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001415/0.02267, allocations: 248.3 kB / 287.8 MB, free: 2.191 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001903/0.02286, allocations: 265.8 kB / 288.1 MB, free: 1.93 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002074/0.02307, allocations: 136.3 kB / 288.2 MB, free: 1.789 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.02324, allocations: 0.5274 MB / 288.8 MB, free: 1.25 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003813/0.02362, allocations: 185.9 kB / 289 MB, free: 1.066 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004065/0.02402, allocations: 257.9 kB / 289.2 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005427/0.02457, allocations: 341.6 kB / 289.5 MB, free: 476 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.02457, allocations: 0 / 289.5 MB, free: 476 kB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.1503/0.1749, allocations: 0.6902 MB / 290.2 MB, free: 24.44 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.114e-05/0.1749, allocations: 10.52 kB / 290.2 MB, free: 24.44 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.1749, allocations: 1.219 kB / 290.2 MB, free: 24.44 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001121/0.176, allocations: 449.8 kB / 290.7 MB, free: 24.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000298/0.1763, allocations: 93.59 kB / 290.8 MB, free: 24.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00103/0.1774, allocations: 1.097 MB / 291.9 MB, free: 23.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000448/0.1778, allocations: 78.48 kB / 291.9 MB, free: 23.62 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.985e-05/0.1779, allocations: 27.28 kB / 292 MB, free: 23.62 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.0002106/0.1781, allocations: 200.3 kB / 292.2 MB, free: 23.46 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000138/0.1782, allocations: 77.52 kB / 292.2 MB, free: 23.46 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001075/0.1783, allocations: 77.7 kB / 292.3 MB, free: 23.45 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/0.1783, allocations: 6.844 kB / 292.3 MB, free: 23.45 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.1783, allocations: 2 kB / 292.3 MB, free: 23.45 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.157e-05/0.1783, allocations: 3.422 kB / 292.3 MB, free: 23.45 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001906/0.1803, allocations: 1.217 MB / 293.5 MB, free: 23.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.1803, allocations: 0 / 293.5 MB, free: 23.14 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002377/0.1805, allocations: 84.64 kB / 293.6 MB, free: 23.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007136/0.1812, allocations: 443.1 kB / 294.1 MB, free: 23.12 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.348e-05/0.1813, allocations: 29.38 kB / 294.1 MB, free: 23.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008777/0.1821, allocations: 1.134 MB / 295.2 MB, free: 22.31 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.1821, allocations: 1.125 kB / 295.2 MB, free: 22.31 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001408/0.1835, allocations: 0.9819 MB / 296.2 MB, free: 22.09 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002077/0.1838, allocations: 123.1 kB / 296.3 MB, free: 22.08 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.44e-05/0.1838, allocations: 25.48 kB / 296.4 MB, free: 22.08 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002648/0.1841, allocations: 71.31 kB / 296.4 MB, free: 22.08 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002408/0.1843, allocations: 144.7 kB / 296.6 MB, free: 22.08 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.504e-05/0.1844, allocations: 31.59 kB / 296.6 MB, free: 22.08 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001907/0.1846, allocations: 258 kB / 296.8 MB, free: 21.95 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1846, allocations: 0 / 296.8 MB, free: 21.95 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003998/0.185, allocations: 161.8 kB / 297 MB, free: 21.95 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.0007911/0.1858, allocations: 375 kB / 297.4 MB, free: 21.84 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001046/0.1868, allocations: 0.5514 MB / 297.9 MB, free: 21.8 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1868, allocations: 1.406 kB / 297.9 MB, free: 21.8 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005561/0.1874, allocations: 344 kB / 298.3 MB, free: 21.78 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005085/0.1879, allocations: 174.1 kB / 298.4 MB, free: 21.76 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001744/0.1896, allocations: 1.191 MB / 299.6 MB, free: 21.13 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001146/0.1897, allocations: 135.6 kB / 299.7 MB, free: 21.06 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001322/0.1899, allocations: 60.77 kB / 299.8 MB, free: 21.04 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001148/0.19, allocations: 51.64 kB / 299.9 MB, free: 21.03 MB / 266.7 MB Notification: Performance of SimCode: time 1.092e-06/0.19, allocations: 0 / 299.9 MB, free: 21.03 MB / 266.7 MB Notification: Performance of Templates: time 0.01259/0.2026, allocations: 11.83 MB / 311.7 MB, free: 13.34 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: 3.44461111119017]