Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.008995/0.008995, allocations: 107.9 kB / 21.97 MB, free: 5.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002041/0.002041, allocations: 218.2 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.47/1.47, allocations: 230.6 MB / 259 MB, free: 8.035 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001955/0.001955, allocations: 67.91 kB / 379.8 MB, free: 2.672 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.2775, allocations: 53.37 MB / 433.2 MB, free: 6.988 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.005004/0.2825, allocations: 3.275 MB / 436.4 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002363/0.2848, allocations: 1.271 MB / 437.7 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001926/0.285, allocations: 7.938 kB / 437.7 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000349/0.2854, allocations: 99.09 kB / 437.8 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004542/0.2858, allocations: 222.4 kB / 438 MB, free: 2.102 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005407/0.2864, allocations: 267.5 kB / 438.3 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009101/0.2873, allocations: 0.8581 MB / 439.2 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002293/0.2875, allocations: 97.56 kB / 439.3 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006055/0.2881, allocations: 398.8 kB / 439.6 MB, free: 500 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005602/0.2887, allocations: 414.6 kB / 440 MB, free: 84 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001026/0.2888, allocations: 64 kB / 440.1 MB, free: 20 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002655/0.2891, allocations: 120 kB / 440.2 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000225/0.2893, allocations: 183.4 kB / 440.4 MB, free: 15.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003322/0.2896, allocations: 326.5 kB / 440.7 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009396/0.2906, allocations: 0.7989 MB / 441.5 MB, free: 14.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2906, allocations: 0 / 441.5 MB, free: 14.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2906, allocations: 4 kB / 441.5 MB, free: 14.6 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.2906, allocations: 0 / 441.5 MB, free: 14.6 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.001912/0.2925, allocations: 0.8902 MB / 442.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.2925, allocations: 8.031 kB / 442.4 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003334/0.2929, allocations: 80.55 kB / 442.5 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007092/0.2936, allocations: 336.4 kB / 442.8 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.992e-05/0.2936, allocations: 41.38 kB / 442.9 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/0.2937, allocations: 48.33 kB / 442.9 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00124/0.295, allocations: 0.619 MB / 443.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.696e-05/0.295, allocations: 8 kB / 443.5 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.524e-05/0.295, allocations: 19.94 kB / 443.6 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.2951, allocations: 8 kB / 443.6 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001344/0.2964, allocations: 0.5894 MB / 444.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002563/0.299, allocations: 1.325 MB / 445.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001199/0.3002, allocations: 475 kB / 445.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006468/0.3008, allocations: 298.7 kB / 446.2 MB, free: 9.754 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.466e-05/0.3009, allocations: 8.656 kB / 446.2 MB, free: 9.746 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/0.3009, allocations: 35.22 kB / 446.3 MB, free: 9.699 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.144e-06/0.3009, allocations: 0 / 446.3 MB, free: 9.699 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.006819/0.3077, allocations: 2.528 MB / 448.8 MB, free: 7.129 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.924e-05/0.3078, allocations: 60.06 kB / 448.9 MB, free: 7.059 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004766/0.3083, allocations: 361.6 kB / 449.2 MB, free: 6.699 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.863e-05/0.3083, allocations: 53.69 kB / 449.3 MB, free: 6.641 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001752/0.3085, allocations: 197.6 kB / 449.5 MB, free: 6.441 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002425/0.3088, allocations: 261.9 kB / 449.7 MB, free: 6.184 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002557/0.309, allocations: 134.6 kB / 449.9 MB, free: 6.043 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001998/0.3092, allocations: 362.8 kB / 450.2 MB, free: 5.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006808/0.3099, allocations: 301.9 kB / 450.5 MB, free: 5.387 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007126/0.3106, allocations: 373.4 kB / 450.9 MB, free: 5.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001093/0.3117, allocations: 0.4893 MB / 451.4 MB, free: 4.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3117, allocations: 3.938 kB / 451.4 MB, free: 4.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002197/0.3139, allocations: 0.9391 MB / 452.3 MB, free: 3.566 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.3139, allocations: 8 kB / 452.3 MB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.3139, allocations: 0 / 452.3 MB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001421/0.3154, allocations: 0.5746 MB / 452.9 MB, free: 2.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000395/0.3157, allocations: 99.81 kB / 453 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001692/0.3174, allocations: 1.098 MB / 454.1 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006863/0.3181, allocations: 107.9 kB / 454.2 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.258e-05/0.3182, allocations: 23.98 kB / 454.2 MB, free: 1.629 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.0003316/0.3185, allocations: 199.7 kB / 454.4 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001349/0.3187, allocations: 59.61 kB / 454.5 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001907/0.3188, allocations: 77.09 kB / 454.5 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.3189, allocations: 4 kB / 454.5 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.3189, allocations: 4 kB / 454.5 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.458e-06/0.3189, allocations: 3.984 kB / 454.5 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00316/0.322, allocations: 1.575 MB / 456.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.322, allocations: 0 / 456.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000429/0.3225, allocations: 87.89 kB / 456.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001306/0.3238, allocations: 0.5356 MB / 456.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.695e-05/0.3238, allocations: 27.97 kB / 456.8 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001638/0.3255, allocations: 1.073 MB / 457.8 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3255, allocations: 4 kB / 457.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002728/0.3282, allocations: 1.304 MB / 459.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003154/0.3285, allocations: 123.5 kB / 459.3 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001275/0.3286, allocations: 27.98 kB / 459.3 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006106/0.3293, allocations: 99.88 kB / 459.4 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002989/0.3296, allocations: 136.4 kB / 459.5 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.176e-05/0.3296, allocations: 31.91 kB / 459.6 MB, free: 12.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003195/0.3299, allocations: 263.1 kB / 459.8 MB, free: 11.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3299, allocations: 0 / 459.8 MB, free: 11.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005633/0.3305, allocations: 160 kB / 460 MB, free: 11.75 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.001412/0.3319, allocations: 398.4 kB / 460.4 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001797/0.3337, allocations: 0.7153 MB / 461.1 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3337, allocations: 0 / 461.1 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009166/0.3346, allocations: 416.6 kB / 461.5 MB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007298/0.3354, allocations: 115.4 kB / 461.6 MB, free: 10.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002781/0.3381, allocations: 1.483 MB / 463.1 MB, free: 8.734 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005457/0.3387, allocations: 0.8596 MB / 463.9 MB, free: 7.844 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001647/0.3388, allocations: 51.41 kB / 464 MB, free: 7.793 MB / 366.1 MB Notification: Performance of SimCode: time 1.152e-06/0.3388, allocations: 4 kB / 464 MB, free: 7.789 MB / 366.1 MB Notification: Performance of Templates: time 0.0156/0.3545, allocations: 9.323 MB / 473.3 MB, free: 14.48 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_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: 8.792144800070673]