Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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=3000,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_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches") translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,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_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001505/0.001505, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00192/0.00192, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 60.06 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08993/0.09109, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004415/0.09554, allocations: 3.242 MB / 362.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001897/0.09746, allocations: 1.247 MB / 363.4 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001537/0.09762, allocations: 11.94 kB / 363.4 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002971/0.09795, allocations: 91.16 kB / 363.5 MB, free: 8.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004232/0.09838, allocations: 222.4 kB / 363.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004697/0.09886, allocations: 267.5 kB / 364 MB, free: 8.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000713/0.09958, allocations: 0.8427 MB / 364.8 MB, free: 7.402 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002429/0.09984, allocations: 145.1 kB / 365 MB, free: 7.262 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004565/0.1003, allocations: 382.8 kB / 365.3 MB, free: 6.887 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004497/0.1008, allocations: 410.5 kB / 365.7 MB, free: 6.484 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.497e-05/0.1009, allocations: 64 kB / 365.8 MB, free: 6.422 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002216/0.1011, allocations: 120 kB / 365.9 MB, free: 6.305 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002022/0.1013, allocations: 175.5 kB / 366.1 MB, free: 6.133 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002925/0.1016, allocations: 330.3 kB / 366.4 MB, free: 5.809 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008015/0.1024, allocations: 0.7905 MB / 367.2 MB, free: 5.016 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1024, allocations: 4 kB / 367.2 MB, free: 5.012 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1024, allocations: 0 / 367.2 MB, free: 5.012 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.325e-06/0.1025, allocations: 0 / 367.2 MB, free: 5.012 MB / 302.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.001751/0.1042, allocations: 0.9546 MB / 368.2 MB, free: 4.004 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.262e-05/0.1043, allocations: 8.031 kB / 368.2 MB, free: 3.996 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003079/0.1046, allocations: 80.17 kB / 368.2 MB, free: 3.918 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005751/0.1052, allocations: 390 kB / 368.6 MB, free: 3.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.943e-05/0.1052, allocations: 41.38 kB / 368.7 MB, free: 3.457 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.456e-05/0.1053, allocations: 48.28 kB / 368.7 MB, free: 3.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001127/0.1064, allocations: 0.6191 MB / 369.3 MB, free: 2.777 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/0.1065, allocations: 0 / 369.3 MB, free: 2.777 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.838e-05/0.1065, allocations: 20 kB / 369.3 MB, free: 2.758 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.1065, allocations: 12 kB / 369.4 MB, free: 2.746 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001231/0.1078, allocations: 0.5894 MB / 369.9 MB, free: 2.156 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002248/0.11, allocations: 1.347 MB / 371.3 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001033/0.1111, allocations: 0.5067 MB / 371.8 MB, free: 244 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1509/0.262, allocations: 309 kB / 372.1 MB, free: 20.87 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001144/0.2622, allocations: 14.41 kB / 372.1 MB, free: 20.87 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.284e-05/0.2622, allocations: 38.05 kB / 372.2 MB, free: 20.83 MB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 2.906e-06/0.2622, allocations: 0 / 372.2 MB, free: 20.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.006805/0.269, allocations: 2.895 MB / 375 MB, free: 19.51 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.471e-05/0.2691, allocations: 63.28 kB / 375.1 MB, free: 19.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004135/0.2695, allocations: 363.5 kB / 375.5 MB, free: 19.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.274e-05/0.2696, allocations: 53.09 kB / 375.5 MB, free: 19.22 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/0.2697, allocations: 199.2 kB / 375.7 MB, free: 19.06 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001513/0.2698, allocations: 254.2 kB / 376 MB, free: 18.87 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002249/0.2701, allocations: 131.8 kB / 376.1 MB, free: 18.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.096e-05/0.2702, allocations: 357.1 kB / 376.4 MB, free: 18.47 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005913/0.2708, allocations: 310.4 kB / 376.7 MB, free: 18.35 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006251/0.2714, allocations: 369.3 kB / 377.1 MB, free: 18.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008986/0.2723, allocations: 496.6 kB / 377.6 MB, free: 17.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.2723, allocations: 1.219 kB / 377.6 MB, free: 17.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001853/0.2742, allocations: 0.9418 MB / 378.5 MB, free: 17.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.2742, allocations: 7.203 kB / 378.5 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.2742, allocations: 3.75 kB / 378.5 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00134/0.2756, allocations: 0.5724 MB / 379.1 MB, free: 17.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003829/0.276, allocations: 96.69 kB / 379.2 MB, free: 17.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001441/0.2774, allocations: 1.106 MB / 380.3 MB, free: 16.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006857/0.2781, allocations: 105.5 kB / 380.4 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.171e-05/0.2782, allocations: 23.17 kB / 380.4 MB, free: 16.61 MB / 302.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.000254/0.2784, allocations: 205.2 kB / 380.6 MB, free: 16.45 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001189/0.2786, allocations: 53.75 kB / 380.7 MB, free: 16.42 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001686/0.2787, allocations: 75.34 kB / 380.8 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.914e-06/0.2788, allocations: 10.03 kB / 380.8 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/0.2788, allocations: 1.188 kB / 380.8 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/0.2788, allocations: 3.516 kB / 380.8 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002936/0.2817, allocations: 1.638 MB / 382.4 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.2818, allocations: 0 / 382.4 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004195/0.2822, allocations: 89.39 kB / 382.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001236/0.2834, allocations: 0.5318 MB / 383 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.371e-05/0.2835, allocations: 27.14 kB / 383.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00137/0.2849, allocations: 1.069 MB / 384.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.2849, allocations: 4 kB / 384.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002643/0.2875, allocations: 1.321 MB / 385.5 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003135/0.2879, allocations: 194.6 kB / 385.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001182/0.288, allocations: 26.45 kB / 385.7 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006388/0.2886, allocations: 101.8 kB / 385.8 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003474/0.289, allocations: 129.8 kB / 385.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.606e-05/0.2891, allocations: 31.73 kB / 385.9 MB, free: 13.78 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003598/0.2894, allocations: 258 kB / 386.2 MB, free: 13.65 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2895, allocations: 4.141 kB / 386.2 MB, free: 13.65 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008145/0.2903, allocations: 162.5 kB / 386.3 MB, free: 13.62 MB / 302.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.0009757/0.2913, allocations: 389.5 kB / 386.7 MB, free: 13.44 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001872/0.2931, allocations: 0.7742 MB / 387.5 MB, free: 13.17 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.2932, allocations: 0 / 387.5 MB, free: 13.17 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009969/0.2942, allocations: 442 kB / 387.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006951/0.2949, allocations: 124.2 kB / 388.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002538/0.2974, allocations: 1.408 MB / 389.5 MB, free: 12.08 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003841/0.2978, allocations: 0.8602 MB / 390.3 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002023/0.298, allocations: 52.89 kB / 390.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001454/0.2982, allocations: 51.66 kB / 390.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2982, allocations: 0 / 390.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of Templates: time 0.01738/0.3156, allocations: 13.67 MB / 404.1 MB, free: 1.297 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches