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.001958/0.001958, allocations: 111.1 kB / 20.44 MB, free: 1.199 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.002064/0.002064, allocations: 208.2 kB / 23.72 MB, free: 4.41 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.463/1.463, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.00162/0.00162, allocations: 51.92 kB / 377.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2442, allocations: 53.37 MB / 431.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003628/0.2478, allocations: 2.186 MB / 433.3 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001451/0.2493, allocations: 0.8218 MB / 434.1 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.2494, allocations: 7.938 kB / 434.1 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002403/0.2496, allocations: 51.56 kB / 434.1 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002843/0.2499, allocations: 115.2 kB / 434.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002252/0.2501, allocations: 83.83 kB / 434.3 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003509/0.2505, allocations: 295.4 kB / 434.6 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001415/0.2506, allocations: 40.56 kB / 434.7 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002569/0.2509, allocations: 135.5 kB / 434.8 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002039/0.2511, allocations: 123.4 kB / 434.9 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.771e-05/0.2511, allocations: 20 kB / 434.9 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001674/0.2513, allocations: 79.98 kB / 435 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.209e-05/0.2514, allocations: 59.81 kB / 435.1 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001069/0.2515, allocations: 91.59 kB / 435.2 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004412/0.2519, allocations: 320.5 kB / 435.5 MB, free: 2.207 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.615e-06/0.2519, allocations: 3.984 kB / 435.5 MB, free: 2.203 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2519, allocations: 3.938 kB / 435.5 MB, free: 2.199 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.025e-05/0.2519, allocations: 0 / 435.5 MB, free: 2.199 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.001027/0.253, allocations: 0.5219 MB / 436 MB, free: 1.641 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/0.253, allocations: 8.031 kB / 436 MB, free: 1.633 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.171e-05/0.2531, allocations: 58.73 kB / 436.1 MB, free: 1.566 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001709/0.2532, allocations: 32.78 kB / 436.1 MB, free: 1.535 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003529/0.2536, allocations: 187.8 kB / 436.3 MB, free: 1.324 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.948e-05/0.2536, allocations: 20.38 kB / 436.3 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.676e-05/0.2537, allocations: 16.38 kB / 436.3 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004788/0.2542, allocations: 239 kB / 436.6 MB, free: 1.043 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.811e-05/0.2542, allocations: 3.984 kB / 436.6 MB, free: 1.039 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.229e-05/0.2542, allocations: 4 kB / 436.6 MB, free: 1.035 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.2542, allocations: 15.94 kB / 436.6 MB, free: 1.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004711/0.2547, allocations: 175.9 kB / 436.8 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009809/0.2557, allocations: 0.5854 MB / 437.3 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005701/0.2562, allocations: 186.4 kB / 437.5 MB, free: 24 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002696/0.2565, allocations: 96.8 kB / 437.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.163e-05/0.2565, allocations: 4 kB / 437.6 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003899/0.2569, allocations: 159.3 kB / 437.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.884e-06/0.2569, allocations: 0 / 437.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.00256/0.2595, allocations: 0.9382 MB / 438.7 MB, free: 14.76 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.923e-05/0.2595, allocations: 59.41 kB / 438.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002749/0.2598, allocations: 203.8 kB / 439 MB, free: 14.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.489e-05/0.2598, allocations: 33.7 kB / 439 MB, free: 14.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.2599, allocations: 132.5 kB / 439.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.628e-05/0.26, allocations: 95.2 kB / 439.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/0.2601, allocations: 57.7 kB / 439.3 MB, free: 14.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001834/0.2603, allocations: 338.8 kB / 439.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002988/0.2606, allocations: 125.6 kB / 439.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003104/0.2609, allocations: 172.8 kB / 439.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005138/0.2614, allocations: 238.1 kB / 440.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.2614, allocations: 3.938 kB / 440.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008437/0.2623, allocations: 411.5 kB / 440.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.086e-05/0.2623, allocations: 33.69 kB / 440.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.2623, allocations: 0 / 440.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002051/0.2625, allocations: 60.72 kB / 440.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002143/0.2628, allocations: 47.95 kB / 440.7 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002112/0.2649, allocations: 1.695 MB / 442.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002658/0.2651, allocations: 31.91 kB / 442.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.424e-05/0.2652, allocations: 12 kB / 442.4 MB, free: 10.82 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.0001871/0.2654, allocations: 148.8 kB / 442.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.779e-05/0.2654, allocations: 19.86 kB / 442.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.654e-05/0.2655, allocations: 30.72 kB / 442.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.2655, allocations: 4 kB / 442.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.2655, allocations: 7.922 kB / 442.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.2655, allocations: 3.938 kB / 442.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001176/0.2667, allocations: 0.6275 MB / 443.3 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.2667, allocations: 0 / 443.3 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002246/0.2669, allocations: 43.97 kB / 443.3 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001443/0.267, allocations: 56.77 kB / 443.4 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.123e-05/0.2671, allocations: 4 kB / 443.4 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0016/0.2687, allocations: 1.538 MB / 444.9 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.2687, allocations: 64 / 444.9 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/0.2697, allocations: 0.509 MB / 445.4 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.603e-05/0.2698, allocations: 35.86 kB / 445.4 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.064e-05/0.2698, allocations: 11.98 kB / 445.5 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000241/0.27, allocations: 31.91 kB / 445.5 MB, free: 7.555 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001665/0.2702, allocations: 75.86 kB / 445.6 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.897e-05/0.2702, allocations: 8 kB / 445.6 MB, free: 7.473 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000147/0.2704, allocations: 148.9 kB / 445.7 MB, free: 7.328 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2704, allocations: 0 / 445.7 MB, free: 7.328 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004147/0.2708, allocations: 79.92 kB / 445.8 MB, free: 7.25 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.002706/0.2735, allocations: 1.335 MB / 447.1 MB, free: 6.047 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009403/0.2744, allocations: 460.1 kB / 447.6 MB, free: 5.566 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2744, allocations: 0 / 447.6 MB, free: 5.566 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004568/0.2749, allocations: 258.5 kB / 447.8 MB, free: 5.301 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004418/0.2753, allocations: 51.98 kB / 447.9 MB, free: 5.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004472/0.2798, allocations: 2.942 MB / 450.8 MB, free: 2.172 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001435/0.28, allocations: 138.1 kB / 451 MB, free: 2.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001286/0.2801, allocations: 29.92 kB / 451 MB, free: 1.992 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001713/0.2803, allocations: 71.41 kB / 451.1 MB, free: 1.922 MB / 350.1 MB Notification: Performance of SimCode: time 7.41e-07/0.2803, allocations: 3.938 kB / 451.1 MB, free: 1.918 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04131/0.3216, allocations: 7.634 MB / 458.7 MB, free: 10.37 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.6/12.92, allocations: 3.938 kB / 458.7 MB, free: 10.37 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: 32.191822171676904]