Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001968/0.001968, allocations: 123 kB / 17.79 MB, free: 5.246 MB / 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.002481/0.002481, allocations: 207.2 kB / 20.75 MB, free: 2.297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.504/1.504, allocations: 230.6 MB / 254.1 MB, free: 15.11 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+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_4.1.0_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_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001602/0.001602, allocations: 51.92 kB / 373.5 MB, free: 9.715 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1137, allocations: 53.33 MB / 426.8 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.00566/0.1193, allocations: 3.254 MB / 430.1 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2097/0.329, allocations: 1.253 MB / 431.3 MB, free: 8.059 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003407/0.3294, allocations: 9.469 kB / 431.3 MB, free: 8.059 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003497/0.3297, allocations: 94.23 kB / 431.4 MB, free: 8.059 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004895/0.3302, allocations: 226.6 kB / 431.6 MB, free: 8.059 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004915/0.3307, allocations: 264.8 kB / 431.9 MB, free: 8.059 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007001/0.3314, allocations: 0.8507 MB / 432.7 MB, free: 8.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001868/0.3316, allocations: 101.2 kB / 432.8 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004237/0.332, allocations: 397 kB / 433.2 MB, free: 7.934 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004067/0.3324, allocations: 412.4 kB / 433.6 MB, free: 7.871 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.837e-05/0.3325, allocations: 63.19 kB / 433.7 MB, free: 7.871 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002297/0.3327, allocations: 122.1 kB / 433.8 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001666/0.3329, allocations: 181.3 kB / 434 MB, free: 7.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002616/0.3332, allocations: 324.6 kB / 434.3 MB, free: 7.754 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009648/0.3341, allocations: 0.7997 MB / 435.1 MB, free: 7.633 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3341, allocations: 0 / 435.1 MB, free: 7.633 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3341, allocations: 2.031 kB / 435.1 MB, free: 7.633 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.082e-05/0.3342, allocations: 0 / 435.1 MB, free: 7.633 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.001857/0.336, allocations: 0.9622 MB / 436.1 MB, free: 7.059 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.336, allocations: 9.266 kB / 436.1 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003441/0.3364, allocations: 81.64 kB / 436.2 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005354/0.3369, allocations: 399 kB / 436.5 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.344e-05/0.337, allocations: 37.34 kB / 436.6 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001083/0.3371, allocations: 55.16 kB / 436.6 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001168/0.3382, allocations: 0.6183 MB / 437.3 MB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.279e-05/0.3383, allocations: 2.672 kB / 437.3 MB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.06e-05/0.3383, allocations: 22.28 kB / 437.3 MB, free: 6.562 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.185e-05/0.3383, allocations: 11.94 kB / 437.3 MB, free: 6.562 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001324/0.3397, allocations: 0.5824 MB / 437.9 MB, free: 6.379 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002348/0.342, allocations: 1.357 MB / 439.2 MB, free: 5.641 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/0.3431, allocations: 488.8 kB / 439.7 MB, free: 5.449 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005934/0.3437, allocations: 289.5 kB / 440 MB, free: 5.332 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.186e-05/0.3437, allocations: 10.78 kB / 440 MB, free: 5.332 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.555e-05/0.3437, allocations: 37.47 kB / 440 MB, free: 5.285 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 1.884e-06/0.3437, allocations: 0 / 440 MB, free: 5.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.00733/0.3511, allocations: 2.893 MB / 442.9 MB, free: 3.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.974e-05/0.3511, allocations: 59.36 kB / 443 MB, free: 3.668 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004679/0.3516, allocations: 370.7 kB / 443.3 MB, free: 3.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.213e-05/0.3516, allocations: 52.95 kB / 443.4 MB, free: 3.434 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.3518, allocations: 198.5 kB / 443.6 MB, free: 3.266 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001852/0.3519, allocations: 268.2 kB / 443.9 MB, free: 3.066 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002469/0.3522, allocations: 132 kB / 444 MB, free: 3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.097e-05/0.3523, allocations: 358.1 kB / 444.3 MB, free: 2.668 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006917/0.353, allocations: 310.2 kB / 444.6 MB, free: 2.547 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007157/0.3537, allocations: 368.6 kB / 445 MB, free: 2.391 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001026/0.3547, allocations: 0.4927 MB / 445.5 MB, free: 2.164 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.3547, allocations: 0 / 445.5 MB, free: 2.164 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00218/0.3569, allocations: 0.9277 MB / 446.4 MB, free: 1.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.3569, allocations: 6.078 kB / 446.4 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.667e-06/0.3569, allocations: 1.156 kB / 446.4 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001606/0.3585, allocations: 0.5775 MB / 447 MB, free: 1.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004307/0.359, allocations: 101.1 kB / 447.1 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001559/0.3605, allocations: 1.091 MB / 448.2 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009333/0.3615, allocations: 113 kB / 448.3 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.04e-05/0.3615, allocations: 28.02 kB / 448.3 MB, free: 0.7734 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.000419/0.362, allocations: 189.3 kB / 448.5 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001567/0.3621, allocations: 57.62 kB / 448.6 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002028/0.3623, allocations: 76.14 kB / 448.6 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.228e-06/0.3623, allocations: 11.5 kB / 448.7 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/0.3623, allocations: 0 / 448.7 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.28e-05/0.3624, allocations: 5.297 kB / 448.7 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003515/0.3659, allocations: 1.615 MB / 450.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.3659, allocations: 0 / 450.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004614/0.3663, allocations: 91.44 kB / 450.4 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001453/0.3678, allocations: 0.5377 MB / 450.9 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.517e-05/0.3679, allocations: 27.53 kB / 450.9 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0019/0.3698, allocations: 1.075 MB / 452 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.3698, allocations: 0 / 452 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003125/0.3729, allocations: 1.306 MB / 453.3 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004389/0.3734, allocations: 205.6 kB / 453.5 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000171/0.3735, allocations: 21.34 kB / 453.5 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008063/0.3743, allocations: 105.3 kB / 453.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003453/0.3747, allocations: 133.4 kB / 453.8 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.713e-05/0.3748, allocations: 31.91 kB / 453.8 MB, free: 14 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003668/0.3751, allocations: 255.1 kB / 454 MB, free: 13.87 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3751, allocations: 0 / 454 MB, free: 13.87 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007547/0.3759, allocations: 168 kB / 454.2 MB, free: 13.84 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.001558/0.3774, allocations: 400.9 kB / 454.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002223/0.3797, allocations: 0.7178 MB / 455.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.3797, allocations: 1.344 kB / 455.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001073/0.3807, allocations: 417.1 kB / 455.7 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009376/0.3817, allocations: 120.5 kB / 455.8 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003077/0.3848, allocations: 1.439 MB / 457.3 MB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000586/0.3853, allocations: 0.8669 MB / 458.2 MB, free: 11.57 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002513/0.3856, allocations: 49.06 kB / 458.2 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001797/0.3858, allocations: 48.39 kB / 458.2 MB, free: 11.52 MB / 366.1 MB Notification: Performance of SimCode: time 1.213e-06/0.3858, allocations: 1.188 kB / 458.2 MB, free: 11.52 MB / 366.1 MB Notification: Performance of Templates: time 0.02902/0.4148, allocations: 13.87 MB / 472.1 MB, free: 2.168 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.245891354978085]