Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001558/0.001558, allocations: 202.8 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 226.5 MB / 245.4 MB, free: 6.426 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007834/0.0007832, allocations: 101.6 kB / 297.4 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002329/0.0002329, allocations: 4 kB / 357.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1801/0.1804, allocations: 51.3 MB / 408.7 MB, free: 27.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08332/0.2637, allocations: 80.75 MB / 489.4 MB, free: 10.86 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002004/0.264, allocations: 75.95 kB / 489.5 MB, free: 10.79 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01398/0.278, allocations: 5.663 MB / 495.1 MB, free: 5.129 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.278, allocations: 3.938 kB / 495.2 MB, free: 5.125 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.214e-05/0.278, allocations: 4 kB / 495.2 MB, free: 5.121 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0006259/0.2787, allocations: 0.5068 MB / 495.7 MB, free: 4.559 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.2787, allocations: 12.03 kB / 495.7 MB, free: 4.547 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001401/0.2788, allocations: 36.64 kB / 495.7 MB, free: 4.512 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000253/0.2791, allocations: 247.7 kB / 496 MB, free: 4.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.049e-05/0.2791, allocations: 16.75 kB / 496 MB, free: 4.215 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.704e-05/0.2792, allocations: 20.38 kB / 496 MB, free: 4.195 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003375/0.2795, allocations: 215 kB / 496.2 MB, free: 3.973 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.2796, allocations: 4.188 kB / 496.2 MB, free: 3.969 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.255e-05/0.2796, allocations: 11.94 kB / 496.2 MB, free: 3.957 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.2796, allocations: 4 kB / 496.2 MB, free: 3.953 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002914/0.2799, allocations: 159.2 kB / 496.4 MB, free: 3.801 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009733/0.2809, allocations: 0.7779 MB / 497.2 MB, free: 2.957 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00033/0.2812, allocations: 150.6 kB / 497.3 MB, free: 2.801 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001307/0.2814, allocations: 76.95 kB / 497.4 MB, free: 2.723 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.755e-05/0.2814, allocations: 3.938 kB / 497.4 MB, free: 2.719 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.906e-05/0.2814, allocations: 30.56 kB / 497.4 MB, free: 2.68 MB / 362.7 MB Notification: Performance of pre-optimization done (n=19): time 1.343e-06/0.2814, allocations: 0 / 497.4 MB, free: 2.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.00167/0.2831, allocations: 1.03 MB / 498.4 MB, free: 1.543 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.593e-05/0.2831, allocations: 51.41 kB / 498.5 MB, free: 1.48 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002026/0.2833, allocations: 216.8 kB / 498.7 MB, free: 1.254 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.265e-05/0.2834, allocations: 29.7 kB / 498.7 MB, free: 1.219 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.364e-05/0.2834, allocations: 132.2 kB / 498.9 MB, free: 1.086 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.118e-05/0.2835, allocations: 75 kB / 498.9 MB, free: 1.012 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.266e-05/0.2835, allocations: 4 kB / 498.9 MB, free: 1.008 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.843e-05/0.2836, allocations: 330.8 kB / 499.3 MB, free: 0.6758 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000142/0.2838, allocations: 75.97 kB / 499.3 MB, free: 0.6016 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001558/0.2839, allocations: 103.4 kB / 499.4 MB, free: 500 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002667/0.2842, allocations: 159.3 kB / 499.6 MB, free: 328 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.2842, allocations: 0 / 499.6 MB, free: 328 kB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004467/0.2847, allocations: 278.8 kB / 499.9 MB, free: 40 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.2847, allocations: 7.938 kB / 499.9 MB, free: 32 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.9e-06/0.2847, allocations: 0 / 499.9 MB, free: 32 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001923/0.2849, allocations: 60.88 kB / 499.9 MB, free: 15.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001436/0.2851, allocations: 43.91 kB / 500 MB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001499/0.2866, allocations: 1.639 MB / 0.4899 GB, free: 14.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001802/0.2868, allocations: 36.06 kB / 0.4899 GB, free: 14.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.968e-05/0.2868, allocations: 19.91 kB / 0.4899 GB, free: 14.1 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 24 * 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 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001106/0.2869, allocations: 133.8 kB / 0.49 GB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.355e-05/0.287, allocations: 19.81 kB / 0.4901 GB, free: 13.94 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.739e-05/0.287, allocations: 21.88 kB / 0.4901 GB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.287, allocations: 4.047 kB / 0.4901 GB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.287, allocations: 12 kB / 0.4901 GB, free: 13.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.287, allocations: 3.938 kB / 0.4901 GB, free: 13.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007858/0.2878, allocations: 0.61 MB / 0.4907 GB, free: 13.22 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.2878, allocations: 4.062 kB / 0.4907 GB, free: 13.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001633/0.288, allocations: 35.92 kB / 0.4907 GB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001313/0.2882, allocations: 52.83 kB / 0.4908 GB, free: 13.13 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.003e-05/0.2882, allocations: 11.98 kB / 0.4908 GB, free: 13.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001272/0.2895, allocations: 1.546 MB / 0.4923 GB, free: 11.44 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.2895, allocations: 12.03 kB / 0.4923 GB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006042/0.2901, allocations: 418.2 kB / 0.4927 GB, free: 10.99 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.408e-05/0.2902, allocations: 120.8 kB / 0.4928 GB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.084e-05/0.2902, allocations: 4 kB / 0.4928 GB, free: 10.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001753/0.2904, allocations: 27.97 kB / 0.4929 GB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001351/0.2906, allocations: 71.88 kB / 0.4929 GB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/0.2906, allocations: 4 kB / 0.4929 GB, free: 10.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001339/0.2907, allocations: 160.5 kB / 0.4931 GB, free: 10.59 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2907, allocations: 0 / 0.4931 GB, free: 10.59 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000365/0.2911, allocations: 79.98 kB / 0.4932 GB, free: 10.52 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007128/0.2918, allocations: 381.7 kB / 0.4935 GB, free: 10.26 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005222/0.2924, allocations: 321.1 kB / 0.4938 GB, free: 9.934 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2924, allocations: 0 / 0.4938 GB, free: 9.934 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002796/0.2926, allocations: 222.8 kB / 0.494 GB, free: 9.703 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003745/0.293, allocations: 38.45 kB / 0.4941 GB, free: 9.668 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/0.2943, allocations: 0.8697 MB / 0.4949 GB, free: 8.754 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002472/0.2945, allocations: 0.7443 MB / 0.4957 GB, free: 7.984 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.818e-05/0.2946, allocations: 23.42 kB / 0.4957 GB, free: 7.961 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2946, allocations: 3.938 kB / 0.4957 GB, free: 7.957 MB / 378.7 MB Notification: Performance of Templates: time 0.005263/0.2999, allocations: 3.981 MB / 0.4996 GB, free: 3.984 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches