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.0009119/0.0009119, allocations: 88.28 kB / 21.43 MB, free: 3.133 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.004739/0.004739, allocations: 157.5 kB / 24.7 MB, free: 9.422 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.8989/0.8989, allocations: 177 MB / 204.9 MB, free: 5.754 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.303e-06/1.303e-06, allocations: 0 / 325.8 MB, free: 15.4 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.636e-05/2.766e-05, allocations: 2.281 kB / 325.8 MB, free: 15.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003042/0.003069, allocations: 3.012 MB / 328.8 MB, free: 12.37 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001343/0.004413, allocations: 1.216 MB / 330 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001408/0.004554, allocations: 7.938 kB / 330 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002745/0.004828, allocations: 99.08 kB / 330.1 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003232/0.005151, allocations: 238.2 kB / 330.3 MB, free: 10.8 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003456/0.005497, allocations: 275.5 kB / 330.6 MB, free: 10.54 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005186/0.006015, allocations: 0.8695 MB / 331.5 MB, free: 9.664 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001662/0.006182, allocations: 89.36 kB / 331.6 MB, free: 9.578 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004443/0.006626, allocations: 0.5224 MB / 332.1 MB, free: 9.055 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000302/0.006928, allocations: 339.2 kB / 332.4 MB, free: 8.723 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.798e-05/0.006996, allocations: 64 kB / 332.5 MB, free: 8.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001502/0.007146, allocations: 127.9 kB / 332.6 MB, free: 8.535 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001405/0.007287, allocations: 179.4 kB / 332.8 MB, free: 8.359 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001496/0.007436, allocations: 235.4 kB / 333 MB, free: 8.129 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000634/0.00807, allocations: 0.8528 MB / 333.9 MB, free: 7.273 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.008073, allocations: 0 / 333.9 MB, free: 7.273 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.008074, allocations: 0 / 333.9 MB, free: 7.273 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.008082, allocations: 0 / 333.9 MB, free: 7.273 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: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.001085/0.009167, allocations: 0.8825 MB / 334.7 MB, free: 6.359 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.29e-05/0.0092, allocations: 15.92 kB / 334.8 MB, free: 6.344 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000193/0.009392, allocations: 84.5 kB / 334.8 MB, free: 6.262 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003911/0.009784, allocations: 331.7 kB / 335.2 MB, free: 5.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.795e-05/0.009812, allocations: 37.38 kB / 335.2 MB, free: 5.875 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.546e-05/0.009877, allocations: 48.33 kB / 335.2 MB, free: 5.828 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007307/0.01061, allocations: 0.6234 MB / 335.9 MB, free: 5.188 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.873e-05/0.01063, allocations: 192 / 335.9 MB, free: 5.188 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.277e-05/0.01067, allocations: 24.12 kB / 335.9 MB, free: 5.164 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.01068, allocations: 12 kB / 335.9 MB, free: 5.152 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007489/0.01143, allocations: 0.5777 MB / 336.5 MB, free: 4.578 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001351/0.01278, allocations: 1.119 MB / 337.6 MB, free: 3.418 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006947/0.01347, allocations: 481.9 kB / 338.1 MB, free: 2.934 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003669/0.01384, allocations: 298.6 kB / 338.4 MB, free: 2.641 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.139e-05/0.01388, allocations: 8.656 kB / 338.4 MB, free: 2.633 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.171e-05/0.0139, allocations: 39.22 kB / 338.4 MB, free: 2.582 MB / 298.7 MB Notification: Performance of pre-optimization done (n=67): time 1.843e-06/0.01391, allocations: 0 / 338.4 MB, free: 2.582 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.003728/0.01763, allocations: 2.532 MB / 340.9 MB, free: 4 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.01768, allocations: 68 kB / 341 MB, free: 15.93 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00025/0.01793, allocations: 349.6 kB / 341.3 MB, free: 15.58 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.776e-05/0.01798, allocations: 49.7 kB / 341.4 MB, free: 15.52 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.936e-05/0.01808, allocations: 201.6 kB / 341.6 MB, free: 15.32 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001566/0.01823, allocations: 265.9 kB / 341.9 MB, free: 15.06 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001439/0.01838, allocations: 126.6 kB / 342 MB, free: 14.93 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.01849, allocations: 362.8 kB / 342.3 MB, free: 14.57 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004147/0.0189, allocations: 305.9 kB / 342.6 MB, free: 14.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004259/0.01933, allocations: 377.4 kB / 343 MB, free: 13.89 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006232/0.01995, allocations: 497 kB / 343.5 MB, free: 13.4 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.01995, allocations: 0 / 343.5 MB, free: 13.4 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001216/0.02117, allocations: 0.9274 MB / 344.4 MB, free: 12.46 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.02118, allocations: 8 kB / 344.4 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.02119, allocations: 0 / 344.4 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008215/0.02201, allocations: 0.5669 MB / 345 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001987/0.02221, allocations: 99.81 kB / 345.1 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00108/0.02329, allocations: 1.101 MB / 346.2 MB, free: 10.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003492/0.02364, allocations: 103.9 kB / 346.3 MB, free: 10.56 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.832e-05/0.02368, allocations: 27.98 kB / 346.3 MB, free: 10.53 MB / 314.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.0001986/0.02388, allocations: 188 kB / 346.5 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.398e-05/0.02396, allocations: 59.62 kB / 346.6 MB, free: 10.28 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001018/0.02406, allocations: 76.92 kB / 346.6 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.02407, allocations: 12 kB / 346.6 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.265e-06/0.02408, allocations: 0 / 346.6 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.02408, allocations: 3.984 kB / 346.6 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001779/0.02586, allocations: 1.407 MB / 348.1 MB, free: 8.734 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.02586, allocations: 4 kB / 348.1 MB, free: 8.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002152/0.02608, allocations: 91.88 kB / 348.1 MB, free: 8.641 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006924/0.02677, allocations: 0.5434 MB / 348.7 MB, free: 8.094 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.01e-05/0.02681, allocations: 27.95 kB / 348.7 MB, free: 8.066 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009444/0.02776, allocations: 1.069 MB / 349.8 MB, free: 6.973 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.02776, allocations: 0 / 349.8 MB, free: 6.973 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001565/0.02932, allocations: 1.297 MB / 351.1 MB, free: 5.652 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001852/0.02951, allocations: 119.5 kB / 351.2 MB, free: 5.535 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.184e-05/0.02958, allocations: 28 kB / 351.2 MB, free: 5.508 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003057/0.02988, allocations: 103.9 kB / 351.3 MB, free: 5.406 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001882/0.03007, allocations: 132.4 kB / 351.5 MB, free: 5.277 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-05/0.03011, allocations: 35.97 kB / 351.5 MB, free: 5.242 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000177/0.03029, allocations: 251.1 kB / 351.7 MB, free: 4.996 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.03029, allocations: 4 kB / 351.7 MB, free: 4.992 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003409/0.03063, allocations: 160 kB / 351.9 MB, free: 4.836 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,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006933/0.03132, allocations: 421.7 kB / 352.3 MB, free: 4.543 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009956/0.03232, allocations: 0.7192 MB / 353 MB, free: 3.828 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.03232, allocations: 0 / 353 MB, free: 3.828 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004963/0.03281, allocations: 420.6 kB / 353.4 MB, free: 3.414 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004316/0.03324, allocations: 116.8 kB / 353.6 MB, free: 3.305 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001549/0.03479, allocations: 1.279 MB / 354.8 MB, free: 1.996 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001541/0.03495, allocations: 267.5 kB / 355.1 MB, free: 1.707 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001069/0.03505, allocations: 52.47 kB / 355.1 MB, free: 1.652 MB / 314.7 MB Notification: Performance of SimCode: time 4.21e-07/0.03506, allocations: 0 / 355.1 MB, free: 1.652 MB / 314.7 MB Notification: Performance of Templates: time 0.008434/0.04349, allocations: 9.507 MB / 364.7 MB, free: 8.156 MB / 330.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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.187851979397237]