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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001328/0.001329, allocations: 116.1 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001227/0.001227, allocations: 200.7 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.311/1.311, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001992/0.001992, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2934/0.2954, allocations: 50.54 MB / 408.7 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003513/0.299, allocations: 2.285 MB / 411 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001295/0.3003, allocations: 0.8646 MB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.577e-05/0.3004, allocations: 4 kB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002244/0.3006, allocations: 43.59 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002518/0.3009, allocations: 119.2 kB / 412.1 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001996/0.3011, allocations: 79.83 kB / 412.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002979/0.3014, allocations: 299.3 kB / 412.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001481/0.3016, allocations: 64.34 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002166/0.3018, allocations: 135.5 kB / 412.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001779/0.302, allocations: 135.5 kB / 412.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.718e-05/0.302, allocations: 27.94 kB / 412.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001656/0.3022, allocations: 79.97 kB / 412.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.702e-05/0.3023, allocations: 51.83 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001573/0.3025, allocations: 123.4 kB / 413 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004842/0.303, allocations: 309.7 kB / 413.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.303, allocations: 0 / 413.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.303, allocations: 0 / 413.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.303, allocations: 0 / 413.3 MB, free: 12.94 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.001078/0.3041, allocations: 0.6011 MB / 413.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.3042, allocations: 12.03 kB / 413.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.805e-05/0.3042, allocations: 50.72 kB / 414 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001615/0.3044, allocations: 32.8 kB / 414 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003643/0.3048, allocations: 249.7 kB / 414.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.123e-05/0.3048, allocations: 12.38 kB / 414.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.863e-05/0.3048, allocations: 24.38 kB / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004344/0.3053, allocations: 235 kB / 414.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.457e-05/0.3053, allocations: 0 / 414.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.405e-05/0.3053, allocations: 12 kB / 414.5 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.3054, allocations: 4 kB / 414.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004583/0.3058, allocations: 179.9 kB / 414.7 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000902/0.3067, allocations: 0.6487 MB / 415.4 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005414/0.3073, allocations: 214.3 kB / 415.6 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002266/0.3075, allocations: 92.81 kB / 415.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.1e-05/0.3075, allocations: 7.984 kB / 415.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000357/0.3079, allocations: 167.1 kB / 415.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.583e-06/0.3079, allocations: 0 / 415.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.002499/0.3104, allocations: 1.172 MB / 417 MB, free: 8.949 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.081e-05/0.3105, allocations: 55.41 kB / 417.1 MB, free: 8.883 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002297/0.3107, allocations: 191.5 kB / 417.3 MB, free: 8.684 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.513e-05/0.3108, allocations: 37.69 kB / 417.3 MB, free: 8.641 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.559e-05/0.3109, allocations: 128.5 kB / 417.4 MB, free: 8.512 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.199e-05/0.311, allocations: 99.2 kB / 417.5 MB, free: 8.414 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.677e-05/0.3111, allocations: 61.69 kB / 417.6 MB, free: 8.348 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.3113, allocations: 338.8 kB / 417.9 MB, free: 8.008 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003092/0.3116, allocations: 103.9 kB / 418 MB, free: 7.906 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002859/0.3119, allocations: 140.1 kB / 418.1 MB, free: 7.758 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004852/0.3124, allocations: 238.6 kB / 418.4 MB, free: 7.508 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.3124, allocations: 0 / 418.4 MB, free: 7.508 MB / 334.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008004/0.3132, allocations: 381.8 kB / 418.8 MB, free: 7.121 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.676e-05/0.3132, allocations: 33.7 kB / 418.8 MB, free: 7.082 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.3132, allocations: 0 / 418.8 MB, free: 7.082 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002238/0.3135, allocations: 60.77 kB / 418.8 MB, free: 7.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002021/0.3137, allocations: 55.84 kB / 418.9 MB, free: 6.965 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001715/0.3154, allocations: 1.81 MB / 420.7 MB, free: 5.012 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000263/0.3157, allocations: 27.97 kB / 420.7 MB, free: 4.984 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.359e-05/0.3157, allocations: 12 kB / 420.7 MB, free: 4.973 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.0002294/0.316, allocations: 145.9 kB / 420.9 MB, free: 4.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.583e-05/0.316, allocations: 27.8 kB / 420.9 MB, free: 4.793 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.643e-05/0.3161, allocations: 30.62 kB / 420.9 MB, free: 4.766 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.3161, allocations: 12.02 kB / 421 MB, free: 4.754 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.3161, allocations: 3.938 kB / 421 MB, free: 4.75 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.3161, allocations: 0 / 421 MB, free: 4.75 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001158/0.3173, allocations: 0.683 MB / 421.6 MB, free: 4.008 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.329e-06/0.3173, allocations: 0 / 421.6 MB, free: 4.008 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002207/0.3175, allocations: 47.91 kB / 421.7 MB, free: 3.961 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001364/0.3177, allocations: 56.77 kB / 421.7 MB, free: 3.902 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.002e-05/0.3177, allocations: 4 kB / 421.8 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001566/0.3193, allocations: 1.645 MB / 423.4 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3193, allocations: 0 / 423.4 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009538/0.3202, allocations: 0.5094 MB / 423.9 MB, free: 1.582 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000105/0.3203, allocations: 117 kB / 424 MB, free: 1.449 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.698e-05/0.3204, allocations: 8 kB / 424 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002468/0.3206, allocations: 35.91 kB / 424.1 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001519/0.3208, allocations: 71.89 kB / 424.1 MB, free: 1.336 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.9e-05/0.3208, allocations: 11.98 kB / 424.1 MB, free: 1.324 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001381/0.321, allocations: 143.2 kB / 424.3 MB, free: 1.184 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.321, allocations: 0 / 424.3 MB, free: 1.184 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003907/0.3214, allocations: 75.94 kB / 424.4 MB, free: 1.109 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.002074/0.3235, allocations: 1.311 MB / 425.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009608/0.3244, allocations: 449.7 kB / 426.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.3245, allocations: 0 / 426.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004758/0.3249, allocations: 270.5 kB / 426.4 MB, free: 15.15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004438/0.3254, allocations: 58.05 kB / 426.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004094/0.3295, allocations: 2.825 MB / 429.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003986/0.3299, allocations: 0.748 MB / 430 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001241/0.33, allocations: 21.95 kB / 430 MB, free: 11.37 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001371/0.3302, allocations: 71.41 kB / 430.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of SimCode: time 2.445e-06/0.3302, allocations: 0 / 430.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0291/0.3593, allocations: 7.125 MB / 437.2 MB, free: 4.336 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.84, allocations: 4.062 kB / 437.2 MB, free: 4.332 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches