Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_trunk_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_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001026/0.001026, allocations: 116.5 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0011/0.0011, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00114/0.00114, allocations: 55.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2609/0.2621, allocations: 50.54 MB / 409.2 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003808/0.2659, allocations: 2.331 MB / 411.6 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001433/0.2674, allocations: 0.8568 MB / 412.4 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000115/0.2675, allocations: 4 kB / 412.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002647/0.2678, allocations: 55.56 kB / 412.5 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000309/0.2681, allocations: 103.2 kB / 412.6 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001988/0.2683, allocations: 83.83 kB / 412.7 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003267/0.2687, allocations: 275.4 kB / 412.9 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000167/0.2689, allocations: 72.28 kB / 413 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002643/0.2691, allocations: 119.5 kB / 413.1 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001986/0.2693, allocations: 127.5 kB / 413.2 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.863e-05/0.2694, allocations: 20 kB / 413.3 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001501/0.2696, allocations: 75.97 kB / 413.3 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.355e-05/0.2697, allocations: 55.77 kB / 413.4 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.2698, allocations: 119.4 kB / 413.5 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003662/0.2702, allocations: 314.6 kB / 413.8 MB, free: 13.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2702, allocations: 0 / 413.8 MB, free: 13.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.2702, allocations: 0 / 413.8 MB, free: 13.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.2702, allocations: 0 / 413.8 MB, free: 13.02 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0009822/0.2712, allocations: 0.5453 MB / 414.4 MB, free: 12.42 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.238e-05/0.2712, allocations: 8.031 kB / 414.4 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000154/0.2714, allocations: 36.78 kB / 414.4 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004214/0.2718, allocations: 259.9 kB / 414.7 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.892e-05/0.2719, allocations: 12.75 kB / 414.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.392e-05/0.2719, allocations: 24.33 kB / 414.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005056/0.2724, allocations: 211 kB / 414.9 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.2724, allocations: 4 kB / 414.9 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.356e-05/0.2725, allocations: 11.98 kB / 414.9 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.213e-05/0.2725, allocations: 8 kB / 414.9 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003674/0.2729, allocations: 166.9 kB / 415.1 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001385/0.2743, allocations: 0.7625 MB / 415.8 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005325/0.2748, allocations: 150.7 kB / 416 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001766/0.275, allocations: 68.83 kB / 416.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.576e-05/0.275, allocations: 4.344 kB / 416.1 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001671/0.2752, allocations: 38.5 kB / 416.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.623e-06/0.2752, allocations: 3.938 kB / 416.1 MB, free: 10.53 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.002392/0.2776, allocations: 0.9944 MB / 417.1 MB, free: 9.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.414e-05/0.2777, allocations: 59.41 kB / 417.2 MB, free: 9.359 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003262/0.278, allocations: 218.8 kB / 417.4 MB, free: 9.133 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.315e-05/0.2781, allocations: 29.7 kB / 417.4 MB, free: 9.098 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.155e-05/0.2782, allocations: 140.4 kB / 417.5 MB, free: 8.957 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.508e-05/0.2782, allocations: 79.36 kB / 417.6 MB, free: 8.879 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.888e-05/0.2783, allocations: 49.7 kB / 417.7 MB, free: 8.824 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001822/0.2785, allocations: 330.8 kB / 418 MB, free: 8.492 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002471/0.2788, allocations: 71.97 kB / 418.1 MB, free: 8.422 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001666/0.2789, allocations: 111.4 kB / 418.2 MB, free: 8.301 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003803/0.2793, allocations: 155.3 kB / 418.3 MB, free: 8.137 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.2793, allocations: 0 / 418.3 MB, free: 8.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004835/0.2798, allocations: 274.1 kB / 418.6 MB, free: 7.859 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.2799, allocations: 10.81 kB / 418.6 MB, free: 7.852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.2799, allocations: 0 / 418.6 MB, free: 7.852 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000208/0.2801, allocations: 56.83 kB / 418.7 MB, free: 7.793 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001493/0.2802, allocations: 39.97 kB / 418.7 MB, free: 7.754 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00187/0.2821, allocations: 1.823 MB / 420.5 MB, free: 5.797 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001929/0.2823, allocations: 27.91 kB / 420.5 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.776e-05/0.2824, allocations: 8 kB / 420.5 MB, free: 5.762 MB / 334.1 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 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward) * 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 (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 {(1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001756/0.2825, allocations: 129.8 kB / 420.7 MB, free: 5.625 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.342e-05/0.2826, allocations: 27.8 kB / 420.7 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.607e-05/0.2827, allocations: 29.86 kB / 420.7 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.2827, allocations: 4.062 kB / 420.7 MB, free: 5.559 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.2827, allocations: 4 kB / 420.7 MB, free: 5.555 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.2827, allocations: 0 / 420.7 MB, free: 5.555 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000871/0.2836, allocations: 0.613 MB / 421.4 MB, free: 4.875 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-06/0.2836, allocations: 0 / 421.4 MB, free: 4.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001687/0.2838, allocations: 39.97 kB / 421.4 MB, free: 4.836 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002053/0.284, allocations: 52.83 kB / 421.4 MB, free: 4.781 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.492e-05/0.284, allocations: 4 kB / 421.4 MB, free: 4.777 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001919/0.2859, allocations: 1.657 MB / 423.1 MB, free: 2.984 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/0.286, allocations: 8.094 kB / 423.1 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006893/0.2867, allocations: 434.3 kB / 423.5 MB, free: 2.527 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.537e-05/0.2868, allocations: 112.9 kB / 423.6 MB, free: 2.398 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.197e-05/0.2868, allocations: 8 kB / 423.7 MB, free: 2.391 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001816/0.287, allocations: 19.92 kB / 423.7 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000152/0.2871, allocations: 67.91 kB / 423.7 MB, free: 2.305 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.537e-05/0.2872, allocations: 11.98 kB / 423.8 MB, free: 2.293 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001475/0.2873, allocations: 152.6 kB / 423.9 MB, free: 2.145 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2873, allocations: 4 kB / 423.9 MB, free: 2.141 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003671/0.2877, allocations: 71.88 kB / 424 MB, free: 2.07 MB / 334.1 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 (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 {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008083/0.2885, allocations: 354.7 kB / 424.3 MB, free: 1.828 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000642/0.2892, allocations: 318.6 kB / 424.6 MB, free: 1.504 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/0.2892, allocations: 0 / 424.6 MB, free: 1.504 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003277/0.2895, allocations: 242.6 kB / 424.9 MB, free: 1.254 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005153/0.29, allocations: 39.86 kB / 424.9 MB, free: 1.215 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001409/0.2915, allocations: 0.6951 MB / 425.6 MB, free: 500 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003496/0.2918, allocations: 0.748 MB / 426.4 MB, free: 15.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.774e-05/0.2919, allocations: 25.92 kB / 426.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.837e-05/0.292, allocations: 19.44 kB / 426.4 MB, free: 15.66 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.292, allocations: 4 kB / 426.4 MB, free: 15.66 MB / 350.1 MB Notification: Performance of Templates: time 0.007717/0.2997, allocations: 3.972 MB / 430.4 MB, free: 11.72 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches