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.001393/0.001393, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001341/0.001341, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.472/1.472, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.001479/0.001479, allocations: 47.94 kB / 373 MB, free: 10.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1092, allocations: 53.33 MB / 426.3 MB, free: 4.902 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003828/0.113, allocations: 2.298 MB / 428.6 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001589/0.1146, allocations: 0.8646 MB / 429.5 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.1147, allocations: 7.938 kB / 429.5 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002456/0.1149, allocations: 51.56 kB / 429.5 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002619/0.1152, allocations: 107.2 kB / 429.6 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002359/0.1154, allocations: 95.75 kB / 429.7 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003416/0.1158, allocations: 287.4 kB / 430 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001323/0.1159, allocations: 44.39 kB / 430 MB, free: 1.133 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002334/0.1161, allocations: 131.5 kB / 430.2 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002042/0.1163, allocations: 139.4 kB / 430.3 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.898e-05/0.1164, allocations: 20 kB / 430.3 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001564/0.1165, allocations: 83.97 kB / 430.4 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.852e-05/0.1166, allocations: 55.77 kB / 430.5 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001228/0.1168, allocations: 119.4 kB / 430.6 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000414/0.1172, allocations: 306.8 kB / 430.9 MB, free: 300 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.1172, allocations: 8 kB / 430.9 MB, free: 292 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1172, allocations: 3.938 kB / 430.9 MB, free: 288 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.065e-05/0.1172, allocations: 0 / 430.9 MB, free: 288 kB / 350.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.1982/0.3154, allocations: 0.5836 MB / 431.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.482e-05/0.3155, allocations: 9.781 kB / 431.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.296e-05/0.3155, allocations: 57.14 kB / 431.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002415/0.3158, allocations: 38.08 kB / 431.6 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004242/0.3162, allocations: 246.1 kB / 431.8 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.211e-05/0.3162, allocations: 15.66 kB / 431.8 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.575e-05/0.3163, allocations: 22.98 kB / 431.9 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005569/0.3168, allocations: 233.5 kB / 432.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/0.3169, allocations: 3.938 kB / 432.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.51e-05/0.3169, allocations: 6.938 kB / 432.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.929e-06/0.3169, allocations: 4.781 kB / 432.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005407/0.3174, allocations: 177.6 kB / 432.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009867/0.3184, allocations: 0.652 MB / 432.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006334/0.3191, allocations: 187.1 kB / 433.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002505/0.3193, allocations: 95.38 kB / 433.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.729e-05/0.3193, allocations: 6.906 kB / 433.2 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003871/0.3197, allocations: 169 kB / 433.4 MB, free: 10.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.633e-06/0.3197, allocations: 0 / 433.4 MB, free: 10.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002524/0.3223, allocations: 1.16 MB / 434.5 MB, free: 9.805 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.133e-05/0.3223, allocations: 61.75 kB / 434.6 MB, free: 9.742 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001901/0.3225, allocations: 203.4 kB / 434.8 MB, free: 9.637 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.442e-05/0.3225, allocations: 30.98 kB / 434.8 MB, free: 9.605 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.678e-05/0.3226, allocations: 138.1 kB / 435 MB, free: 9.504 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.692e-05/0.3226, allocations: 94.19 kB / 435 MB, free: 9.445 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/0.3227, allocations: 56.8 kB / 435.1 MB, free: 9.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.313e-05/0.3228, allocations: 330.6 kB / 435.4 MB, free: 9.117 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002863/0.3231, allocations: 99.2 kB / 435.5 MB, free: 9.117 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003039/0.3234, allocations: 147.2 kB / 435.7 MB, free: 9.047 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005145/0.3239, allocations: 240.6 kB / 435.9 MB, free: 8.918 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.3239, allocations: 5.094 kB / 435.9 MB, free: 8.914 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008606/0.3248, allocations: 378.1 kB / 436.3 MB, free: 8.742 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.92e-05/0.3248, allocations: 33.05 kB / 436.3 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.3248, allocations: 2.172 kB / 436.3 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002336/0.3251, allocations: 60.58 kB / 436.4 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000221/0.3253, allocations: 48.58 kB / 436.4 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001501/0.3268, allocations: 1.803 MB / 438.2 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002799/0.3271, allocations: 36.05 kB / 438.3 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.597e-05/0.3271, allocations: 11.2 kB / 438.3 MB, free: 7.012 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.0001284/0.3272, allocations: 144.1 kB / 438.4 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.63e-05/0.3273, allocations: 27.78 kB / 438.4 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.865e-05/0.3273, allocations: 32.91 kB / 438.5 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.3273, allocations: 5.062 kB / 438.5 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.3273, allocations: 1 kB / 438.5 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.3273, allocations: 5.344 kB / 438.5 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001129/0.3285, allocations: 0.6808 MB / 439.2 MB, free: 6.395 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.594e-06/0.3285, allocations: 7.75 kB / 439.2 MB, free: 6.391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002197/0.3287, allocations: 48.02 kB / 439.2 MB, free: 6.387 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001384/0.3288, allocations: 49.16 kB / 439.3 MB, free: 6.367 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.286e-05/0.3288, allocations: 7.109 kB / 439.3 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001215/0.3301, allocations: 1.644 MB / 440.9 MB, free: 4.855 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.3301, allocations: 7.188 kB / 440.9 MB, free: 4.855 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.3311, allocations: 0.5102 MB / 441.4 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001026/0.3312, allocations: 114 kB / 441.5 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.876e-05/0.3312, allocations: 7.797 kB / 441.5 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002801/0.3315, allocations: 35.95 kB / 441.6 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002001/0.3317, allocations: 76.42 kB / 441.7 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.171e-05/0.3317, allocations: 8.031 kB / 441.7 MB, free: 4.434 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001423/0.3319, allocations: 148 kB / 441.8 MB, free: 4.336 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3319, allocations: 1 kB / 441.8 MB, free: 4.336 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004515/0.3323, allocations: 71.97 kB / 441.9 MB, free: 4.328 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.002354/0.3347, allocations: 1.312 MB / 443.2 MB, free: 3.453 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008991/0.3356, allocations: 428.5 kB / 443.6 MB, free: 3.199 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.3356, allocations: 7.078 kB / 443.6 MB, free: 3.195 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004217/0.336, allocations: 254.8 kB / 443.9 MB, free: 3.039 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004551/0.3365, allocations: 45.98 kB / 443.9 MB, free: 3.023 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004211/0.3407, allocations: 2.832 MB / 446.7 MB, free: 1.074 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00026/0.3409, allocations: 0.7481 MB / 447.5 MB, free: 380 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001356/0.3411, allocations: 30.16 kB / 447.5 MB, free: 372 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001267/0.3412, allocations: 68.27 kB / 447.6 MB, free: 324 kB / 350.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3412, allocations: 0 / 447.6 MB, free: 324 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03783/0.379, allocations: 7.197 MB / 454.8 MB, free: 14.65 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/12.09, allocations: 1.5 kB / 454.8 MB, free: 14.65 MB / 366.1 MB " [Timeout remaining time 648] (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: 14.737306869996246]