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.001669/0.001669, allocations: 114.9 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002118/0.002118, allocations: 205.9 kB / 18.74 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.451/1.451, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001798/0.001798, allocations: 55.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.2644, allocations: 50.55 MB / 408.8 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003738/0.2682, allocations: 2.285 MB / 411 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001464/0.2697, allocations: 0.8684 MB / 411.9 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.2698, allocations: 4 kB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002546/0.2701, allocations: 47.59 kB / 412 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000258/0.2704, allocations: 103.2 kB / 412.1 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000221/0.2706, allocations: 91.81 kB / 412.1 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003644/0.271, allocations: 291.4 kB / 412.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001559/0.2711, allocations: 64.34 kB / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002366/0.2714, allocations: 131.5 kB / 412.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000216/0.2716, allocations: 135.5 kB / 412.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.998e-05/0.2716, allocations: 24 kB / 412.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000154/0.2718, allocations: 79.97 kB / 412.9 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.542e-05/0.2719, allocations: 51.83 kB / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001188/0.272, allocations: 123.4 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000415/0.2724, allocations: 313.7 kB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/0.2725, allocations: 4 kB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2725, allocations: 0 / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.2725, allocations: 0 / 413.3 MB, free: 12.96 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.001094/0.2736, allocations: 0.5933 MB / 413.9 MB, free: 12.31 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.2736, allocations: 16.03 kB / 413.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.679e-05/0.2737, allocations: 50.73 kB / 414 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001645/0.2739, allocations: 36.78 kB / 414 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000364/0.2742, allocations: 249.7 kB / 414.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.131e-05/0.2743, allocations: 12.38 kB / 414.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.01e-05/0.2743, allocations: 20.38 kB / 414.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004767/0.2748, allocations: 239 kB / 414.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.2748, allocations: 0 / 414.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.65e-05/0.2749, allocations: 11.98 kB / 414.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.387e-06/0.2749, allocations: 4 kB / 414.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004936/0.2754, allocations: 171.9 kB / 414.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001036/0.2764, allocations: 0.6604 MB / 415.4 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000566/0.277, allocations: 206.3 kB / 415.6 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002406/0.2773, allocations: 96.81 kB / 415.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.567e-05/0.2773, allocations: 8 kB / 415.7 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003816/0.2777, allocations: 167.2 kB / 415.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.704e-06/0.2777, allocations: 3.938 kB / 415.9 MB, free: 10.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.002531/0.2802, allocations: 1.16 MB / 417 MB, free: 8.973 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.225e-05/0.2803, allocations: 59.34 kB / 417.1 MB, free: 8.902 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002221/0.2805, allocations: 194.8 kB / 417.3 MB, free: 8.699 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.362e-05/0.2806, allocations: 33.7 kB / 417.3 MB, free: 8.66 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.738e-05/0.2807, allocations: 136.5 kB / 417.4 MB, free: 8.523 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.922e-05/0.2808, allocations: 95.2 kB / 417.5 MB, free: 8.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.2809, allocations: 57.69 kB / 417.6 MB, free: 8.367 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.281, allocations: 334.8 kB / 417.9 MB, free: 8.031 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002588/0.2813, allocations: 103.9 kB / 418 MB, free: 7.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000284/0.2816, allocations: 144.9 kB / 418.1 MB, free: 7.777 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004959/0.2821, allocations: 242.6 kB / 418.4 MB, free: 7.523 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2821, allocations: 0 / 418.4 MB, free: 7.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008495/0.2829, allocations: 369.8 kB / 418.7 MB, free: 7.148 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.706e-05/0.283, allocations: 45.62 kB / 418.8 MB, free: 7.098 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.283, allocations: 4.062 kB / 418.8 MB, free: 7.094 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000202/0.2832, allocations: 56.78 kB / 418.9 MB, free: 7.035 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002131/0.2834, allocations: 51.95 kB / 418.9 MB, free: 6.984 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001914/0.2854, allocations: 1.802 MB / 420.7 MB, free: 5.039 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002638/0.2856, allocations: 40.05 kB / 420.7 MB, free: 5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.255e-05/0.2857, allocations: 8 kB / 420.8 MB, free: 4.992 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.0001591/0.2858, allocations: 138 kB / 420.9 MB, free: 4.848 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.719e-05/0.2859, allocations: 27.84 kB / 420.9 MB, free: 4.82 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.722e-05/0.286, allocations: 34.5 kB / 420.9 MB, free: 4.789 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.286, allocations: 4 kB / 421 MB, free: 4.785 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.286, allocations: 3.938 kB / 421 MB, free: 4.781 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.286, allocations: 7.984 kB / 421 MB, free: 4.773 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001183/0.2872, allocations: 0.6791 MB / 421.6 MB, free: 4.035 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.2872, allocations: 0 / 421.6 MB, free: 4.035 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002166/0.2874, allocations: 39.97 kB / 421.7 MB, free: 3.996 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001443/0.2876, allocations: 64.7 kB / 421.7 MB, free: 3.93 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.864e-05/0.2876, allocations: 4 kB / 421.7 MB, free: 3.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001658/0.2893, allocations: 1.657 MB / 423.4 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.2893, allocations: 0 / 423.4 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001014/0.2903, allocations: 0.5055 MB / 423.9 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001298/0.2904, allocations: 121 kB / 424 MB, free: 1.465 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.463e-05/0.2905, allocations: 4 kB / 424 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000239/0.2907, allocations: 31.89 kB / 424.1 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001831/0.2909, allocations: 71.89 kB / 424.1 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-05/0.291, allocations: 16 kB / 424.1 MB, free: 1.344 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001641/0.2911, allocations: 143.6 kB / 424.3 MB, free: 1.203 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2911, allocations: 0 / 424.3 MB, free: 1.203 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00042/0.2916, allocations: 83.92 kB / 424.4 MB, free: 1.121 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.002549/0.2941, allocations: 1.298 MB / 425.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000974/0.2951, allocations: 441.7 kB / 426.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2951, allocations: 0 / 426.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004721/0.2956, allocations: 270.6 kB / 426.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004282/0.296, allocations: 60.55 kB / 426.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004326/0.3004, allocations: 2.832 MB / 429.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005908/0.301, allocations: 0.748 MB / 430 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001147/0.3011, allocations: 17.95 kB / 430 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000131/0.3013, allocations: 71.41 kB / 430.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3013, allocations: 0 / 430.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03443/0.3357, allocations: 7.116 MB / 437.2 MB, free: 4.363 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.13, allocations: 19.11 kB / 437.2 MB, free: 4.348 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.1.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