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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001925/0.001925, allocations: 106 kB / 21.18 MB, free: 0.707 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002138/0.002138, allocations: 183.9 kB / 24.47 MB, free: 4.074 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.56/1.56, allocations: 207.6 MB / 235.2 MB, free: 10.02 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001706/0.001706, allocations: 56.19 kB / 347.7 MB, free: 9.562 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3523/0.354, allocations: 49.15 MB / 396.8 MB, free: 9.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.00453/0.3585, allocations: 3.122 MB / 399.9 MB, free: 7.324 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002114/0.3606, allocations: 1.083 MB / 401 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002248/0.3609, allocations: 14.69 kB / 401 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003027/0.3612, allocations: 73.28 kB / 401.1 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002952/0.3615, allocations: 163 kB / 401.3 MB, free: 6.395 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007995/0.3623, allocations: 287.1 kB / 401.5 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001012/0.3633, allocations: 0.7959 MB / 402.3 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002691/0.3635, allocations: 99.23 kB / 402.4 MB, free: 5.805 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005716/0.3641, allocations: 373.1 kB / 402.8 MB, free: 5.645 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005275/0.3646, allocations: 393.3 kB / 403.2 MB, free: 5.473 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001094/0.3648, allocations: 60.34 kB / 403.2 MB, free: 5.473 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002496/0.365, allocations: 114 kB / 403.3 MB, free: 5.457 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001502/0.3652, allocations: 154.4 kB / 403.5 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002915/0.3654, allocations: 299.9 kB / 403.8 MB, free: 5.176 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001036/0.3665, allocations: 0.7323 MB / 404.5 MB, free: 4.883 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3665, allocations: 1.5 kB / 404.5 MB, free: 4.883 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3665, allocations: 0 / 404.5 MB, free: 4.883 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.105e-05/0.3665, allocations: 3.938 kB / 404.5 MB, free: 4.879 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.00189/0.3684, allocations: 0.8228 MB / 405.4 MB, free: 4.348 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/0.3684, allocations: 12.39 kB / 405.4 MB, free: 4.344 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000164/0.3686, allocations: 61.56 kB / 405.4 MB, free: 4.312 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006281/0.3692, allocations: 302.6 kB / 405.7 MB, free: 4.086 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.531e-05/0.3693, allocations: 40.92 kB / 405.8 MB, free: 4.066 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001227/0.3694, allocations: 45.41 kB / 405.8 MB, free: 4.051 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001351/0.3708, allocations: 0.6196 MB / 406.4 MB, free: 3.809 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.862e-05/0.3708, allocations: 6.75 kB / 406.4 MB, free: 3.805 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.785e-05/0.3708, allocations: 14.75 kB / 406.4 MB, free: 3.793 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.803e-05/0.3709, allocations: 11.94 kB / 406.5 MB, free: 3.793 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001614/0.3725, allocations: 0.6053 MB / 407.1 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00309/0.3756, allocations: 1.278 MB / 408.3 MB, free: 2.84 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001044/0.3766, allocations: 440.5 kB / 408.8 MB, free: 2.629 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005989/0.3772, allocations: 295 kB / 409.1 MB, free: 2.477 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.708e-05/0.3773, allocations: 7.5 kB / 409.1 MB, free: 2.477 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.374e-05/0.3773, allocations: 40.38 kB / 409.1 MB, free: 2.426 MB / 318.1 MB Notification: Performance of pre-optimization done (n=58): time 2.544e-06/0.3773, allocations: 1.375 kB / 409.1 MB, free: 2.426 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.006251/0.3836, allocations: 2.494 MB / 411.6 MB, free: 1.086 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.648e-05/0.3836, allocations: 56.91 kB / 411.7 MB, free: 1.023 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003749/0.384, allocations: 327.9 kB / 412 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.42e-05/0.384, allocations: 48.77 kB / 412 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001302/0.3842, allocations: 203.7 kB / 412.2 MB, free: 0.582 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001638/0.3843, allocations: 233 kB / 412.4 MB, free: 388 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000225/0.3846, allocations: 135.6 kB / 412.6 MB, free: 300 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.3847, allocations: 359 kB / 412.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007022/0.3854, allocations: 323 kB / 413.2 MB, free: 15.79 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008097/0.3862, allocations: 383.5 kB / 413.6 MB, free: 15.59 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001177/0.3874, allocations: 0.5011 MB / 414.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3874, allocations: 1.125 kB / 414.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00196/0.3894, allocations: 0.9111 MB / 415 MB, free: 14.91 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.3894, allocations: 4.844 kB / 415 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.3894, allocations: 1.281 kB / 415 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001473/0.3909, allocations: 0.7306 MB / 415.8 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004247/0.3913, allocations: 103.7 kB / 415.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001659/0.393, allocations: 1.096 MB / 417 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007342/0.3937, allocations: 108.4 kB / 417.1 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.455e-05/0.3938, allocations: 25.44 kB / 417.1 MB, free: 13.69 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.0003826/0.3942, allocations: 178 kB / 417.3 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001369/0.3943, allocations: 50.95 kB / 417.3 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001651/0.3945, allocations: 69.97 kB / 417.4 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.3945, allocations: 11.03 kB / 417.4 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.08e-05/0.3945, allocations: 0 / 417.4 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.944e-06/0.3945, allocations: 3.984 kB / 417.4 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003161/0.3976, allocations: 1.535 MB / 418.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.3977, allocations: 0 / 418.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004296/0.3981, allocations: 91.62 kB / 419 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00129/0.3994, allocations: 0.7051 MB / 419.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.23e-05/0.3994, allocations: 29.69 kB / 419.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001508/0.401, allocations: 1.066 MB / 420.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.401, allocations: 0 / 420.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002548/0.4035, allocations: 1.296 MB / 422.1 MB, free: 9.699 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003321/0.4038, allocations: 115.5 kB / 422.2 MB, free: 9.586 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.4039, allocations: 24 kB / 422.3 MB, free: 9.562 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005851/0.4045, allocations: 103.8 kB / 422.4 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003098/0.4048, allocations: 132.4 kB / 422.5 MB, free: 9.328 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.671e-05/0.4049, allocations: 23.97 kB / 422.5 MB, free: 9.305 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002778/0.4052, allocations: 239.2 kB / 422.8 MB, free: 9.074 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4052, allocations: 0 / 422.8 MB, free: 9.074 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006507/0.4058, allocations: 159.9 kB / 422.9 MB, free: 8.918 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.0003229/0.4062, allocations: 151 kB / 423.1 MB, free: 8.758 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001702/0.4079, allocations: 0.7263 MB / 423.8 MB, free: 8.031 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.4079, allocations: 0 / 423.8 MB, free: 8.031 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008604/0.4087, allocations: 410.1 kB / 424.2 MB, free: 7.633 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006799/0.4094, allocations: 93.91 kB / 424.3 MB, free: 7.543 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002913/0.4123, allocations: 1.415 MB / 425.7 MB, free: 6.098 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005179/0.4128, allocations: 0.844 MB / 426.5 MB, free: 5.23 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000214/0.413, allocations: 52.16 kB / 426.6 MB, free: 5.18 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001221/0.4132, allocations: 39.42 kB / 426.6 MB, free: 5.141 MB / 334.1 MB Notification: Performance of SimCode: time 1.452e-06/0.4132, allocations: 0 / 426.6 MB, free: 5.141 MB / 334.1 MB Notification: Performance of Templates: time 0.02759/0.4408, allocations: 14.26 MB / 440.9 MB, free: 6.848 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins/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: 5.317179725505412]