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.001481/0.001481, allocations: 113.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001734/0.001735, allocations: 210.7 kB / 19.4 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 55.91 kB / 359.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2401/0.2413, allocations: 50.54 MB / 409.9 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004626/0.246, allocations: 3.243 MB / 413.2 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002159/0.2482, allocations: 1.247 MB / 414.4 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001977/0.2484, allocations: 4 kB / 414.4 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003458/0.2488, allocations: 99.09 kB / 414.5 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004254/0.2492, allocations: 214.4 kB / 414.7 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005153/0.2498, allocations: 271.5 kB / 415 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007635/0.2505, allocations: 0.8544 MB / 415.8 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002391/0.2508, allocations: 141.1 kB / 416 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005067/0.2513, allocations: 386.8 kB / 416.4 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004765/0.2518, allocations: 402.6 kB / 416.7 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001072/0.2519, allocations: 64 kB / 416.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002583/0.2522, allocations: 123.9 kB / 416.9 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001864/0.2524, allocations: 179.4 kB / 417.1 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002683/0.2527, allocations: 322.5 kB / 417.4 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000753/0.2534, allocations: 0.7993 MB / 418.2 MB, free: 9.285 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.2534, allocations: 0 / 418.2 MB, free: 9.285 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2534, allocations: 0 / 418.2 MB, free: 9.285 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.966e-06/0.2535, allocations: 0 / 418.2 MB, free: 9.285 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: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.001847/0.2553, allocations: 0.9429 MB / 419.2 MB, free: 8.293 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.2554, allocations: 8.031 kB / 419.2 MB, free: 8.285 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000335/0.2557, allocations: 84.16 kB / 419.3 MB, free: 8.203 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005421/0.2563, allocations: 405.8 kB / 419.6 MB, free: 7.766 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.592e-05/0.2563, allocations: 37.38 kB / 419.7 MB, free: 7.73 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001082/0.2564, allocations: 44.38 kB / 419.7 MB, free: 7.688 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001142/0.2576, allocations: 0.6113 MB / 420.3 MB, free: 7.062 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.599e-05/0.2576, allocations: 15.89 kB / 420.4 MB, free: 7.047 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.447e-05/0.2577, allocations: 16 kB / 420.4 MB, free: 7.031 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.2577, allocations: 12 kB / 420.4 MB, free: 7.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001235/0.2589, allocations: 0.5894 MB / 421 MB, free: 6.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002307/0.2613, allocations: 1.347 MB / 422.3 MB, free: 5.027 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001063/0.2623, allocations: 0.509 MB / 422.8 MB, free: 4.508 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005952/0.2629, allocations: 310.4 kB / 423.1 MB, free: 4.203 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.148e-05/0.263, allocations: 12.55 kB / 423.1 MB, free: 4.191 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.131e-05/0.263, allocations: 35.12 kB / 423.2 MB, free: 4.145 MB / 334.1 MB Notification: Performance of pre-optimization done (n=67): time 2.575e-06/0.2631, allocations: 0 / 423.2 MB, free: 4.145 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.006708/0.2698, allocations: 2.905 MB / 426.1 MB, free: 1.105 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.55e-05/0.2699, allocations: 60.06 kB / 426.1 MB, free: 1.035 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003998/0.2703, allocations: 361.7 kB / 426.5 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.941e-05/0.2704, allocations: 49.7 kB / 426.5 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001467/0.2705, allocations: 197.3 kB / 426.7 MB, free: 432 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001937/0.2707, allocations: 256.6 kB / 427 MB, free: 172 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000219/0.2709, allocations: 130.6 kB / 427.1 MB, free: 36 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.2711, allocations: 358.7 kB / 427.5 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006117/0.2717, allocations: 309.9 kB / 427.8 MB, free: 15.37 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000645/0.2724, allocations: 373.4 kB / 428.1 MB, free: 15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000964/0.2733, allocations: 496.6 kB / 428.6 MB, free: 14.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.2733, allocations: 0 / 428.6 MB, free: 14.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001974/0.2753, allocations: 0.9467 MB / 429.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.243e-05/0.2754, allocations: 8 kB / 429.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.2754, allocations: 0 / 429.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001307/0.2767, allocations: 0.5824 MB / 430.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003838/0.2771, allocations: 95.83 kB / 430.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001514/0.2786, allocations: 1.092 MB / 431.3 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007657/0.2794, allocations: 115.8 kB / 431.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.666e-05/0.2795, allocations: 23.98 kB / 431.5 MB, free: 11.6 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.0002905/0.2798, allocations: 199.9 kB / 431.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001257/0.2799, allocations: 55.34 kB / 431.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000167/0.2801, allocations: 77.08 kB / 431.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.602e-06/0.2801, allocations: 8 kB / 431.8 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.2801, allocations: 0 / 431.8 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.2801, allocations: 3.984 kB / 431.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002772/0.2829, allocations: 1.638 MB / 433.5 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.2829, allocations: 0 / 433.5 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004269/0.2833, allocations: 87.89 kB / 433.5 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00118/0.2845, allocations: 0.5356 MB / 434.1 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.816e-05/0.2846, allocations: 27.97 kB / 434.1 MB, free: 8.898 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00144/0.2861, allocations: 1.081 MB / 435.2 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2861, allocations: 0 / 435.2 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002519/0.2886, allocations: 1.304 MB / 436.5 MB, free: 6.473 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002788/0.2889, allocations: 200.3 kB / 436.7 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000124/0.289, allocations: 27.94 kB / 436.7 MB, free: 6.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006803/0.2897, allocations: 103.9 kB / 436.8 MB, free: 6.129 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002664/0.29, allocations: 132.4 kB / 436.9 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.566e-05/0.2901, allocations: 31.95 kB / 437 MB, free: 5.965 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002648/0.2903, allocations: 259.1 kB / 437.2 MB, free: 5.711 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2903, allocations: 0 / 437.2 MB, free: 5.711 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005387/0.2909, allocations: 164 kB / 437.4 MB, free: 5.551 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,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008929/0.2918, allocations: 390.2 kB / 437.8 MB, free: 5.277 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00162/0.2934, allocations: 0.7738 MB / 438.5 MB, free: 4.508 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.2934, allocations: 0 / 438.5 MB, free: 4.508 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008447/0.2943, allocations: 428.6 kB / 439 MB, free: 4.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007553/0.295, allocations: 128.5 kB / 439.1 MB, free: 3.969 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002409/0.2975, allocations: 1.444 MB / 440.5 MB, free: 2.488 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003851/0.2979, allocations: 0.8635 MB / 441.4 MB, free: 1.598 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001769/0.2981, allocations: 59.34 kB / 441.4 MB, free: 1.539 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.2981, allocations: 0 / 441.4 MB, free: 1.539 MB / 350.1 MB Notification: Performance of Templates: time 0.01187/0.3099, allocations: 9.279 MB / 450.7 MB, free: 8.277 MB / 366.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 -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