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.001975/0.001975, allocations: 92.27 kB / 20.96 MB, free: 3.449 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.002504/0.002504, allocations: 156.9 kB / 24.26 MB, free: 152 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.512/1.512, allocations: 177 MB / 204.5 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 178] 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 2.815e-06/2.815e-06, allocations: 0 / 272.2 MB, free: 1.828 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.364e-05/3.646e-05, allocations: 2.312 kB / 272.2 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.009717/0.009753, allocations: 3.017 MB / 275.2 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004886/0.01464, allocations: 1.201 MB / 276.4 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003982/0.01504, allocations: 11.94 kB / 276.4 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000631/0.01567, allocations: 99.09 kB / 276.5 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001085/0.01675, allocations: 234.2 kB / 276.7 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001225/0.01798, allocations: 283.5 kB / 277 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001869/0.01985, allocations: 0.8617 MB / 277.9 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003929/0.02024, allocations: 97.55 kB / 278 MB, free: 12 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001667/0.02191, allocations: 0.5184 MB / 278.5 MB, free: 11.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00106/0.02297, allocations: 339.2 kB / 278.8 MB, free: 11.14 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002555/0.02322, allocations: 64 kB / 278.9 MB, free: 11.08 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005269/0.02375, allocations: 119.9 kB / 279 MB, free: 10.96 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004205/0.02417, allocations: 187.4 kB / 279.2 MB, free: 10.78 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006186/0.02479, allocations: 235.4 kB / 279.4 MB, free: 10.55 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00208/0.02687, allocations: 0.8566 MB / 280.3 MB, free: 9.691 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.02688, allocations: 0 / 280.3 MB, free: 9.691 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.02688, allocations: 0 / 280.3 MB, free: 9.691 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.448e-05/0.0269, allocations: 0 / 280.3 MB, free: 9.691 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.003961/0.03086, allocations: 0.8786 MB / 281.2 MB, free: 8.781 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.404e-05/0.03093, allocations: 11.98 kB / 281.2 MB, free: 8.77 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007531/0.03168, allocations: 120.5 kB / 281.3 MB, free: 8.652 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00111/0.03279, allocations: 347.6 kB / 281.6 MB, free: 8.285 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.991e-05/0.03287, allocations: 37.38 kB / 281.7 MB, free: 8.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000185/0.03306, allocations: 48.33 kB / 281.7 MB, free: 8.203 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002141/0.0352, allocations: 0.6156 MB / 282.3 MB, free: 7.57 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.753e-05/0.03523, allocations: 4.172 kB / 282.3 MB, free: 7.566 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000113/0.03535, allocations: 24.11 kB / 282.3 MB, free: 7.543 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.155e-05/0.03537, allocations: 12 kB / 282.4 MB, free: 7.531 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002381/0.03775, allocations: 0.5816 MB / 282.9 MB, free: 6.953 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004354/0.0421, allocations: 1.119 MB / 284.1 MB, free: 5.793 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002263/0.04437, allocations: 481.9 kB / 284.5 MB, free: 5.312 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001276/0.04564, allocations: 294.6 kB / 284.8 MB, free: 5.023 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.566e-05/0.04574, allocations: 12.66 kB / 284.8 MB, free: 5.008 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.091e-05/0.0458, allocations: 43.22 kB / 284.9 MB, free: 4.957 MB / 266.7 MB Notification: Performance of pre-optimization done (n=67): time 3.517e-06/0.0458, allocations: 0 / 284.9 MB, free: 4.957 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.01382/0.05962, allocations: 2.536 MB / 287.4 MB, free: 2.375 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.067e-05/0.05971, allocations: 64 kB / 287.5 MB, free: 2.297 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008775/0.06059, allocations: 357.6 kB / 287.8 MB, free: 1.945 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001492/0.06074, allocations: 49.69 kB / 287.9 MB, free: 1.891 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003222/0.06106, allocations: 205.6 kB / 288.1 MB, free: 1.684 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004632/0.06152, allocations: 261.9 kB / 288.3 MB, free: 1.426 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004829/0.06201, allocations: 130.6 kB / 288.5 MB, free: 1.289 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003468/0.06235, allocations: 358.8 kB / 288.8 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00135/0.0637, allocations: 309.9 kB / 289.1 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001506/0.06521, allocations: 373.3 kB / 289.5 MB, free: 264 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.141/0.2062, allocations: 488.9 kB / 289.9 MB, free: 28.32 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.2062, allocations: 1.562 kB / 290 MB, free: 28.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002381/0.2086, allocations: 0.9602 MB / 290.9 MB, free: 28.27 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.2086, allocations: 5.562 kB / 290.9 MB, free: 28.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.2086, allocations: 1.938 kB / 290.9 MB, free: 28.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001454/0.21, allocations: 0.5739 MB / 291.5 MB, free: 28.14 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003967/0.2104, allocations: 88.88 kB / 291.6 MB, free: 28.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001522/0.212, allocations: 1.117 MB / 292.7 MB, free: 27.37 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007832/0.2127, allocations: 118 kB / 292.8 MB, free: 27.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.722e-05/0.2128, allocations: 22.62 kB / 292.8 MB, free: 27.36 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.0002673/0.2131, allocations: 190.2 kB / 293 MB, free: 27.2 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002163/0.2133, allocations: 77.91 kB / 293.1 MB, free: 27.2 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001642/0.2135, allocations: 76.48 kB / 293.2 MB, free: 27.13 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.295e-06/0.2135, allocations: 7.109 kB / 293.2 MB, free: 27.13 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.2135, allocations: 1.156 kB / 293.2 MB, free: 27.13 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.2135, allocations: 7.266 kB / 293.2 MB, free: 27.12 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002859/0.2163, allocations: 1.406 MB / 294.6 MB, free: 26.46 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.2164, allocations: 0.7656 kB / 294.6 MB, free: 26.46 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004283/0.2168, allocations: 90.58 kB / 294.7 MB, free: 26.45 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001251/0.218, allocations: 0.5395 MB / 295.2 MB, free: 26.29 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.441e-05/0.2181, allocations: 31.81 kB / 295.3 MB, free: 26.28 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001424/0.2195, allocations: 1.077 MB / 296.3 MB, free: 25.54 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.2195, allocations: 4.562 kB / 296.3 MB, free: 25.54 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002661/0.2222, allocations: 1.321 MB / 297.7 MB, free: 24.95 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003165/0.2225, allocations: 127.4 kB / 297.8 MB, free: 24.92 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001347/0.2227, allocations: 29.62 kB / 297.8 MB, free: 24.9 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007282/0.2234, allocations: 103.4 kB / 297.9 MB, free: 24.89 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003515/0.2237, allocations: 133.6 kB / 298 MB, free: 24.86 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.69e-05/0.2238, allocations: 32.02 kB / 298.1 MB, free: 24.86 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003125/0.2241, allocations: 247.6 kB / 298.3 MB, free: 24.73 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2241, allocations: 0 / 298.3 MB, free: 24.73 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006828/0.2248, allocations: 156.3 kB / 298.5 MB, free: 24.71 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.001815/0.2266, allocations: 426.8 kB / 298.9 MB, free: 24.56 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001859/0.2285, allocations: 0.7232 MB / 299.6 MB, free: 24.32 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.2285, allocations: 0 / 299.6 MB, free: 24.32 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009003/0.2294, allocations: 417.1 kB / 300 MB, free: 24.18 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007961/0.2302, allocations: 159.6 kB / 300.2 MB, free: 24.13 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002469/0.2327, allocations: 1.271 MB / 301.4 MB, free: 23.38 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003262/0.233, allocations: 261.9 kB / 301.7 MB, free: 23.28 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002308/0.2332, allocations: 43.8 kB / 301.7 MB, free: 23.27 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001807/0.2334, allocations: 52.61 kB / 301.8 MB, free: 23.25 MB / 266.7 MB Notification: Performance of SimCode: time 1.242e-06/0.2334, allocations: 4 kB / 301.8 MB, free: 23.25 MB / 266.7 MB Notification: Performance of Templates: time 0.01525/0.2486, allocations: 11.82 MB / 313.6 MB, free: 13.25 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=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: 4.938712320988998]