Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001556/0.001556, allocations: 114.6 kB / 17.07 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001697/0.001697, allocations: 191 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001749/0.001749, allocations: 43.92 kB / 350.8 MB, free: 3.797 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.276, allocations: 49.44 MB / 400.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003413/0.2795, allocations: 2.164 MB / 402.4 MB, free: 6.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001375/0.2809, allocations: 0.7011 MB / 403.1 MB, free: 5.973 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000193/0.2811, allocations: 4 kB / 403.1 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002169/0.2813, allocations: 39.59 kB / 403.1 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002335/0.2816, allocations: 71.47 kB / 403.2 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003943/0.282, allocations: 111.7 kB / 403.3 MB, free: 5.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003724/0.2824, allocations: 271.4 kB / 403.6 MB, free: 5.484 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001504/0.2825, allocations: 52.36 kB / 403.6 MB, free: 5.434 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000228/0.2828, allocations: 127.5 kB / 403.8 MB, free: 5.309 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002093/0.283, allocations: 123.5 kB / 403.9 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.764e-05/0.283, allocations: 20 kB / 403.9 MB, free: 5.168 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001403/0.2832, allocations: 75.94 kB / 404 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.849e-05/0.2833, allocations: 55.77 kB / 404 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001126/0.2834, allocations: 103.5 kB / 404.1 MB, free: 4.938 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003866/0.2838, allocations: 277.9 kB / 404.4 MB, free: 4.668 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.2838, allocations: 4 kB / 404.4 MB, free: 4.664 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.935e-06/0.2838, allocations: 7.922 kB / 404.4 MB, free: 4.656 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.221e-05/0.2839, allocations: 0 / 404.4 MB, free: 4.656 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001073/0.2849, allocations: 0.5585 MB / 405 MB, free: 4.043 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.285, allocations: 12.03 kB / 405 MB, free: 4.031 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.676e-05/0.285, allocations: 50.73 kB / 405 MB, free: 3.973 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.309e-05/0.2851, allocations: 32.73 kB / 405.1 MB, free: 3.941 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003566/0.2855, allocations: 240 kB / 405.3 MB, free: 3.668 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.315e-05/0.2855, allocations: 16.38 kB / 405.3 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.161e-05/0.2856, allocations: 24.38 kB / 405.3 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005/0.2861, allocations: 239.3 kB / 405.6 MB, free: 3.383 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/0.2861, allocations: 3.953 kB / 405.6 MB, free: 3.379 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.795e-05/0.2862, allocations: 12 kB / 405.6 MB, free: 3.367 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.2862, allocations: 4 kB / 405.6 MB, free: 3.363 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005068/0.2867, allocations: 187.8 kB / 405.8 MB, free: 3.18 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001099/0.2878, allocations: 0.6876 MB / 406.5 MB, free: 2.438 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005958/0.2884, allocations: 198.5 kB / 406.6 MB, free: 2.234 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002303/0.2886, allocations: 96.75 kB / 406.7 MB, free: 2.137 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.542e-05/0.2887, allocations: 8 kB / 406.7 MB, free: 2.129 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000365/0.2891, allocations: 163.5 kB / 406.9 MB, free: 1.957 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.953e-06/0.2891, allocations: 0 / 406.9 MB, free: 1.957 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.002486/0.2916, allocations: 1.152 MB / 408.1 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.514e-05/0.2916, allocations: 55.41 kB / 408.1 MB, free: 0.625 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001793/0.2918, allocations: 192 kB / 408.3 MB, free: 436 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.395e-05/0.2918, allocations: 29.7 kB / 408.3 MB, free: 400 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.578e-05/0.2919, allocations: 140.5 kB / 408.5 MB, free: 256 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.755e-05/0.292, allocations: 91.2 kB / 408.6 MB, free: 164 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001012/0.2921, allocations: 65.62 kB / 408.6 MB, free: 92 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.2923, allocations: 330.8 kB / 408.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002816/0.2926, allocations: 120 kB / 409.1 MB, free: 15.64 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002814/0.2929, allocations: 144.9 kB / 409.2 MB, free: 15.48 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004971/0.2934, allocations: 246.7 kB / 409.4 MB, free: 15.23 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.2934, allocations: 0 / 409.4 MB, free: 15.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008462/0.2942, allocations: 398 kB / 409.8 MB, free: 14.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.41e-05/0.2943, allocations: 41.56 kB / 409.9 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.2943, allocations: 4.062 kB / 409.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002562/0.2946, allocations: 68.83 kB / 409.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000219/0.2948, allocations: 55.89 kB / 410 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005027/0.2953, allocations: 0.6071 MB / 410.6 MB, free: 14.01 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002767/0.2956, allocations: 35.97 kB / 410.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.615e-05/0.2956, allocations: 12 kB / 410.7 MB, free: 13.96 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 (32): * Single equations (assignments): 30 * 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.0001513/0.2958, allocations: 145.8 kB / 410.8 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.843e-05/0.2958, allocations: 23.86 kB / 410.8 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.054e-05/0.2959, allocations: 25.88 kB / 410.8 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.2959, allocations: 0 / 410.8 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.2959, allocations: 3.938 kB / 410.8 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.2959, allocations: 11.98 kB / 410.9 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001117/0.2971, allocations: 0.6751 MB / 411.5 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.2971, allocations: 0 / 411.5 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002134/0.2973, allocations: 35.97 kB / 411.6 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001779/0.2975, allocations: 72.77 kB / 411.6 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.18e-05/0.2975, allocations: 7.984 kB / 411.6 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004767/0.298, allocations: 0.6032 MB / 412.3 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.298, allocations: 3.938 kB / 412.3 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000984/0.299, allocations: 0.5092 MB / 412.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001065/0.2991, allocations: 113 kB / 412.9 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.755e-05/0.2992, allocations: 12 kB / 412.9 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002525/0.2994, allocations: 31.95 kB / 412.9 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.847e-05/0.2995, allocations: 31.95 kB / 412.9 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.014e-05/0.2996, allocations: 8 kB / 413 MB, free: 11.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001179/0.2997, allocations: 143.5 kB / 413.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.2997, allocations: 0 / 413.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003563/0.3001, allocations: 71.94 kB / 413.2 MB, free: 11.31 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 (20): * Single equations (assignments): 17 * 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.001418/0.3015, allocations: 1.078 MB / 414.2 MB, free: 10.2 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000928/0.3024, allocations: 332 kB / 414.6 MB, free: 9.863 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3024, allocations: 3.938 kB / 414.6 MB, free: 9.859 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000352/0.3028, allocations: 147.8 kB / 414.7 MB, free: 9.715 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004025/0.3032, allocations: 39.48 kB / 414.8 MB, free: 9.68 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004426/0.3077, allocations: 2.831 MB / 417.6 MB, free: 6.73 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003403/0.308, allocations: 0.7402 MB / 418.3 MB, free: 5.965 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001117/0.3081, allocations: 25.94 kB / 418.4 MB, free: 5.941 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001111/0.3083, allocations: 63.42 kB / 418.4 MB, free: 5.879 MB / 334.1 MB Notification: Performance of SimCode: time 9.31e-07/0.3083, allocations: 0 / 418.4 MB, free: 5.879 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02958/0.3379, allocations: 6.123 MB / 424.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.7, allocations: 3.984 kB / 424.5 MB, free: 15.91 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches