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.001838/0.001838, allocations: 115.6 kB / 20.43 MB, free: 1.449 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.002655/0.002655, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.427/1.427, allocations: 230.6 MB / 257.5 MB, free: 8.027 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.00151/0.00151, allocations: 43.92 kB / 377.8 MB, free: 3.176 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.2484, allocations: 53.35 MB / 431.1 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003883/0.2523, allocations: 2.314 MB / 433.4 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001492/0.2538, allocations: 0.8802 MB / 434.3 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001192/0.2539, allocations: 11.94 kB / 434.3 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002686/0.2542, allocations: 55.56 kB / 434.4 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002991/0.2545, allocations: 107.2 kB / 434.5 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002569/0.2548, allocations: 83.83 kB / 434.6 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003841/0.2551, allocations: 287.4 kB / 434.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000141/0.2553, allocations: 44.56 kB / 434.9 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002552/0.2555, allocations: 139.5 kB / 435 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002477/0.2558, allocations: 139.4 kB / 435.2 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.369e-05/0.2558, allocations: 24 kB / 435.2 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001533/0.256, allocations: 75.98 kB / 435.3 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.229e-05/0.2561, allocations: 55.81 kB / 435.3 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001269/0.2562, allocations: 119.4 kB / 435.4 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004319/0.2566, allocations: 315.2 kB / 435.7 MB, free: 2.242 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2566, allocations: 0 / 435.7 MB, free: 2.242 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2566, allocations: 0 / 435.7 MB, free: 2.242 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.2566, allocations: 0 / 435.7 MB, free: 2.242 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.001052/0.2577, allocations: 0.5258 MB / 436.3 MB, free: 1.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.2577, allocations: 11.97 kB / 436.3 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.328e-05/0.2578, allocations: 50.73 kB / 436.3 MB, free: 1.609 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000169/0.258, allocations: 40.73 kB / 436.4 MB, free: 1.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003964/0.2584, allocations: 191.8 kB / 436.6 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.593e-05/0.2584, allocations: 12.38 kB / 436.6 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.376e-05/0.2584, allocations: 16.38 kB / 436.6 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004849/0.2589, allocations: 239.1 kB / 436.8 MB, free: 1.082 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.2589, allocations: 3.938 kB / 436.8 MB, free: 1.078 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.312e-05/0.259, allocations: 12 kB / 436.8 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.259, allocations: 4 kB / 436.8 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000471/0.2595, allocations: 175.9 kB / 437 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001059/0.2605, allocations: 0.6243 MB / 437.6 MB, free: 224 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000568/0.2611, allocations: 200 kB / 437.8 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002524/0.2613, allocations: 92.8 kB / 437.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.849e-05/0.2614, allocations: 4 kB / 437.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003762/0.2617, allocations: 159.2 kB / 438.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.834e-06/0.2617, allocations: 4 kB / 438.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002406/0.2641, allocations: 0.9427 MB / 439 MB, free: 14.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.643e-05/0.2642, allocations: 63.39 kB / 439.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002287/0.2644, allocations: 195.8 kB / 439.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.419e-05/0.2645, allocations: 33.7 kB / 439.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.2646, allocations: 140.5 kB / 439.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.103e-05/0.2646, allocations: 95.22 kB / 439.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.823e-05/0.2647, allocations: 57.69 kB / 439.6 MB, free: 14.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.2649, allocations: 334.8 kB / 439.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002558/0.2652, allocations: 95.95 kB / 440 MB, free: 13.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002896/0.2654, allocations: 143.1 kB / 440.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004836/0.2659, allocations: 242 kB / 440.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.2659, allocations: 0 / 440.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008108/0.2667, allocations: 381.8 kB / 440.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.102e-05/0.2668, allocations: 29.7 kB / 440.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/0.2668, allocations: 4 kB / 440.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002066/0.267, allocations: 60.75 kB / 440.9 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002066/0.2672, allocations: 47.97 kB / 440.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001925/0.2691, allocations: 1.71 MB / 442.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002751/0.2694, allocations: 32 kB / 442.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.469e-05/0.2694, allocations: 12 kB / 442.7 MB, free: 10.9 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.000184/0.2696, allocations: 149.8 kB / 442.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.569e-05/0.2697, allocations: 23.86 kB / 442.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.497e-05/0.2697, allocations: 30.69 kB / 442.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.2697, allocations: 0 / 442.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.2697, allocations: 3.938 kB / 442.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.2697, allocations: 11.92 kB / 442.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001165/0.2709, allocations: 0.6586 MB / 443.5 MB, free: 9.965 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.2709, allocations: 0 / 443.5 MB, free: 9.965 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002212/0.2711, allocations: 39.97 kB / 443.6 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001641/0.2713, allocations: 48.84 kB / 443.6 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.172e-05/0.2713, allocations: 7.984 kB / 443.6 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001653/0.273, allocations: 1.553 MB / 445.2 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.273, allocations: 4.062 kB / 445.2 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001001/0.274, allocations: 0.5012 MB / 445.7 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.74e-05/0.2741, allocations: 39.88 kB / 445.7 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.826e-05/0.2741, allocations: 12 kB / 445.7 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002372/0.2744, allocations: 35.89 kB / 445.8 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001513/0.2745, allocations: 63.88 kB / 445.8 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.157e-05/0.2745, allocations: 15.98 kB / 445.8 MB, free: 7.508 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001418/0.2747, allocations: 144.9 kB / 446 MB, free: 7.367 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2747, allocations: 0 / 446 MB, free: 7.367 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004256/0.2751, allocations: 79.94 kB / 446.1 MB, free: 7.289 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.002541/0.2776, allocations: 1.305 MB / 447.4 MB, free: 6.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009187/0.2786, allocations: 442.6 kB / 447.8 MB, free: 5.633 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.2786, allocations: 0 / 447.8 MB, free: 5.633 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004577/0.279, allocations: 258.5 kB / 448.1 MB, free: 5.367 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004457/0.2795, allocations: 47.56 kB / 448.1 MB, free: 5.324 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004433/0.2839, allocations: 2.822 MB / 450.9 MB, free: 2.395 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003934/0.2843, allocations: 0.7518 MB / 451.7 MB, free: 1.617 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001209/0.2844, allocations: 29.94 kB / 451.7 MB, free: 1.586 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/0.2845, allocations: 75.39 kB / 451.8 MB, free: 1.512 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.2845, allocations: 0 / 451.8 MB, free: 1.512 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05409/0.3386, allocations: 7.438 MB / 459.2 MB, free: 10.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.53/12.87, allocations: 11.42 kB / 459.2 MB, free: 10.16 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: 15.477515254999162]