Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001115/0.001115, allocations: 194.1 kB / 17.38 MB, free: 4.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.253/1.253, allocations: 226.5 MB / 244.7 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000815/0.000815, allocations: 103.3 kB / 296.8 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002231/0.0002231, allocations: 8 kB / 356.8 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2078/0.2081, allocations: 51.28 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.002377/0.2105, allocations: 2.777 MB / 410.8 MB, free: 24.92 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001361/0.2119, allocations: 1.134 MB / 411.9 MB, free: 23.79 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000174/0.212, allocations: 4 kB / 411.9 MB, free: 23.78 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002691/0.2123, allocations: 71.48 kB / 412 MB, free: 23.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003104/0.2126, allocations: 192.6 kB / 412.2 MB, free: 23.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003265/0.213, allocations: 183.7 kB / 412.4 MB, free: 23.35 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004766/0.2135, allocations: 0.7218 MB / 413.1 MB, free: 22.62 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001934/0.2137, allocations: 120.8 kB / 413.2 MB, free: 22.5 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003378/0.214, allocations: 338.8 kB / 413.6 MB, free: 22.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003005/0.2143, allocations: 354.7 kB / 413.9 MB, free: 21.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.011e-05/0.2144, allocations: 32 kB / 413.9 MB, free: 21.79 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001703/0.2146, allocations: 91.91 kB / 414 MB, free: 21.7 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001394/0.2147, allocations: 139.5 kB / 414.2 MB, free: 21.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001951/0.2149, allocations: 296.4 kB / 414.4 MB, free: 21.26 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003672/0.2153, allocations: 0.5425 MB / 415 MB, free: 20.72 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.2153, allocations: 0 / 415 MB, free: 20.72 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2153, allocations: 0 / 415 MB, free: 20.72 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.104e-06/0.2153, allocations: 0 / 415 MB, free: 20.72 MB / 298.7 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.001363/0.2167, allocations: 0.8769 MB / 415.9 MB, free: 19.79 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.2167, allocations: 8.031 kB / 415.9 MB, free: 19.79 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002693/0.217, allocations: 88.16 kB / 416 MB, free: 19.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004037/0.2174, allocations: 381.9 kB / 416.3 MB, free: 19.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.095e-05/0.2175, allocations: 37.38 kB / 416.4 MB, free: 19.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.029e-05/0.2176, allocations: 52.27 kB / 416.4 MB, free: 19.2 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009259/0.2185, allocations: 0.6152 MB / 417 MB, free: 18.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.018e-05/0.2185, allocations: 0 / 417 MB, free: 18.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.355e-05/0.2186, allocations: 16 kB / 417.1 MB, free: 18.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.2186, allocations: 12 kB / 417.1 MB, free: 18.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001036/0.2196, allocations: 0.5816 MB / 417.6 MB, free: 17.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001935/0.2216, allocations: 1.387 MB / 419 MB, free: 16.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008761/0.2225, allocations: 0.5088 MB / 419.5 MB, free: 16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004883/0.223, allocations: 318.3 kB / 419.9 MB, free: 15.69 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.083e-05/0.223, allocations: 4.562 kB / 419.9 MB, free: 15.68 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.691e-05/0.2231, allocations: 39.12 kB / 419.9 MB, free: 15.63 MB / 298.7 MB Notification: Performance of pre-optimization done (n=67): time 1.703e-06/0.2231, allocations: 4 kB / 419.9 MB, free: 15.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.005566/0.2286, allocations: 3.002 MB / 422.9 MB, free: 12.49 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.446e-05/0.2287, allocations: 60.06 kB / 423 MB, free: 12.42 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000286/0.229, allocations: 349.7 kB / 423.3 MB, free: 12.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.618e-05/0.229, allocations: 53.7 kB / 423.4 MB, free: 12.01 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.022e-05/0.2291, allocations: 205.3 kB / 423.6 MB, free: 11.81 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000129/0.2293, allocations: 248.6 kB / 423.8 MB, free: 11.56 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.487e-05/0.2293, allocations: 16 kB / 423.8 MB, free: 11.55 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.56e-05/0.2294, allocations: 358.8 kB / 424.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005266/0.23, allocations: 305.9 kB / 424.5 MB, free: 10.89 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000539/0.2305, allocations: 369.4 kB / 424.8 MB, free: 10.52 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008165/0.2313, allocations: 488.7 kB / 425.3 MB, free: 10.04 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.2313, allocations: 7.938 kB / 425.3 MB, free: 10.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001487/0.2328, allocations: 0.9039 MB / 426.2 MB, free: 9.113 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.2329, allocations: 11.88 kB / 426.2 MB, free: 9.102 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.2329, allocations: 0 / 426.2 MB, free: 9.102 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00111/0.234, allocations: 0.5083 MB / 426.7 MB, free: 8.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003283/0.2343, allocations: 99.89 kB / 426.8 MB, free: 8.492 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001144/0.2355, allocations: 1.077 MB / 427.9 MB, free: 7.387 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006236/0.2361, allocations: 151.9 kB / 428.1 MB, free: 7.238 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.919e-05/0.2362, allocations: 23.98 kB / 428.1 MB, free: 7.215 MB / 298.7 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 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 28} Notification: Performance of prepare postOptimizeDAE: time 0.0001986/0.2364, allocations: 188 kB / 428.3 MB, free: 7.023 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.547e-05/0.2365, allocations: 55.34 kB / 428.3 MB, free: 6.969 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001423/0.2366, allocations: 76.97 kB / 428.4 MB, free: 6.891 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.2366, allocations: 8 kB / 428.4 MB, free: 6.883 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-06/0.2366, allocations: 0 / 428.4 MB, free: 6.883 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.2367, allocations: 3.984 kB / 428.4 MB, free: 6.879 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002233/0.2389, allocations: 1.621 MB / 430 MB, free: 5.195 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.2389, allocations: 4 kB / 430 MB, free: 5.191 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003702/0.2393, allocations: 87.89 kB / 430.1 MB, free: 5.105 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009155/0.2402, allocations: 488.6 kB / 430.6 MB, free: 4.625 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.435e-05/0.2403, allocations: 27.91 kB / 430.6 MB, free: 4.598 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001112/0.2414, allocations: 1.058 MB / 431.7 MB, free: 3.516 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2414, allocations: 0 / 431.7 MB, free: 3.516 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002022/0.2434, allocations: 1.311 MB / 433 MB, free: 2.184 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002114/0.2437, allocations: 196.4 kB / 433.2 MB, free: 1.973 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/0.2438, allocations: 24 kB / 433.2 MB, free: 1.949 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005997/0.2444, allocations: 143.9 kB / 433.3 MB, free: 1.809 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002421/0.2446, allocations: 156.3 kB / 433.5 MB, free: 1.656 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.164e-05/0.2447, allocations: 27.95 kB / 433.5 MB, free: 1.629 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002036/0.2449, allocations: 251.2 kB / 433.8 MB, free: 1.387 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2449, allocations: 0 / 433.8 MB, free: 1.387 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004991/0.2454, allocations: 159.9 kB / 433.9 MB, free: 1.23 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.000732/0.2462, allocations: 405.9 kB / 434.3 MB, free: 0.9531 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001366/0.2475, allocations: 0.7622 MB / 435.1 MB, free: 200 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2475, allocations: 0 / 435.1 MB, free: 200 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008009/0.2484, allocations: 432.6 kB / 435.5 MB, free: 15.77 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006637/0.249, allocations: 103 kB / 435.6 MB, free: 15.67 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002482/0.2515, allocations: 1.733 MB / 437.3 MB, free: 13.91 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000378/0.2519, allocations: 0.86 MB / 438.2 MB, free: 13.02 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001552/0.2521, allocations: 43.42 kB / 438.2 MB, free: 12.98 MB / 314.7 MB Notification: Performance of SimCode: time 4.6e-07/0.2521, allocations: 0 / 438.2 MB, free: 12.98 MB / 314.7 MB Notification: Performance of Templates: time 0.01096/0.2631, allocations: 9.041 MB / 447.3 MB, free: 3.949 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches