Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001639/0.001639, allocations: 120.2 kB / 21.94 MB, free: 8 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001541/0.001541, allocations: 204.7 kB / 25.23 MB, free: 3.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.765/1.765, allocations: 207.6 MB / 236 MB, free: 9.984 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001874/0.001874, allocations: 55.92 kB / 348.4 MB, free: 9.523 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3126/0.3144, allocations: 49.16 MB / 397.6 MB, free: 9.496 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.00506/0.3195, allocations: 3.127 MB / 400.7 MB, free: 7.297 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003428/0.3229, allocations: 1.08 MB / 401.8 MB, free: 6.535 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000312/0.3232, allocations: 10.06 kB / 401.8 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003185/0.3236, allocations: 77.62 kB / 401.9 MB, free: 6.484 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000353/0.3239, allocations: 167 kB / 402.1 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009133/0.3248, allocations: 281.7 kB / 402.3 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001313/0.3261, allocations: 0.8009 MB / 403.1 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003317/0.3265, allocations: 106.4 kB / 403.2 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007364/0.3272, allocations: 365.7 kB / 403.6 MB, free: 5.617 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006845/0.3279, allocations: 394.3 kB / 404 MB, free: 5.445 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000139/0.328, allocations: 59.56 kB / 404 MB, free: 5.445 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003137/0.3283, allocations: 113.7 kB / 404.2 MB, free: 5.43 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000203/0.3285, allocations: 154.2 kB / 404.3 MB, free: 5.332 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003747/0.3289, allocations: 300.6 kB / 404.6 MB, free: 5.148 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001007/0.3299, allocations: 0.7236 MB / 405.3 MB, free: 4.863 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.3299, allocations: 2.047 kB / 405.3 MB, free: 4.863 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3299, allocations: 7.875 kB / 405.3 MB, free: 4.855 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.668e-06/0.3299, allocations: 4 kB / 405.3 MB, free: 4.852 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.00168/0.3316, allocations: 0.8248 MB / 406.2 MB, free: 4.316 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.3317, allocations: 14.28 kB / 406.2 MB, free: 4.312 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001245/0.3318, allocations: 62.31 kB / 406.2 MB, free: 4.281 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005353/0.3323, allocations: 302.2 kB / 406.5 MB, free: 4.051 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.854e-05/0.3324, allocations: 31.44 kB / 406.6 MB, free: 4.039 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000107/0.3325, allocations: 53.75 kB / 406.6 MB, free: 4.016 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001093/0.3336, allocations: 0.6226 MB / 407.2 MB, free: 3.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.501e-05/0.3336, allocations: 3.812 kB / 407.2 MB, free: 3.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.319e-05/0.3336, allocations: 15.56 kB / 407.3 MB, free: 3.758 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.541e-05/0.3337, allocations: 10.22 kB / 407.3 MB, free: 3.758 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001235/0.3349, allocations: 0.5986 MB / 407.9 MB, free: 3.586 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002219/0.3371, allocations: 1.283 MB / 409.1 MB, free: 2.793 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009492/0.3381, allocations: 443 kB / 409.6 MB, free: 2.578 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005391/0.3386, allocations: 284 kB / 409.9 MB, free: 2.438 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.24e-05/0.3387, allocations: 14.45 kB / 409.9 MB, free: 2.43 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.284e-05/0.3387, allocations: 52.48 kB / 409.9 MB, free: 2.367 MB / 318.1 MB Notification: Performance of pre-optimization done (n=58): time 1.993e-06/0.3387, allocations: 1.625 kB / 409.9 MB, free: 2.367 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.005478/0.3442, allocations: 2.471 MB / 412.4 MB, free: 1.051 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.065e-05/0.3442, allocations: 63.53 kB / 412.5 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002901/0.3445, allocations: 330.7 kB / 412.8 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.76e-05/0.3445, allocations: 46.58 kB / 412.8 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.361e-05/0.3446, allocations: 210 kB / 413 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001285/0.3448, allocations: 228.9 kB / 413.3 MB, free: 340 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001866/0.345, allocations: 132.7 kB / 413.4 MB, free: 256 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.3451, allocations: 357.3 kB / 413.7 MB, free: 15.9 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006504/0.3457, allocations: 320 kB / 414 MB, free: 15.75 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007121/0.3464, allocations: 384.5 kB / 414.4 MB, free: 15.55 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001013/0.3475, allocations: 0.5011 MB / 414.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3475, allocations: 0 / 414.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001827/0.3493, allocations: 0.9195 MB / 415.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.3493, allocations: 4.844 kB / 415.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.3493, allocations: 1.25 kB / 415.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001334/0.3507, allocations: 0.7345 MB / 416.6 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003993/0.3511, allocations: 96.17 kB / 416.7 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001537/0.3526, allocations: 1.1 MB / 417.8 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006808/0.3533, allocations: 104.9 kB / 417.9 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.569e-05/0.3533, allocations: 23.61 kB / 417.9 MB, free: 13.65 MB / 334.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 (64): * Single equations (assignments): 63 * 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,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0003482/0.3537, allocations: 187.5 kB / 418.1 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/0.3538, allocations: 58.78 kB / 418.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000184/0.354, allocations: 69.53 kB / 418.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.487e-06/0.354, allocations: 7.031 kB / 418.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/0.354, allocations: 0 / 418.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.838e-06/0.354, allocations: 3.984 kB / 418.2 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002782/0.3568, allocations: 1.527 MB / 419.7 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.3568, allocations: 0 / 419.7 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004035/0.3572, allocations: 91.44 kB / 419.8 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001163/0.3584, allocations: 0.7051 MB / 420.5 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.301e-05/0.3584, allocations: 25.09 kB / 420.6 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001433/0.3599, allocations: 1.068 MB / 421.6 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.506e-06/0.3599, allocations: 7.984 kB / 421.6 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002509/0.3624, allocations: 1.296 MB / 422.9 MB, free: 9.648 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002849/0.3627, allocations: 111.6 kB / 423 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001069/0.3628, allocations: 20 kB / 423.1 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005961/0.3634, allocations: 111.8 kB / 423.2 MB, free: 9.41 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002747/0.3636, allocations: 132.3 kB / 423.3 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.808e-05/0.3637, allocations: 31.97 kB / 423.3 MB, free: 9.246 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002639/0.364, allocations: 231.2 kB / 423.6 MB, free: 9.02 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.364, allocations: 3.938 kB / 423.6 MB, free: 9.016 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006221/0.3646, allocations: 160 kB / 423.7 MB, free: 8.859 MB / 334.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,19)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002768/0.3649, allocations: 151.2 kB / 423.9 MB, free: 8.699 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001634/0.3665, allocations: 0.7185 MB / 424.6 MB, free: 7.98 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3665, allocations: 4.062 kB / 424.6 MB, free: 7.977 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008286/0.3673, allocations: 406.1 kB / 425 MB, free: 7.582 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006453/0.368, allocations: 93.31 kB / 425.1 MB, free: 7.492 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002991/0.371, allocations: 1.44 MB / 426.5 MB, free: 6.016 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005628/0.3715, allocations: 0.844 MB / 427.4 MB, free: 5.148 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001627/0.3717, allocations: 47.41 kB / 427.4 MB, free: 5.102 MB / 334.1 MB Notification: Performance of SimCode: time 7.42e-07/0.3717, allocations: 0 / 427.4 MB, free: 5.102 MB / 334.1 MB Notification: Performance of Templates: time 0.01552/0.3872, allocations: 8.689 MB / 436.1 MB, free: 12.39 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 9.470862813992426]