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.001526/0.001526, allocations: 198.8 kB / 18.07 MB, free: 3.773 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.541/1.541, allocations: 226.5 MB / 245.4 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007886/0.0007883, allocations: 98.31 kB / 297.4 MB, free: 6.914 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002161/0.0002161, allocations: 8 kB / 357.4 MB, free: 10.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.252/0.2523, allocations: 51.3 MB / 408.7 MB, free: 27.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09165/0.344, allocations: 81.35 MB / 490 MB, free: 10.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002021/0.3442, allocations: 71.97 kB / 490.1 MB, free: 10.22 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04817/0.3924, allocations: 12.59 MB / 0.4909 GB, free: 13.62 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.006e-06/0.3924, allocations: 0 / 0.4909 GB, free: 13.62 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.404e-05/0.3925, allocations: 8 kB / 0.4909 GB, free: 13.61 MB / 378.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.002726/0.3952, allocations: 0.8845 MB / 0.4918 GB, free: 12.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/0.3953, allocations: 8.031 kB / 0.4918 GB, free: 12.67 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004896/0.3958, allocations: 84.27 kB / 0.4918 GB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007918/0.3966, allocations: 378 kB / 0.4922 GB, free: 12.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.73e-05/0.3967, allocations: 41.38 kB / 0.4922 GB, free: 12.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001567/0.3969, allocations: 48.28 kB / 0.4923 GB, free: 12.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00199/0.3989, allocations: 0.6078 MB / 0.4929 GB, free: 11.47 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.424e-05/0.3989, allocations: 192 / 0.4929 GB, free: 11.47 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001053/0.399, allocations: 27.94 kB / 0.4929 GB, free: 11.44 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.512e-05/0.3991, allocations: 15.94 kB / 0.4929 GB, free: 11.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002446/0.4015, allocations: 0.5777 MB / 0.4935 GB, free: 10.85 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004684/0.4063, allocations: 1.406 MB / 0.4949 GB, free: 9.383 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002102/0.4084, allocations: 0.5049 MB / 0.4954 GB, free: 8.867 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001219/0.4097, allocations: 310.4 kB / 0.4957 GB, free: 8.562 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.101e-05/0.4098, allocations: 12.56 kB / 0.4957 GB, free: 8.551 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.205e-05/0.4098, allocations: 39.12 kB / 0.4957 GB, free: 8.504 MB / 378.7 MB Notification: Performance of pre-optimization done (n=67): time 5.57e-06/0.4099, allocations: 0 / 0.4957 GB, free: 8.504 MB / 378.7 MB Notification: Performance of matching and sorting (n=73): time 0.01254/0.4224, allocations: 2.983 MB / 0.4986 GB, free: 5.379 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.676e-05/0.4225, allocations: 60.05 kB / 0.4987 GB, free: 5.309 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007019/0.4232, allocations: 353.6 kB / 0.499 GB, free: 4.953 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001268/0.4234, allocations: 49.7 kB / 0.4991 GB, free: 4.898 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001854/0.4236, allocations: 197.4 kB / 0.4992 GB, free: 4.703 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000342/0.4239, allocations: 256.5 kB / 0.4995 GB, free: 4.449 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.742e-05/0.424, allocations: 12 kB / 0.4995 GB, free: 4.438 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001946/0.4242, allocations: 358.8 kB / 0.4998 GB, free: 4.078 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0012/0.4255, allocations: 305.9 kB / 0.5001 GB, free: 3.777 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001258/0.4267, allocations: 373.4 kB / 0.5005 GB, free: 3.41 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001484/0.4282, allocations: 492.7 kB / 0.501 GB, free: 2.922 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.4283, allocations: 7.938 kB / 0.501 GB, free: 2.914 MB / 378.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003066/0.4313, allocations: 0.904 MB / 0.5019 GB, free: 2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.379e-05/0.4314, allocations: 4 kB / 0.5019 GB, free: 1.996 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.4314, allocations: 4.031 kB / 0.5019 GB, free: 1.992 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002238/0.4337, allocations: 0.5043 MB / 0.5024 GB, free: 1.484 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000701/0.4344, allocations: 95.89 kB / 0.5024 GB, free: 1.391 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002272/0.4367, allocations: 1.085 MB / 0.5035 GB, free: 284 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001334/0.438, allocations: 159.8 kB / 0.5037 GB, free: 124 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.588e-05/0.4381, allocations: 20 kB / 0.5037 GB, free: 104 kB / 378.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.2457/0.6839, allocations: 183.8 kB / 0.5038 GB, free: 94.29 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001823/0.6841, allocations: 51.5 kB / 0.5039 GB, free: 94.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001986/0.6843, allocations: 75.89 kB / 0.504 GB, free: 94.28 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.218e-05/0.6843, allocations: 7.156 kB / 0.504 GB, free: 94.28 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.6843, allocations: 0.6875 kB / 0.504 GB, free: 94.28 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.6843, allocations: 3.844 kB / 0.504 GB, free: 94.28 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002994/0.6873, allocations: 1.617 MB / 0.5056 GB, free: 93.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.6874, allocations: 1.906 kB / 0.5056 GB, free: 93.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004142/0.6878, allocations: 95.17 kB / 0.5057 GB, free: 93.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001026/0.6888, allocations: 476.1 kB / 0.5061 GB, free: 93.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.523e-05/0.6889, allocations: 26.72 kB / 0.5061 GB, free: 93.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001246/0.6901, allocations: 1.056 MB / 0.5072 GB, free: 93.43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.6902, allocations: 1.281 kB / 0.5072 GB, free: 93.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002286/0.6925, allocations: 1.301 MB / 0.5084 GB, free: 93.27 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002742/0.6927, allocations: 209.7 kB / 0.5086 GB, free: 93.17 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001141/0.6929, allocations: 27.31 kB / 0.5087 GB, free: 93.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007221/0.6936, allocations: 139.2 kB / 0.5088 GB, free: 93.17 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002968/0.6939, allocations: 159.9 kB / 0.5089 GB, free: 93.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.183e-05/0.694, allocations: 24.77 kB / 0.509 GB, free: 93.17 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003353/0.6943, allocations: 248.8 kB / 0.5092 GB, free: 93.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.6943, allocations: 0 / 0.5092 GB, free: 93.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006966/0.695, allocations: 168.7 kB / 0.5094 GB, free: 93.09 MB / 378.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.0008483/0.6959, allocations: 403.6 kB / 0.5098 GB, free: 92.96 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001584/0.6975, allocations: 0.7742 MB / 0.5105 GB, free: 92.78 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.6975, allocations: 0 / 0.5105 GB, free: 92.78 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007653/0.6983, allocations: 428.4 kB / 0.5109 GB, free: 92.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007045/0.699, allocations: 108.4 kB / 0.511 GB, free: 92.61 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002179/0.7012, allocations: 1.746 MB / 0.5127 GB, free: 91.58 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000226/0.7014, allocations: 0.8558 MB / 0.5136 GB, free: 90.87 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001738/0.7016, allocations: 45.98 kB / 0.5136 GB, free: 90.86 MB / 378.7 MB Notification: Performance of SimCode: time 5.61e-07/0.7016, allocations: 0 / 0.5136 GB, free: 90.86 MB / 378.7 MB Notification: Performance of Templates: time 0.01018/0.7118, allocations: 9.102 MB / 0.5225 GB, free: 87.41 MB / 378.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/jenkins1/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