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.001228/0.001228, allocations: 109.8 kB / 17.06 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.001183/0.001183, allocations: 189.4 kB / 18 MB, free: 5.102 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.509/1.509, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001416, allocations: 43.92 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.2641, allocations: 49.45 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003822/0.268, allocations: 2.211 MB / 402.4 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001417/0.2694, allocations: 0.6894 MB / 403.1 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001366/0.2696, allocations: 0 / 403.1 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002116/0.2698, allocations: 43.59 kB / 403.2 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001922/0.27, allocations: 63.47 kB / 403.2 MB, free: 5.789 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003925/0.2704, allocations: 103.8 kB / 403.3 MB, free: 5.688 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003574/0.2708, allocations: 263.4 kB / 403.6 MB, free: 5.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001827/0.271, allocations: 60.36 kB / 403.6 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001898/0.2712, allocations: 111.6 kB / 403.8 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002206/0.2714, allocations: 115.5 kB / 403.9 MB, free: 5.148 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.796e-05/0.2715, allocations: 20 kB / 403.9 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002106/0.2717, allocations: 71.94 kB / 404 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.713e-05/0.2718, allocations: 47.84 kB / 404 MB, free: 5.012 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000126/0.2719, allocations: 111.4 kB / 404.1 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004033/0.2723, allocations: 277.9 kB / 404.4 MB, free: 4.633 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.2723, allocations: 0 / 404.4 MB, free: 4.633 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2723, allocations: 0 / 404.4 MB, free: 4.633 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.2723, allocations: 0 / 404.4 MB, free: 4.633 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.0009229/0.2733, allocations: 0.5329 MB / 404.9 MB, free: 4.055 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.2733, allocations: 8.031 kB / 404.9 MB, free: 4.047 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.212e-05/0.2734, allocations: 54.73 kB / 405 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.289e-05/0.2735, allocations: 24.8 kB / 405 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003899/0.2739, allocations: 232 kB / 405.2 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.149e-05/0.2739, allocations: 16.81 kB / 405.2 MB, free: 3.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.648e-05/0.274, allocations: 20.38 kB / 405.3 MB, free: 3.66 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004663/0.2744, allocations: 233.8 kB / 405.5 MB, free: 3.414 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/0.2745, allocations: 0 / 405.5 MB, free: 3.414 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.421e-05/0.2745, allocations: 8 kB / 405.5 MB, free: 3.406 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.2745, allocations: 4 kB / 405.5 MB, free: 3.402 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003458/0.2749, allocations: 157 kB / 405.7 MB, free: 3.25 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00127/0.2761, allocations: 0.7877 MB / 406.4 MB, free: 2.395 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004079/0.2766, allocations: 130.5 kB / 406.6 MB, free: 2.258 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001464/0.2767, allocations: 72.83 kB / 406.6 MB, free: 2.184 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.343e-05/0.2768, allocations: 3.984 kB / 406.7 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.58e-05/0.2768, allocations: 38.56 kB / 406.7 MB, free: 2.133 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.172e-06/0.2768, allocations: 0 / 406.7 MB, free: 2.133 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.002086/0.2789, allocations: 0.9815 MB / 407.7 MB, free: 1.039 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.398e-05/0.279, allocations: 51.41 kB / 407.7 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002364/0.2792, allocations: 207.6 kB / 407.9 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.743e-05/0.2792, allocations: 33.7 kB / 408 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.2794, allocations: 144.3 kB / 408.1 MB, free: 0.582 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.308e-05/0.2794, allocations: 75.31 kB / 408.2 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.509e-05/0.2795, allocations: 57.7 kB / 408.2 MB, free: 456 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.2797, allocations: 334.8 kB / 408.6 MB, free: 112 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001685/0.2799, allocations: 83.89 kB / 408.6 MB, free: 28 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002223/0.2801, allocations: 112.2 kB / 408.7 MB, free: 15.9 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003284/0.2805, allocations: 182.1 kB / 408.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.2805, allocations: 0 / 408.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005431/0.281, allocations: 288.5 kB / 409.2 MB, free: 15.42 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.281, allocations: 6.5 kB / 409.2 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.2811, allocations: 0 / 409.2 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000274/0.2813, allocations: 76.78 kB / 409.3 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001607/0.2815, allocations: 39.92 kB / 409.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006044/0.2821, allocations: 0.6187 MB / 409.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002124/0.2823, allocations: 24.02 kB / 410 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.103e-05/0.2824, allocations: 8 kB / 410 MB, free: 14.63 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.0001643/0.2825, allocations: 149.9 kB / 410.1 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.547e-05/0.2826, allocations: 15.91 kB / 410.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.583e-05/0.2827, allocations: 25.81 kB / 410.2 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.2827, allocations: 4 kB / 410.2 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.2827, allocations: 0 / 410.2 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.2827, allocations: 3.984 kB / 410.2 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009603/0.2837, allocations: 0.6021 MB / 410.8 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.756e-06/0.2837, allocations: 0 / 410.8 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001594/0.2839, allocations: 27.98 kB / 410.8 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001927/0.2841, allocations: 76.81 kB / 410.9 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.616e-05/0.2841, allocations: 4 kB / 410.9 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005377/0.2846, allocations: 0.6187 MB / 411.5 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.2847, allocations: 4.031 kB / 411.5 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006688/0.2853, allocations: 417.8 kB / 411.9 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001152/0.2855, allocations: 105 kB / 412 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.915e-05/0.2855, allocations: 8 kB / 412 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001845/0.2857, allocations: 23.97 kB / 412 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.346e-05/0.2858, allocations: 19.97 kB / 412.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.472e-05/0.2858, allocations: 4 kB / 412.1 MB, free: 12.38 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001679/0.286, allocations: 156.4 kB / 412.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.286, allocations: 0 / 412.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003697/0.2864, allocations: 68 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.00116/0.2875, allocations: 0.9875 MB / 413.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005708/0.2881, allocations: 199.8 kB / 413.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2881, allocations: 0 / 413.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002487/0.2884, allocations: 107 kB / 413.6 MB, free: 10.85 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004067/0.2888, allocations: 36.17 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.003832/0.2926, allocations: 2.661 MB / 416.3 MB, free: 8.031 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003975/0.2931, allocations: 0.7401 MB / 417 MB, free: 7.266 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.9e-05/0.2932, allocations: 21.95 kB / 417 MB, free: 7.242 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001022/0.2933, allocations: 55.42 kB / 417.1 MB, free: 7.188 MB / 334.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2933, allocations: 0 / 417.1 MB, free: 7.188 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03176/0.325, allocations: 5.519 MB / 422.6 MB, free: 1.84 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/12.02, allocations: 9.516 kB / 422.6 MB, free: 1.836 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