Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001706/0.001706, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002082/0.002082, allocations: 207.5 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.456/1.456, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002187/0.002187, allocations: 43.94 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2684/0.2706, allocations: 53.37 MB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.00377/0.2744, allocations: 2.192 MB / 433.3 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001458/0.2759, allocations: 0.8218 MB / 434.1 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001049/0.276, allocations: 7.938 kB / 434.1 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002459/0.2762, allocations: 55.56 kB / 434.1 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002947/0.2765, allocations: 111.2 kB / 434.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002243/0.2767, allocations: 83.83 kB / 434.3 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003521/0.2771, allocations: 303.3 kB / 434.6 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001444/0.2772, allocations: 40.58 kB / 434.7 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002435/0.2775, allocations: 131.6 kB / 434.8 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000216/0.2777, allocations: 143.4 kB / 434.9 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.449e-05/0.2777, allocations: 20 kB / 435 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001668/0.2779, allocations: 75.98 kB / 435 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.065e-05/0.278, allocations: 59.77 kB / 435.1 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001079/0.2781, allocations: 91.58 kB / 435.2 MB, free: 2.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004119/0.2785, allocations: 320.5 kB / 435.5 MB, free: 2.188 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.2785, allocations: 0 / 435.5 MB, free: 2.188 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2785, allocations: 4 kB / 435.5 MB, free: 2.184 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.2785, allocations: 0 / 435.5 MB, free: 2.184 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.00104/0.2796, allocations: 0.5258 MB / 436 MB, free: 1.621 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.2796, allocations: 12.02 kB / 436 MB, free: 1.609 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.761e-05/0.2796, allocations: 54.73 kB / 436.1 MB, free: 1.547 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001562/0.2798, allocations: 28.8 kB / 436.1 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003754/0.2802, allocations: 199.8 kB / 436.3 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.388e-05/0.2802, allocations: 16.38 kB / 436.3 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.78e-05/0.2803, allocations: 20.31 kB / 436.4 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004769/0.2807, allocations: 243 kB / 436.6 MB, free: 1.012 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.79e-05/0.2807, allocations: 3.938 kB / 436.6 MB, free: 1.008 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.047e-05/0.2808, allocations: 4 kB / 436.6 MB, free: 1.004 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.2808, allocations: 4 kB / 436.6 MB, free: 1 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000473/0.2812, allocations: 183.9 kB / 436.8 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001007/0.2823, allocations: 0.5698 MB / 437.4 MB, free: 208 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005676/0.2828, allocations: 194.3 kB / 437.5 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002483/0.2831, allocations: 92.8 kB / 437.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.706e-05/0.2831, allocations: 4 kB / 437.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003782/0.2835, allocations: 163.3 kB / 437.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.954e-06/0.2835, allocations: 0 / 437.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002517/0.286, allocations: 0.9382 MB / 438.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.566e-05/0.286, allocations: 55.41 kB / 438.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002369/0.2863, allocations: 203.8 kB / 439 MB, free: 14.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.837e-05/0.2863, allocations: 33.7 kB / 439 MB, free: 14.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.99e-05/0.2864, allocations: 132.5 kB / 439.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.666e-05/0.2865, allocations: 99.22 kB / 439.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.962e-05/0.2866, allocations: 57.69 kB / 439.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.2868, allocations: 338.8 kB / 439.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002845/0.287, allocations: 125.6 kB / 439.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003052/0.2873, allocations: 168.8 kB / 439.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005059/0.2879, allocations: 246 kB / 440.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.2879, allocations: 0 / 440.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008316/0.2887, allocations: 403.5 kB / 440.6 MB, free: 12.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.267e-05/0.2887, allocations: 33.7 kB / 440.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.2887, allocations: 3.984 kB / 440.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002193/0.289, allocations: 64.83 kB / 440.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002111/0.2892, allocations: 47.91 kB / 440.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001925/0.2911, allocations: 1.691 MB / 442.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002573/0.2913, allocations: 32.03 kB / 442.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.831e-05/0.2914, allocations: 15.94 kB / 442.4 MB, free: 10.8 MB / 350.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.0001644/0.2915, allocations: 145.7 kB / 442.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.484e-05/0.2916, allocations: 23.86 kB / 442.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.223e-05/0.2916, allocations: 26.66 kB / 442.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.2917, allocations: 4 kB / 442.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.2917, allocations: 3.938 kB / 442.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.2917, allocations: 3.984 kB / 442.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001138/0.2928, allocations: 0.6275 MB / 443.3 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.2928, allocations: 0 / 443.3 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002203/0.293, allocations: 43.95 kB / 443.3 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001422/0.2932, allocations: 48.84 kB / 443.4 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.261e-05/0.2932, allocations: 7.984 kB / 443.4 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001603/0.2948, allocations: 1.55 MB / 444.9 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2948, allocations: 0 / 444.9 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.2958, allocations: 0.513 MB / 445.4 MB, free: 7.605 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.482e-05/0.2959, allocations: 31.92 kB / 445.5 MB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.738e-05/0.296, allocations: 4 kB / 445.5 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002394/0.2962, allocations: 35.89 kB / 445.5 MB, free: 7.535 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000164/0.2964, allocations: 75.86 kB / 445.6 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.918e-05/0.2964, allocations: 8 kB / 445.6 MB, free: 7.453 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001512/0.2965, allocations: 148.9 kB / 445.7 MB, free: 7.309 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2965, allocations: 4 kB / 445.7 MB, free: 7.305 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004168/0.2969, allocations: 75.94 kB / 445.8 MB, free: 7.23 MB / 350.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.002617/0.2996, allocations: 1.337 MB / 447.1 MB, free: 6.023 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009672/0.3005, allocations: 456 kB / 447.6 MB, free: 5.547 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3005, allocations: 0 / 447.6 MB, free: 5.547 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004493/0.301, allocations: 262.6 kB / 447.8 MB, free: 5.277 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004385/0.3014, allocations: 47.42 kB / 447.9 MB, free: 5.234 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004371/0.3058, allocations: 2.929 MB / 450.8 MB, free: 2.172 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001487/0.3059, allocations: 146.1 kB / 451 MB, free: 2.012 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001184/0.3061, allocations: 25.94 kB / 451 MB, free: 1.988 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.3062, allocations: 75.41 kB / 451.1 MB, free: 1.914 MB / 350.1 MB Notification: Performance of SimCode: time 7.42e-07/0.3062, allocations: 0 / 451.1 MB, free: 1.914 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03993/0.3461, allocations: 7.72 MB / 458.8 MB, free: 10.28 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.71/13.06, allocations: 7.812 kB / 458.8 MB, free: 10.27 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable inertiaIn.phi in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv. Warning: Get data of variable inertiaIn.phi from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv failed! Error: Could not read variable inertiaIn.w in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv. Warning: Get data of variable inertiaIn.w from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 33.03116688400041]