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.001344/0.001344, allocations: 112.5 kB / 21.19 MB, free: 0.7617 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.001837/0.001837, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.447/1.447, allocations: 230.6 MB / 258.3 MB, free: 7.984 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.001695/0.001695, allocations: 51.92 kB / 379 MB, free: 2.633 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.2725, allocations: 53.36 MB / 432.4 MB, free: 6.926 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.005816/0.2784, allocations: 3.271 MB / 435.7 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002721/0.2811, allocations: 1.271 MB / 436.9 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004627/0.2815, allocations: 7.938 kB / 436.9 MB, free: 2.359 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004906/0.282, allocations: 103 kB / 437 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008056/0.2828, allocations: 218.4 kB / 437.2 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000719/0.2836, allocations: 279.5 kB / 437.5 MB, free: 1.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001027/0.2846, allocations: 0.8465 MB / 438.4 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002269/0.2848, allocations: 102.2 kB / 438.5 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005898/0.2854, allocations: 394.8 kB / 438.9 MB, free: 440 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005556/0.286, allocations: 414.6 kB / 439.3 MB, free: 24 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001241/0.2861, allocations: 64.05 kB / 439.3 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002465/0.2863, allocations: 123.9 kB / 439.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002382/0.2866, allocations: 183.5 kB / 439.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003358/0.2869, allocations: 322.5 kB / 439.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009923/0.2879, allocations: 0.7989 MB / 440.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.2879, allocations: 0 / 440.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2879, allocations: 0 / 440.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.748e-06/0.2879, allocations: 0 / 440.7 MB, free: 14.55 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.001913/0.2898, allocations: 0.8941 MB / 441.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.2899, allocations: 8.031 kB / 441.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003309/0.2902, allocations: 80.55 kB / 441.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006682/0.2909, allocations: 332.4 kB / 442 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.002e-05/0.2909, allocations: 37.38 kB / 442.1 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/0.291, allocations: 52.33 kB / 442.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001215/0.2922, allocations: 0.623 MB / 442.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.245e-05/0.2923, allocations: 0 / 442.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.625e-05/0.2923, allocations: 20 kB / 442.8 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/0.2923, allocations: 15.98 kB / 442.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/0.2936, allocations: 0.5855 MB / 443.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002588/0.2962, allocations: 1.321 MB / 444.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/0.2973, allocations: 478.3 kB / 445.2 MB, free: 9.992 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006133/0.2979, allocations: 294.7 kB / 445.4 MB, free: 9.703 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.385e-05/0.298, allocations: 8.641 kB / 445.5 MB, free: 9.695 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.76e-05/0.2981, allocations: 43.22 kB / 445.5 MB, free: 9.641 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 1.994e-06/0.2981, allocations: 0 / 445.5 MB, free: 9.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.006746/0.3048, allocations: 2.532 MB / 448 MB, free: 7.066 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.612e-05/0.3049, allocations: 60.06 kB / 448.1 MB, free: 6.996 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004775/0.3053, allocations: 357.6 kB / 448.4 MB, free: 6.641 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.961e-05/0.3054, allocations: 57.62 kB / 448.5 MB, free: 6.578 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001711/0.3056, allocations: 193.6 kB / 448.7 MB, free: 6.383 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002497/0.3058, allocations: 265.9 kB / 448.9 MB, free: 6.121 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002422/0.3061, allocations: 134.6 kB / 449.1 MB, free: 5.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000195/0.3063, allocations: 366.8 kB / 449.4 MB, free: 5.613 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006398/0.3069, allocations: 305.8 kB / 449.7 MB, free: 5.316 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007157/0.3076, allocations: 373.4 kB / 450.1 MB, free: 4.949 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001029/0.3087, allocations: 497 kB / 450.6 MB, free: 4.453 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.3087, allocations: 0 / 450.6 MB, free: 4.453 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00204/0.3107, allocations: 0.9235 MB / 451.5 MB, free: 3.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.414e-05/0.3107, allocations: 12.03 kB / 451.5 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.3107, allocations: 0 / 451.5 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001405/0.3121, allocations: 0.5707 MB / 452.1 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003712/0.3125, allocations: 103.8 kB / 452.2 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00167/0.3142, allocations: 1.102 MB / 453.3 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007127/0.3149, allocations: 111.9 kB / 453.4 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.651e-05/0.3149, allocations: 23.98 kB / 453.4 MB, free: 1.57 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.0003323/0.3153, allocations: 195.7 kB / 453.6 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001497/0.3154, allocations: 59.62 kB / 453.7 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000194/0.3156, allocations: 77.09 kB / 453.7 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.3156, allocations: 8 kB / 453.8 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/0.3156, allocations: 0 / 453.8 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.3156, allocations: 3.984 kB / 453.8 MB, free: 1.223 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003044/0.3187, allocations: 1.582 MB / 455.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.3187, allocations: 0 / 455.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004272/0.3191, allocations: 83.89 kB / 455.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001341/0.3205, allocations: 0.5395 MB / 456 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-05/0.3205, allocations: 23.97 kB / 456 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001687/0.3222, allocations: 1.073 MB / 457.1 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3222, allocations: 0 / 457.1 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002743/0.325, allocations: 1.304 MB / 458.4 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003386/0.3253, allocations: 131.5 kB / 458.5 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001391/0.3254, allocations: 27.98 kB / 458.5 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006498/0.3261, allocations: 95.88 kB / 458.6 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002859/0.3264, allocations: 136.4 kB / 458.7 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.982e-05/0.3264, allocations: 31.97 kB / 458.8 MB, free: 12.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003699/0.3268, allocations: 259.1 kB / 459 MB, free: 11.85 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3268, allocations: 0 / 459 MB, free: 11.85 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006038/0.3274, allocations: 156 kB / 459.2 MB, free: 11.7 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.001457/0.3289, allocations: 408.3 kB / 459.6 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001824/0.3307, allocations: 0.7231 MB / 460.3 MB, free: 10.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.3307, allocations: 0 / 460.3 MB, free: 10.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009586/0.3317, allocations: 420.5 kB / 460.7 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007708/0.3324, allocations: 119 kB / 460.8 MB, free: 10.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003089/0.3355, allocations: 1.467 MB / 462.3 MB, free: 8.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005407/0.3361, allocations: 0.8596 MB / 463.2 MB, free: 7.789 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001839/0.3362, allocations: 55.41 kB / 463.2 MB, free: 7.734 MB / 366.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3362, allocations: 3.938 kB / 463.2 MB, free: 7.73 MB / 366.1 MB Notification: Performance of Templates: time 0.01635/0.3526, allocations: 9.323 MB / 472.5 MB, free: 14.43 MB / 382.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/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: 7.968836026033387]