Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",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.001264/0.001264, allocations: 107.9 kB / 17.06 MB, free: 5.82 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.001215/0.001215, allocations: 195.9 kB / 18 MB, free: 4.965 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.432/1.432, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009151/0.0009151, allocations: 48.06 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.2648, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.004127/0.2689, allocations: 2.213 MB / 402.4 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001485/0.2705, allocations: 0.6894 MB / 403.1 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002228/0.2707, allocations: 0 / 403.1 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002097/0.271, allocations: 39.66 kB / 403.2 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002521/0.2712, allocations: 63.47 kB / 403.2 MB, free: 5.797 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003708/0.2716, allocations: 107.8 kB / 403.3 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003421/0.2719, allocations: 263.4 kB / 403.6 MB, free: 5.434 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000174/0.2721, allocations: 60.36 kB / 403.6 MB, free: 5.375 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002036/0.2723, allocations: 115.5 kB / 403.8 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000219/0.2726, allocations: 119.5 kB / 403.9 MB, free: 5.145 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.097e-05/0.2726, allocations: 20 kB / 403.9 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001438/0.2728, allocations: 67.95 kB / 404 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.713e-05/0.2729, allocations: 51.83 kB / 404 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001123/0.273, allocations: 107.5 kB / 404.1 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003958/0.2734, allocations: 285.8 kB / 404.4 MB, free: 4.625 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.2734, allocations: 0 / 404.4 MB, free: 4.625 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2734, allocations: 0 / 404.4 MB, free: 4.625 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.2734, allocations: 0 / 404.4 MB, free: 4.625 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0008438/0.2743, allocations: 0.5183 MB / 404.9 MB, free: 4.059 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.2743, allocations: 12.03 kB / 404.9 MB, free: 4.047 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.352e-05/0.2744, allocations: 50.73 kB / 405 MB, free: 3.988 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.969e-05/0.2745, allocations: 32.8 kB / 405 MB, free: 3.957 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003624/0.2748, allocations: 236 kB / 405.2 MB, free: 3.688 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.037e-05/0.2749, allocations: 12.81 kB / 405.2 MB, free: 3.676 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.951e-05/0.2749, allocations: 20.38 kB / 405.3 MB, free: 3.656 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004182/0.2753, allocations: 225.8 kB / 405.5 MB, free: 3.418 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.803e-05/0.2754, allocations: 4 kB / 405.5 MB, free: 3.414 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.152e-05/0.2754, allocations: 12 kB / 405.5 MB, free: 3.402 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.2754, allocations: 4 kB / 405.5 MB, free: 3.398 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003325/0.2758, allocations: 165 kB / 405.7 MB, free: 3.238 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001138/0.2769, allocations: 0.7798 MB / 406.4 MB, free: 2.391 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003453/0.2773, allocations: 130.5 kB / 406.6 MB, free: 2.254 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001458/0.2774, allocations: 68.83 kB / 406.6 MB, free: 2.184 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.076e-05/0.2775, allocations: 4 kB / 406.6 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.51e-05/0.2775, allocations: 34.56 kB / 406.7 MB, free: 2.137 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.273e-06/0.2775, allocations: 0 / 406.7 MB, free: 2.137 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.001922/0.2794, allocations: 0.9855 MB / 407.7 MB, free: 1.039 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.427e-05/0.2795, allocations: 59.41 kB / 407.7 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002071/0.2797, allocations: 211.6 kB / 407.9 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.34e-05/0.2797, allocations: 29.7 kB / 408 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.482e-05/0.2798, allocations: 140.3 kB / 408.1 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.168e-05/0.2799, allocations: 79.38 kB / 408.2 MB, free: 0.5 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.079e-05/0.28, allocations: 53.69 kB / 408.2 MB, free: 452 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.2801, allocations: 330.8 kB / 408.6 MB, free: 112 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001642/0.2803, allocations: 83.94 kB / 408.6 MB, free: 28 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002036/0.2805, allocations: 124 kB / 408.8 MB, free: 15.89 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002899/0.2808, allocations: 170.1 kB / 408.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.2808, allocations: 0 / 408.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004941/0.2813, allocations: 292.6 kB / 409.2 MB, free: 15.42 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.2813, allocations: 7.125 kB / 409.2 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.2813, allocations: 4 kB / 409.2 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002542/0.2816, allocations: 76.8 kB / 409.3 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001613/0.2818, allocations: 35.92 kB / 409.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005426/0.2823, allocations: 0.6187 MB / 409.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002012/0.2825, allocations: 24 kB / 410 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.908e-05/0.2826, allocations: 12 kB / 410 MB, free: 14.62 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 (26): * Single equations (assignments): 25 * 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.0001454/0.2827, allocations: 135.1 kB / 410.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.171e-05/0.2828, allocations: 15.91 kB / 410.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.033e-05/0.2828, allocations: 37.86 kB / 410.2 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.2829, allocations: 4 kB / 410.2 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.2829, allocations: 0 / 410.2 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.2829, allocations: 0 / 410.2 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009019/0.2838, allocations: 0.5943 MB / 410.8 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.2838, allocations: 4 kB / 410.8 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001676/0.284, allocations: 43.97 kB / 410.8 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001906/0.2842, allocations: 60.83 kB / 410.9 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.091e-05/0.2842, allocations: 7.984 kB / 410.9 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004655/0.2847, allocations: 0.6109 MB / 411.5 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.2847, allocations: 3.938 kB / 411.5 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006511/0.2853, allocations: 428.3 kB / 411.9 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001372/0.2855, allocations: 113 kB / 412 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.024e-05/0.2855, allocations: 4.141 kB / 412 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001889/0.2857, allocations: 23.98 kB / 412 MB, free: 12.4 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.653e-05/0.2858, allocations: 31.94 kB / 412.1 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.459e-05/0.2859, allocations: 7.938 kB / 412.1 MB, free: 12.36 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001583/0.286, allocations: 152.4 kB / 412.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.286, allocations: 0 / 412.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003451/0.2864, allocations: 60 kB / 412.3 MB, free: 12.16 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 (14): * Single equations (assignments): 13 * 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.0009884/0.2874, allocations: 0.9759 MB / 413.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000514/0.2879, allocations: 203.9 kB / 413.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.2879, allocations: 3.938 kB / 413.5 MB, free: 10.94 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002425/0.2882, allocations: 99.88 kB / 413.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003787/0.2886, allocations: 42.11 kB / 413.6 MB, free: 10.81 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00346/0.292, allocations: 2.657 MB / 416.3 MB, free: 8.035 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002878/0.2923, allocations: 0.7402 MB / 417 MB, free: 7.27 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.691e-05/0.2924, allocations: 17.95 kB / 417 MB, free: 7.25 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.12e-05/0.2925, allocations: 63.41 kB / 417.1 MB, free: 7.188 MB / 334.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2925, allocations: 4 kB / 417.1 MB, free: 7.184 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02772/0.3203, allocations: 5.523 MB / 422.6 MB, free: 1.832 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.5, allocations: 10.39 kB / 422.6 MB, free: 1.824 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_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_OneWayClutchDisengaged.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches