Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001384/0.001384, allocations: 114.5 kB / 21.17 MB, free: 0.6172 MB / 14.72 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.001539/0.001539, allocations: 206.2 kB / 24.47 MB, free: 4.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.527/1.527, allocations: 230.4 MB / 258.1 MB, free: 8.156 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002253/0.002253, allocations: 67.77 kB / 378.7 MB, free: 2.914 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.301, allocations: 53.31 MB / 432 MB, free: 7.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.005131/0.3062, allocations: 3.28 MB / 435.3 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002219/0.3084, allocations: 1.267 MB / 436.6 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001734/0.3086, allocations: 4 kB / 436.6 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003566/0.3089, allocations: 99.09 kB / 436.7 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004278/0.3094, allocations: 218.4 kB / 436.9 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000488/0.3098, allocations: 267.5 kB / 437.2 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009104/0.3107, allocations: 0.8505 MB / 438 MB, free: 1.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002239/0.311, allocations: 101.8 kB / 438.1 MB, free: 1.324 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005498/0.3115, allocations: 386.8 kB / 438.5 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005549/0.3121, allocations: 418.5 kB / 438.9 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001024/0.3122, allocations: 64 kB / 439 MB, free: 484 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002314/0.3124, allocations: 127.9 kB / 439.1 MB, free: 356 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002142/0.3126, allocations: 175.4 kB / 439.3 MB, free: 180 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00033/0.313, allocations: 326.4 kB / 439.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008769/0.3138, allocations: 0.7919 MB / 440.4 MB, free: 15.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.3138, allocations: 0 / 440.4 MB, free: 15.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.3138, allocations: 3.938 kB / 440.4 MB, free: 15.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.3138, allocations: 0 / 440.4 MB, free: 15.06 MB / 350.1 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.002008/0.3159, allocations: 0.9694 MB / 441.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.3159, allocations: 12.92 kB / 441.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003364/0.3162, allocations: 80.53 kB / 441.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006479/0.3169, allocations: 390.2 kB / 441.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.88e-05/0.3169, allocations: 41.36 kB / 441.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/0.317, allocations: 52.33 kB / 441.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0012/0.3182, allocations: 0.6191 MB / 442.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.419e-05/0.3183, allocations: 4 kB / 442.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.372e-05/0.3183, allocations: 20 kB / 442.5 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.3183, allocations: 8 kB / 442.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001268/0.3196, allocations: 0.5894 MB / 443.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002573/0.3222, allocations: 1.359 MB / 444.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00114/0.3233, allocations: 493 kB / 445 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006/0.3239, allocations: 286.4 kB / 445.3 MB, free: 9.992 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.77e-05/0.324, allocations: 16.55 kB / 445.3 MB, free: 9.977 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.967e-05/0.324, allocations: 47.12 kB / 445.3 MB, free: 9.918 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.044e-06/0.324, allocations: 0 / 445.3 MB, free: 9.918 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.007073/0.3311, allocations: 2.882 MB / 448.2 MB, free: 6.902 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.134e-05/0.3311, allocations: 64.06 kB / 448.3 MB, free: 6.828 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004353/0.3316, allocations: 369.6 kB / 448.6 MB, free: 6.465 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.847e-05/0.3317, allocations: 49.7 kB / 448.7 MB, free: 6.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000153/0.3318, allocations: 197.6 kB / 448.9 MB, free: 6.211 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002305/0.332, allocations: 269.8 kB / 449.1 MB, free: 5.945 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003112/0.3323, allocations: 130.6 kB / 449.3 MB, free: 5.809 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001914/0.3325, allocations: 354.8 kB / 449.6 MB, free: 5.453 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006537/0.3332, allocations: 313.9 kB / 449.9 MB, free: 5.148 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007124/0.3339, allocations: 369.4 kB / 450.3 MB, free: 4.781 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001066/0.335, allocations: 0.4889 MB / 450.8 MB, free: 4.281 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.335, allocations: 0 / 450.8 MB, free: 4.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002067/0.337, allocations: 0.9235 MB / 451.7 MB, free: 3.348 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.3371, allocations: 4 kB / 451.7 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.3371, allocations: 8.031 kB / 451.7 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00142/0.3385, allocations: 0.5746 MB / 452.3 MB, free: 2.758 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003776/0.3389, allocations: 91.89 kB / 452.4 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001615/0.3405, allocations: 1.104 MB / 453.5 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007423/0.3412, allocations: 119.8 kB / 453.6 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.646e-05/0.3413, allocations: 24 kB / 453.6 MB, free: 1.395 MB / 350.1 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.0003175/0.3416, allocations: 192 kB / 453.8 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001296/0.3417, allocations: 55.67 kB / 453.9 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001839/0.3419, allocations: 77.09 kB / 453.9 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.185e-05/0.3419, allocations: 15.98 kB / 453.9 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/0.3419, allocations: 0 / 453.9 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.3419, allocations: 0 / 453.9 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003003/0.3449, allocations: 1.603 MB / 455.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.3449, allocations: 7.875 kB / 455.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004278/0.3454, allocations: 91.88 kB / 455.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001234/0.3466, allocations: 0.5356 MB / 456.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.161e-05/0.3467, allocations: 27.95 kB / 456.2 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00166/0.3483, allocations: 1.074 MB / 457.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3483, allocations: 0 / 457.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00272/0.351, allocations: 1.301 MB / 458.6 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003436/0.3514, allocations: 196.6 kB / 458.8 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001404/0.3515, allocations: 32 kB / 458.8 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007032/0.3522, allocations: 99.86 kB / 458.9 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003078/0.3525, allocations: 128.4 kB / 459 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.199e-05/0.3526, allocations: 35.97 kB / 459.1 MB, free: 11.8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003246/0.3529, allocations: 263 kB / 459.3 MB, free: 11.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3529, allocations: 0 / 459.3 MB, free: 11.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006037/0.3535, allocations: 159.9 kB / 459.5 MB, free: 11.39 MB / 366.1 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.001416/0.355, allocations: 391.9 kB / 459.9 MB, free: 11.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001804/0.3568, allocations: 0.7154 MB / 460.6 MB, free: 10.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3568, allocations: 4.062 kB / 460.6 MB, free: 10.42 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009347/0.3577, allocations: 420.6 kB / 461 MB, free: 10.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000735/0.3584, allocations: 120.5 kB / 461.1 MB, free: 9.902 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002972/0.3614, allocations: 1.44 MB / 462.5 MB, free: 8.434 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005357/0.3619, allocations: 0.8636 MB / 463.4 MB, free: 7.543 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000197/0.3621, allocations: 52.42 kB / 463.5 MB, free: 7.492 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000143/0.3623, allocations: 55.41 kB / 463.5 MB, free: 7.438 MB / 366.1 MB Notification: Performance of SimCode: time 6.52e-07/0.3623, allocations: 0 / 463.5 MB, free: 7.438 MB / 366.1 MB Notification: Performance of Templates: time 0.0245/0.3868, allocations: 14.32 MB / 477.8 MB, free: 9.195 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.083933213725686]