Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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.001858/0.001858, allocations: 108.6 kB / 21.18 MB, free: 0.7773 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.002331/0.002331, allocations: 197.6 kB / 24.48 MB, free: 4.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.49/1.49, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.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.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001555/0.001555, allocations: 47.92 kB / 371.7 MB, free: 9.395 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2878/0.2894, allocations: 52.19 MB / 423.9 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.005121/0.2945, allocations: 3.134 MB / 427 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002198/0.2967, allocations: 1.048 MB / 428.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001777/0.2969, allocations: 7.938 kB / 428.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002703/0.2971, allocations: 75.25 kB / 428.1 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003614/0.2975, allocations: 166.7 kB / 428.3 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006325/0.2981, allocations: 283.5 kB / 428.6 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000833/0.299, allocations: 0.7919 MB / 429.4 MB, free: 9.223 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002146/0.2992, allocations: 97.56 kB / 429.5 MB, free: 9.121 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004649/0.2996, allocations: 370.9 kB / 429.8 MB, free: 8.758 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005162/0.3002, allocations: 386.7 kB / 430.2 MB, free: 8.379 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.798e-05/0.3003, allocations: 60 kB / 430.3 MB, free: 8.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002207/0.3005, allocations: 115.9 kB / 430.4 MB, free: 8.207 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000196/0.3007, allocations: 163.5 kB / 430.5 MB, free: 8.047 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002977/0.301, allocations: 298.6 kB / 430.8 MB, free: 7.754 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001026/0.302, allocations: 0.7289 MB / 431.6 MB, free: 7.027 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.302, allocations: 0 / 431.6 MB, free: 7.027 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.302, allocations: 0 / 431.6 MB, free: 7.027 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.302, allocations: 0 / 431.6 MB, free: 7.027 MB / 334.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.00176/0.3038, allocations: 0.8205 MB / 432.4 MB, free: 6.176 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.3038, allocations: 8.922 kB / 432.4 MB, free: 6.168 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000126/0.3039, allocations: 60.56 kB / 432.4 MB, free: 6.109 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005873/0.3045, allocations: 314.1 kB / 432.8 MB, free: 5.777 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.242e-05/0.3046, allocations: 29.38 kB / 432.8 MB, free: 5.746 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.88e-05/0.3047, allocations: 60.19 kB / 432.8 MB, free: 5.688 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001142/0.3058, allocations: 0.6152 MB / 433.5 MB, free: 5.059 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.715e-05/0.3058, allocations: 7.938 kB / 433.5 MB, free: 5.051 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.574e-05/0.3059, allocations: 20 kB / 433.5 MB, free: 5.031 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.474e-05/0.3059, allocations: 15.98 kB / 433.5 MB, free: 5.016 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001236/0.3071, allocations: 0.5934 MB / 434.1 MB, free: 4.422 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002441/0.3096, allocations: 1.274 MB / 435.4 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009774/0.3106, allocations: 445 kB / 435.8 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005852/0.3112, allocations: 290.2 kB / 436.1 MB, free: 2.367 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.478e-05/0.3112, allocations: 4.5 kB / 436.1 MB, free: 2.363 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.024e-05/0.3112, allocations: 39.06 kB / 436.1 MB, free: 2.312 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 2.264e-06/0.3112, allocations: 0 / 436.1 MB, free: 2.312 MB / 334.1 MB Notification: Performance of matching and sorting (n=64): time 0.006282/0.3175, allocations: 2.49 MB / 438.6 MB, free: 15.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.458e-05/0.3176, allocations: 60.06 kB / 438.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003932/0.318, allocations: 329.6 kB / 439 MB, free: 15.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.015e-05/0.318, allocations: 45.7 kB / 439 MB, free: 15.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001721/0.3182, allocations: 205.4 kB / 439.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002124/0.3184, allocations: 234.1 kB / 439.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002219/0.3187, allocations: 134.6 kB / 439.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001967/0.3189, allocations: 358.7 kB / 440 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00064/0.3195, allocations: 317.8 kB / 440.3 MB, free: 14.08 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006898/0.3202, allocations: 385 kB / 440.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/0.3212, allocations: 0.5067 MB / 441.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3212, allocations: 0 / 441.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001779/0.323, allocations: 0.9117 MB / 442.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.323, allocations: 8.031 kB / 442.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.323, allocations: 4 kB / 442.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001323/0.3243, allocations: 0.7258 MB / 442.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003943/0.3247, allocations: 107.8 kB / 442.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001524/0.3263, allocations: 1.083 MB / 444 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006598/0.3269, allocations: 107.9 kB / 444.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.787e-05/0.327, allocations: 23.98 kB / 444.1 MB, free: 10.18 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 (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.0003056/0.3273, allocations: 183.7 kB / 444.3 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001073/0.3274, allocations: 51.67 kB / 444.3 MB, free: 9.941 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001728/0.3276, allocations: 72.75 kB / 444.4 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.3276, allocations: 8 kB / 444.4 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.3276, allocations: 0 / 444.4 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.3276, allocations: 8.078 kB / 444.4 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002874/0.3305, allocations: 1.539 MB / 446 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.692e-06/0.3305, allocations: 3.984 kB / 446 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004163/0.3309, allocations: 87.83 kB / 446.1 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001221/0.3321, allocations: 0.6994 MB / 446.8 MB, free: 7.469 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.12e-05/0.3322, allocations: 31.95 kB / 446.8 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001435/0.3336, allocations: 1.065 MB / 447.9 MB, free: 6.348 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3336, allocations: 0 / 447.9 MB, free: 6.348 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0025/0.3361, allocations: 1.292 MB / 449.1 MB, free: 5.035 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002841/0.3364, allocations: 119.6 kB / 449.3 MB, free: 4.918 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001093/0.3365, allocations: 24 kB / 449.3 MB, free: 4.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000602/0.3371, allocations: 99.8 kB / 449.4 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002573/0.3374, allocations: 128.4 kB / 449.5 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.728e-05/0.3374, allocations: 27.97 kB / 449.5 MB, free: 4.645 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002739/0.3377, allocations: 235.2 kB / 449.8 MB, free: 4.414 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3377, allocations: 0 / 449.8 MB, free: 4.414 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005585/0.3382, allocations: 163.9 kB / 449.9 MB, free: 4.254 MB / 350.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.000277/0.3385, allocations: 153.9 kB / 450.1 MB, free: 4.094 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001629/0.3401, allocations: 0.7263 MB / 450.8 MB, free: 3.363 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3401, allocations: 0 / 450.8 MB, free: 3.363 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008447/0.341, allocations: 410 kB / 451.2 MB, free: 2.969 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006364/0.3416, allocations: 93.77 kB / 451.3 MB, free: 2.879 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002752/0.3444, allocations: 1.435 MB / 452.7 MB, free: 1.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004994/0.3449, allocations: 0.8479 MB / 453.6 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001364/0.345, allocations: 47.36 kB / 453.6 MB, free: 500 kB / 350.1 MB Notification: Performance of SimCode: time 7.42e-07/0.345, allocations: 0 / 453.6 MB, free: 500 kB / 350.1 MB Notification: Performance of Templates: time 0.01347/0.3585, allocations: 8.699 MB / 462.3 MB, free: 7.805 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 9.376768155023456]