Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.OneWayClutch,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.OneWayClutch") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,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.OneWayClutch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001058/0.001058, allocations: 117.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001066/0.001066, allocations: 200.7 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 67.88 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2684/0.2697, allocations: 50.54 MB / 409.2 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.00355/0.2733, allocations: 2.266 MB / 411.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001376/0.2747, allocations: 0.8723 MB / 412.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000113/0.2749, allocations: 4 kB / 412.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002749/0.2752, allocations: 51.56 kB / 412.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002965/0.2755, allocations: 107.2 kB / 412.5 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002498/0.2757, allocations: 91.83 kB / 412.6 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003125/0.2761, allocations: 287.4 kB / 412.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001592/0.2762, allocations: 60.34 kB / 413 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002408/0.2765, allocations: 135.5 kB / 413.1 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002021/0.2767, allocations: 139.4 kB / 413.2 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.638e-05/0.2767, allocations: 20 kB / 413.3 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001453/0.2769, allocations: 79.97 kB / 413.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.486e-05/0.277, allocations: 51.83 kB / 413.4 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001378/0.2771, allocations: 123.4 kB / 413.5 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000409/0.2775, allocations: 320.1 kB / 413.8 MB, free: 12.97 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/0.2776, allocations: 0 / 413.8 MB, free: 12.97 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.2776, allocations: 0 / 413.8 MB, free: 12.97 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.2776, allocations: 0 / 413.8 MB, free: 12.97 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001183/0.2788, allocations: 0.586 MB / 414.4 MB, free: 12.33 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.2788, allocations: 8.031 kB / 414.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002096/0.279, allocations: 40.64 kB / 414.4 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004864/0.2795, allocations: 249.5 kB / 414.7 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.759e-05/0.2796, allocations: 16.38 kB / 414.7 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.255e-05/0.2796, allocations: 16.38 kB / 414.7 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004893/0.2801, allocations: 231.3 kB / 414.9 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.278e-05/0.2802, allocations: 11.89 kB / 415 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.393e-05/0.2802, allocations: 12 kB / 415 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.777e-06/0.2802, allocations: 4 kB / 415 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004677/0.2807, allocations: 179.8 kB / 415.1 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00109/0.2818, allocations: 0.6408 MB / 415.8 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005702/0.2824, allocations: 205.2 kB / 416 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002384/0.2826, allocations: 112.7 kB / 416.1 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.941e-05/0.2827, allocations: 7.984 kB / 416.1 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003644/0.283, allocations: 174.5 kB / 416.3 MB, free: 10.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.884e-06/0.2831, allocations: 3.938 kB / 416.3 MB, free: 10.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.002407/0.2855, allocations: 1.156 MB / 417.4 MB, free: 9.051 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.732e-05/0.2855, allocations: 63.41 kB / 417.5 MB, free: 8.977 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002155/0.2858, allocations: 195.4 kB / 417.7 MB, free: 8.773 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.603e-05/0.2858, allocations: 33.7 kB / 417.7 MB, free: 8.734 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.049e-05/0.2859, allocations: 132.3 kB / 417.9 MB, free: 8.602 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.549e-05/0.286, allocations: 94.73 kB / 417.9 MB, free: 8.508 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.95e-05/0.2861, allocations: 53.7 kB / 418 MB, free: 8.449 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.2862, allocations: 330.8 kB / 418.3 MB, free: 8.117 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000267/0.2865, allocations: 107.9 kB / 418.4 MB, free: 8.012 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00027/0.2868, allocations: 140.1 kB / 418.6 MB, free: 7.863 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005073/0.2873, allocations: 242.6 kB / 418.8 MB, free: 7.609 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.2873, allocations: 0 / 418.8 MB, free: 7.609 MB / 334.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008099/0.2881, allocations: 377.6 kB / 419.2 MB, free: 7.227 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.156e-05/0.2882, allocations: 33.7 kB / 419.2 MB, free: 7.188 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.2882, allocations: 0 / 419.2 MB, free: 7.188 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002463/0.2885, allocations: 64.83 kB / 419.3 MB, free: 7.121 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002136/0.2887, allocations: 51.91 kB / 419.3 MB, free: 7.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00201/0.2907, allocations: 1.795 MB / 421.1 MB, free: 5.133 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002444/0.291, allocations: 40.05 kB / 421.2 MB, free: 5.094 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.728e-05/0.291, allocations: 12 kB / 421.2 MB, free: 5.082 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: 11 (signalEngagement.count,$PRE.signalEngagement.count,signalEngagement.T_start,$PRE.signalEngagement.T_start,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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.0001707/0.2912, allocations: 149.7 kB / 421.3 MB, free: 4.93 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.895e-05/0.2912, allocations: 23.72 kB / 421.3 MB, free: 4.906 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.978e-05/0.2913, allocations: 30.55 kB / 421.4 MB, free: 4.879 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.2913, allocations: 4 kB / 421.4 MB, free: 4.875 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.2913, allocations: 3.938 kB / 421.4 MB, free: 4.871 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.2913, allocations: 0 / 421.4 MB, free: 4.871 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001089/0.2924, allocations: 0.6869 MB / 422.1 MB, free: 4.125 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.2924, allocations: 4.062 kB / 422.1 MB, free: 4.121 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000211/0.2926, allocations: 39.97 kB / 422.1 MB, free: 4.082 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001392/0.2928, allocations: 52.83 kB / 422.2 MB, free: 4.027 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.392e-05/0.2928, allocations: 15.98 kB / 422.2 MB, free: 4.012 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001459/0.2943, allocations: 1.653 MB / 423.8 MB, free: 2.215 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.2943, allocations: 400 / 423.8 MB, free: 2.215 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009734/0.2953, allocations: 0.5054 MB / 424.3 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/0.2954, allocations: 116.9 kB / 424.4 MB, free: 1.559 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.424e-05/0.2954, allocations: 4 kB / 424.4 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002302/0.2957, allocations: 31.91 kB / 424.5 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001737/0.2959, allocations: 75.83 kB / 424.5 MB, free: 1.449 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.188e-05/0.2959, allocations: 11.98 kB / 424.6 MB, free: 1.438 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001306/0.296, allocations: 147.2 kB / 424.7 MB, free: 1.293 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.296, allocations: 0 / 424.7 MB, free: 1.293 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000409/0.2965, allocations: 75.94 kB / 424.8 MB, free: 1.219 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 7 ($whenCondition1,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,signalEngagement.T_start,signalEngagement.count) * Number of discrete states: 3 (signalEngagement.count,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0009141/0.2974, allocations: 353.6 kB / 425.1 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008629/0.2982, allocations: 445.7 kB / 425.6 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.2983, allocations: 4 kB / 425.6 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004439/0.2987, allocations: 270.6 kB / 425.8 MB, free: 244 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004072/0.2991, allocations: 55.89 kB / 425.9 MB, free: 192 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001262/0.3004, allocations: 0.6743 MB / 426.6 MB, free: 15.49 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000323/0.3007, allocations: 0.748 MB / 427.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001141/0.3009, allocations: 25.95 kB / 427.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.165e-05/0.301, allocations: 31.42 kB / 427.4 MB, free: 14.65 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.301, allocations: 0 / 427.4 MB, free: 14.65 MB / 350.1 MB Notification: Performance of Templates: time 0.008856/0.3098, allocations: 4.58 MB / 431.9 MB, free: 10.1 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches