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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 109.5 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001349/0.001349, allocations: 186.2 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.383/1.383, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001483, allocations: 43.88 kB / 370.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.2984, allocations: 52.19 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003659/0.3021, allocations: 2.254 MB / 424.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001446/0.3035, allocations: 0.6895 MB / 425.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001203/0.3037, allocations: 4 kB / 425.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002001/0.3039, allocations: 31.66 kB / 425.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001891/0.3041, allocations: 71.47 kB / 425.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003621/0.3044, allocations: 107.8 kB / 425.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003888/0.3048, allocations: 263.4 kB / 426 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000152/0.305, allocations: 40.58 kB / 426.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001745/0.3051, allocations: 119.5 kB / 426.2 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002254/0.3054, allocations: 115.5 kB / 426.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.949e-05/0.3054, allocations: 23.98 kB / 426.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001397/0.3055, allocations: 71.95 kB / 426.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.09e-05/0.3056, allocations: 55.83 kB / 426.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001161/0.3057, allocations: 103.5 kB / 426.5 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003873/0.3061, allocations: 287.2 kB / 426.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3061, allocations: 0 / 426.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3061, allocations: 0 / 426.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.763e-06/0.3061, allocations: 0 / 426.8 MB, free: 10.39 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0008781/0.307, allocations: 453.6 kB / 427.3 MB, free: 9.918 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.3071, allocations: 12.03 kB / 427.3 MB, free: 9.906 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.603e-05/0.3071, allocations: 54.73 kB / 427.3 MB, free: 9.844 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.305e-05/0.3072, allocations: 24.8 kB / 427.4 MB, free: 9.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003443/0.3075, allocations: 182.1 kB / 427.5 MB, free: 9.617 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.3075, allocations: 12.81 kB / 427.5 MB, free: 9.605 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.173e-05/0.3076, allocations: 28.3 kB / 427.6 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004161/0.308, allocations: 221.8 kB / 427.8 MB, free: 9.344 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.674e-05/0.308, allocations: 0 / 427.8 MB, free: 9.344 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.382e-05/0.308, allocations: 16 kB / 427.8 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.3081, allocations: 4 kB / 427.8 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003315/0.3084, allocations: 161 kB / 428 MB, free: 9.168 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001215/0.3096, allocations: 0.7227 MB / 428.7 MB, free: 8.391 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003747/0.31, allocations: 126.5 kB / 428.8 MB, free: 8.258 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001425/0.3101, allocations: 68.83 kB / 428.9 MB, free: 8.188 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.32e-05/0.3101, allocations: 4 kB / 428.9 MB, free: 8.184 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.167e-05/0.3102, allocations: 30.56 kB / 428.9 MB, free: 8.145 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.192e-06/0.3102, allocations: 0 / 428.9 MB, free: 8.145 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.001856/0.312, allocations: 0.752 MB / 429.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.6e-05/0.3121, allocations: 59.41 kB / 429.7 MB, free: 7.266 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000231/0.3123, allocations: 208.8 kB / 429.9 MB, free: 7.055 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.572e-05/0.3123, allocations: 29.7 kB / 430 MB, free: 7.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.3124, allocations: 144.4 kB / 430.1 MB, free: 6.875 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.762e-05/0.3125, allocations: 79.36 kB / 430.2 MB, free: 6.797 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.812e-05/0.3126, allocations: 49.7 kB / 430.2 MB, free: 6.742 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.3127, allocations: 330.8 kB / 430.5 MB, free: 6.41 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001709/0.3129, allocations: 83.89 kB / 430.6 MB, free: 6.328 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001891/0.3131, allocations: 119.6 kB / 430.7 MB, free: 6.195 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002897/0.3134, allocations: 174 kB / 430.9 MB, free: 6.016 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.103e-06/0.3134, allocations: 0 / 430.9 MB, free: 6.016 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000492/0.3139, allocations: 292.6 kB / 431.2 MB, free: 5.723 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.3139, allocations: 4 kB / 431.2 MB, free: 5.719 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.3139, allocations: 4.047 kB / 431.2 MB, free: 5.715 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000252/0.3142, allocations: 72.8 kB / 431.3 MB, free: 5.641 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001602/0.3143, allocations: 39.92 kB / 431.3 MB, free: 5.602 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005526/0.3149, allocations: 0.6148 MB / 431.9 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001813/0.3151, allocations: 24 kB / 432 MB, free: 4.938 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.012e-05/0.3151, allocations: 12 kB / 432 MB, free: 4.926 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.0001318/0.3152, allocations: 133.8 kB / 432.1 MB, free: 4.785 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.183e-05/0.3153, allocations: 19.89 kB / 432.1 MB, free: 4.766 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.948e-05/0.3153, allocations: 25.75 kB / 432.1 MB, free: 4.742 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.3153, allocations: 8.062 kB / 432.2 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.3153, allocations: 0 / 432.2 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.3153, allocations: 7.984 kB / 432.2 MB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009104/0.3162, allocations: 0.5661 MB / 432.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.3163, allocations: 3.984 kB / 432.7 MB, free: 4.098 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001644/0.3164, allocations: 31.92 kB / 432.8 MB, free: 4.066 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001801/0.3166, allocations: 76.86 kB / 432.8 MB, free: 3.988 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.694e-05/0.3166, allocations: 4 kB / 432.8 MB, free: 3.984 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005377/0.3172, allocations: 0.6109 MB / 433.5 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.838e-06/0.3172, allocations: 3.984 kB / 433.5 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006582/0.3178, allocations: 422.3 kB / 433.9 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.18e-05/0.3179, allocations: 31.92 kB / 433.9 MB, free: 2.879 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.627e-05/0.3179, allocations: 4 kB / 433.9 MB, free: 2.875 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001753/0.3181, allocations: 19.98 kB / 433.9 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.452e-05/0.3182, allocations: 27.89 kB / 434 MB, free: 2.828 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.539e-05/0.3182, allocations: 8 kB / 434 MB, free: 2.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001607/0.3184, allocations: 155.2 kB / 434.1 MB, free: 2.668 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3184, allocations: 4 kB / 434.1 MB, free: 2.664 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003621/0.3187, allocations: 60 kB / 434.2 MB, free: 2.605 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.001113/0.3198, allocations: 0.9747 MB / 435.1 MB, free: 1.598 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005354/0.3204, allocations: 199.8 kB / 435.3 MB, free: 1.402 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3204, allocations: 0 / 435.3 MB, free: 1.402 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002348/0.3206, allocations: 95.89 kB / 435.4 MB, free: 1.309 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003929/0.321, allocations: 35.52 kB / 435.5 MB, free: 1.277 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003836/0.3248, allocations: 2.661 MB / 438.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004211/0.3253, allocations: 0.7363 MB / 438.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.39e-05/0.3253, allocations: 21.95 kB / 438.9 MB, free: 13.72 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.756e-05/0.3254, allocations: 59.42 kB / 438.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3254, allocations: 4 kB / 439 MB, free: 13.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0352/0.3606, allocations: 5.755 MB / 444.7 MB, free: 8.051 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.4/12.76, allocations: 3.375 kB / 444.7 MB, free: 8.051 MB / 350.1 MB " [Timeout remaining time 647] (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) [Timeout 52.5] 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) [Timeout 660] "Error: Could not read variable inertiaIn.phi in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv. Warning: Get data of variable inertiaIn.phi from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv failed! Error: Could not read variable inertiaIn.w in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv. Warning: Get data of variable inertiaIn.w from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.168423338000139]