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.001643/0.001643, allocations: 116.7 kB / 19.18 MB, free: 3.762 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.001567/0.001567, allocations: 210.6 kB / 22.13 MB, free: 0.8125 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.424/1.424, allocations: 230.4 MB / 255.4 MB, free: 15.02 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.001916/0.001916, allocations: 71.81 kB / 374.7 MB, free: 9.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1122, allocations: 53.31 MB / 428 MB, free: 4.367 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.006703/0.1189, allocations: 3.266 MB / 431.3 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2184/0.3374, allocations: 1.255 MB / 432.6 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004134/0.3378, allocations: 7.75 kB / 432.6 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004072/0.3382, allocations: 94.5 kB / 432.7 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005562/0.3387, allocations: 232 kB / 432.9 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005889/0.3393, allocations: 262.4 kB / 433.2 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008824/0.3402, allocations: 0.8487 MB / 434 MB, free: 8.059 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000216/0.3404, allocations: 102.2 kB / 434.1 MB, free: 8.031 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005534/0.341, allocations: 389.8 kB / 434.5 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000464/0.3415, allocations: 405.5 kB / 434.9 MB, free: 7.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001048/0.3416, allocations: 66.22 kB / 434.9 MB, free: 7.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002859/0.3418, allocations: 127.8 kB / 435.1 MB, free: 7.902 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002064/0.3421, allocations: 176.1 kB / 435.2 MB, free: 7.879 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002764/0.3423, allocations: 323.4 kB / 435.6 MB, free: 7.793 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009222/0.3433, allocations: 0.8008 MB / 436.4 MB, free: 7.672 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3433, allocations: 0.9688 kB / 436.4 MB, free: 7.672 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3433, allocations: 0 / 436.4 MB, free: 7.672 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.237e-05/0.3433, allocations: 0 / 436.4 MB, free: 7.672 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.001928/0.3452, allocations: 0.9597 MB / 437.3 MB, free: 7.098 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.3452, allocations: 9.859 kB / 437.3 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003655/0.3456, allocations: 84.7 kB / 437.4 MB, free: 7.066 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005989/0.3462, allocations: 403.1 kB / 437.8 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.438e-05/0.3463, allocations: 35.16 kB / 437.8 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001182/0.3464, allocations: 52.05 kB / 437.9 MB, free: 6.793 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001324/0.3477, allocations: 0.6214 MB / 438.5 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.599e-05/0.3477, allocations: 1.875 kB / 438.5 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.386e-05/0.3478, allocations: 17.78 kB / 438.5 MB, free: 6.637 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.852e-05/0.3478, allocations: 10.78 kB / 438.5 MB, free: 6.637 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001359/0.3492, allocations: 0.5893 MB / 439.1 MB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00251/0.3517, allocations: 1.358 MB / 440.5 MB, free: 5.719 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001138/0.3528, allocations: 485.6 kB / 441 MB, free: 5.531 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005877/0.3534, allocations: 293.7 kB / 441.2 MB, free: 5.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.368e-05/0.3535, allocations: 9.375 kB / 441.3 MB, free: 5.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.901e-05/0.3535, allocations: 39.38 kB / 441.3 MB, free: 5.363 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.444e-06/0.3535, allocations: 0 / 441.3 MB, free: 5.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.006985/0.3605, allocations: 2.889 MB / 444.2 MB, free: 3.809 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.208e-05/0.3605, allocations: 63.31 kB / 444.2 MB, free: 3.742 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004194/0.3609, allocations: 367.2 kB / 444.6 MB, free: 3.559 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.926e-05/0.361, allocations: 48.12 kB / 444.6 MB, free: 3.516 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.3611, allocations: 202.3 kB / 444.8 MB, free: 3.344 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001827/0.3613, allocations: 269.8 kB / 445.1 MB, free: 3.145 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000231/0.3615, allocations: 131.6 kB / 445.2 MB, free: 3.078 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.998e-05/0.3616, allocations: 356.3 kB / 445.6 MB, free: 2.746 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006398/0.3622, allocations: 303.6 kB / 445.9 MB, free: 2.629 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006668/0.3629, allocations: 376.2 kB / 446.2 MB, free: 2.469 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009756/0.3639, allocations: 498.2 kB / 446.7 MB, free: 2.246 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.3639, allocations: 0 / 446.7 MB, free: 2.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001984/0.3659, allocations: 0.9323 MB / 447.7 MB, free: 1.844 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.3659, allocations: 6.016 kB / 447.7 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.3659, allocations: 1 kB / 447.7 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001366/0.3673, allocations: 0.5746 MB / 448.2 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003844/0.3676, allocations: 101.1 kB / 448.3 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001419/0.3691, allocations: 1.091 MB / 449.4 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007977/0.3699, allocations: 113.5 kB / 449.6 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.327e-05/0.3699, allocations: 27.03 kB / 449.6 MB, free: 0.8516 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.0003152/0.3702, allocations: 193.6 kB / 449.8 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000133/0.3704, allocations: 57.92 kB / 449.8 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001723/0.3705, allocations: 75.84 kB / 449.9 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-06/0.3706, allocations: 8.719 kB / 449.9 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/0.3706, allocations: 0 / 449.9 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.227e-06/0.3706, allocations: 3.328 kB / 449.9 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003/0.3736, allocations: 1.608 MB / 451.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.3736, allocations: 1.688 kB / 451.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004207/0.374, allocations: 90.81 kB / 451.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001314/0.3753, allocations: 0.5377 MB / 452.1 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.034e-05/0.3754, allocations: 31.69 kB / 452.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001623/0.377, allocations: 1.075 MB / 453.2 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.377, allocations: 0 / 453.2 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002826/0.3798, allocations: 1.302 MB / 454.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003623/0.3802, allocations: 204.2 kB / 454.8 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001287/0.3803, allocations: 25.84 kB / 454.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006883/0.381, allocations: 101.8 kB / 454.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000355/0.3814, allocations: 129.8 kB / 455 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.867e-05/0.3815, allocations: 32.34 kB / 455 MB, free: 14.04 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003754/0.3818, allocations: 253.6 kB / 455.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3818, allocations: 1.062 kB / 455.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007126/0.3825, allocations: 165.8 kB / 455.4 MB, free: 13.88 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.001479/0.384, allocations: 400.3 kB / 455.8 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001901/0.3859, allocations: 0.7188 MB / 456.6 MB, free: 13.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3859, allocations: 0 / 456.6 MB, free: 13.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001031/0.387, allocations: 420.4 kB / 457 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000821/0.3878, allocations: 109.8 kB / 457.1 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00297/0.3907, allocations: 1.478 MB / 458.5 MB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005199/0.3913, allocations: 0.8638 MB / 459.4 MB, free: 11.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001807/0.3914, allocations: 56.31 kB / 459.5 MB, free: 11.55 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3914, allocations: 3.938 kB / 459.5 MB, free: 11.54 MB / 366.1 MB Notification: Performance of Templates: time 0.01435/0.4058, allocations: 9.31 MB / 468.8 MB, free: 6.637 MB / 366.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 -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: 8.316422190051526]