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.001095/0.001095, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.001287/0.001287, allocations: 170.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8989/0.8989, allocations: 177.1 MB / 204.3 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] 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 1.543e-06/1.543e-06, allocations: 0 / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.238e-05/1.393e-05, allocations: 6.219 kB / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002355/0.002369, allocations: 2.183 MB / 326.7 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009789/0.003347, allocations: 0.8412 MB / 327.6 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.003449, allocations: 3.938 kB / 327.6 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002333/0.003683, allocations: 55.5 kB / 327.6 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002461/0.003929, allocations: 111.2 kB / 327.7 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002037/0.004132, allocations: 87.75 kB / 327.8 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002532/0.004385, allocations: 303.3 kB / 328.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001171/0.004503, allocations: 46.77 kB / 328.2 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002328/0.004735, allocations: 187.5 kB / 328.4 MB, free: 12.13 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001446/0.00488, allocations: 111.7 kB / 328.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.812e-05/0.004908, allocations: 24 kB / 328.5 MB, free: 12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001027/0.005011, allocations: 71.92 kB / 328.6 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.004e-05/0.005071, allocations: 63.8 kB / 328.6 MB, free: 11.87 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.635e-05/0.005137, allocations: 83.77 kB / 328.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002876/0.005425, allocations: 323 kB / 329 MB, free: 11.47 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.005427, allocations: 0 / 329 MB, free: 11.47 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.005428, allocations: 0 / 329 MB, free: 11.47 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.005432, allocations: 0 / 329 MB, free: 11.47 MB / 298.7 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.0006934/0.006125, allocations: 0.525 MB / 329.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/0.006158, allocations: 20.02 kB / 329.6 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.706e-05/0.006195, allocations: 50.73 kB / 329.6 MB, free: 10.83 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000105/0.0063, allocations: 32.8 kB / 329.6 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002316/0.006532, allocations: 191.1 kB / 329.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.737e-05/0.006549, allocations: 16.38 kB / 329.8 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.99e-05/0.006579, allocations: 16.38 kB / 329.9 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002955/0.006875, allocations: 231.5 kB / 330.1 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.006886, allocations: 192 / 330.1 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.738e-05/0.006904, allocations: 16.12 kB / 330.1 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.00691, allocations: 7.984 kB / 330.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005316/0.007442, allocations: 183.8 kB / 330.3 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006436/0.008085, allocations: 0.5659 MB / 330.9 MB, free: 9.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003524/0.008438, allocations: 199.3 kB / 331.1 MB, free: 9.297 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001341/0.008572, allocations: 96.8 kB / 331.1 MB, free: 9.199 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.605e-05/0.008588, allocations: 0 / 331.1 MB, free: 9.199 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002382/0.008826, allocations: 167.2 kB / 331.3 MB, free: 9.023 MB / 298.7 MB Notification: Performance of pre-optimization done (n=25): time 1.743e-06/0.008828, allocations: 0 / 331.3 MB, free: 9.023 MB / 298.7 MB Notification: Performance of matching and sorting (n=27): time 0.001442/0.01027, allocations: 0.9305 MB / 332.2 MB, free: 8.039 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.286e-05/0.0103, allocations: 59.41 kB / 332.3 MB, free: 7.969 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001454/0.01045, allocations: 203.2 kB / 332.5 MB, free: 7.758 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.995e-05/0.01047, allocations: 29.7 kB / 332.5 MB, free: 7.723 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.874e-05/0.01054, allocations: 140.5 kB / 332.7 MB, free: 7.582 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.061e-05/0.01059, allocations: 87.27 kB / 332.7 MB, free: 7.496 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.47e-05/0.01065, allocations: 61.69 kB / 332.8 MB, free: 7.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.33e-05/0.01075, allocations: 334.8 kB / 333.1 MB, free: 7.094 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000168/0.01091, allocations: 125.6 kB / 333.3 MB, free: 6.965 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000167/0.01108, allocations: 162.3 kB / 333.4 MB, free: 6.789 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002758/0.01136, allocations: 249.9 kB / 333.7 MB, free: 6.527 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/0.01136, allocations: 0 / 333.7 MB, free: 6.527 MB / 298.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004654/0.01182, allocations: 419.3 kB / 334.1 MB, free: 6.098 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.878e-05/0.01185, allocations: 37.7 kB / 334.1 MB, free: 6.055 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.01186, allocations: 0 / 334.1 MB, free: 6.055 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001503/0.01201, allocations: 56.81 kB / 334.2 MB, free: 5.996 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.01211, allocations: 47.91 kB / 334.2 MB, free: 5.949 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001164/0.01328, allocations: 1.691 MB / 335.9 MB, free: 4.137 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001297/0.01341, allocations: 35.98 kB / 335.9 MB, free: 4.102 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.62e-05/0.01342, allocations: 15.94 kB / 336 MB, free: 4.086 MB / 298.7 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 9.577e-05/0.01352, allocations: 137.8 kB / 336.1 MB, free: 3.941 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.337e-05/0.01354, allocations: 23.86 kB / 336.1 MB, free: 3.918 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.299e-05/0.01357, allocations: 34.7 kB / 336.1 MB, free: 3.883 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-06/0.01358, allocations: 0 / 336.1 MB, free: 3.883 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.01358, allocations: 0 / 336.1 MB, free: 3.883 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.01358, allocations: 4 kB / 336.1 MB, free: 3.879 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006358/0.01422, allocations: 0.6393 MB / 336.8 MB, free: 3.188 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.01422, allocations: 0 / 336.8 MB, free: 3.188 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001101/0.01433, allocations: 43.97 kB / 336.8 MB, free: 3.145 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.897e-05/0.01442, allocations: 52.83 kB / 336.9 MB, free: 3.09 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.592e-05/0.01443, allocations: 11.98 kB / 336.9 MB, free: 3.078 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001122/0.01556, allocations: 1.538 MB / 338.4 MB, free: 1.43 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.01556, allocations: 64 / 338.4 MB, free: 1.43 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005511/0.01611, allocations: 0.5048 MB / 338.9 MB, free: 0.9062 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.578e-05/0.01616, allocations: 35.92 kB / 339 MB, free: 0.8711 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.078e-05/0.01618, allocations: 8 kB / 339 MB, free: 0.8633 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001119/0.0163, allocations: 27.95 kB / 339 MB, free: 0.8359 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/0.01641, allocations: 79.81 kB / 339.1 MB, free: 0.7578 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.353e-05/0.01642, allocations: 15.92 kB / 339.1 MB, free: 0.7422 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.82e-05/0.01651, allocations: 151.4 kB / 339.2 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01651, allocations: 0 / 339.2 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002664/0.01678, allocations: 76 kB / 339.3 MB, free: 0.5195 MB / 298.7 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.001272/0.01805, allocations: 1.308 MB / 340.6 MB, free: 15.34 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005264/0.01858, allocations: 472.3 kB / 341.1 MB, free: 14.84 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.01858, allocations: 0 / 341.1 MB, free: 14.84 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002349/0.01881, allocations: 258.5 kB / 341.3 MB, free: 14.58 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002527/0.01907, allocations: 43.89 kB / 341.4 MB, free: 14.54 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002468/0.02153, allocations: 2.861 MB / 344.2 MB, free: 11.54 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.857e-05/0.02163, allocations: 142.2 kB / 344.4 MB, free: 11.38 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.873e-05/0.02171, allocations: 25.94 kB / 344.4 MB, free: 11.36 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.922e-05/0.0218, allocations: 72.47 kB / 344.5 MB, free: 11.28 MB / 314.7 MB Notification: Performance of SimCode: time 4.91e-07/0.0218, allocations: 4 kB / 344.5 MB, free: 11.28 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02142/0.04322, allocations: 7.808 MB / 352.3 MB, free: 3.555 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.744/7.787, allocations: 4.875 kB / 352.3 MB, free: 3.551 MB / 314.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins/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] "" Variables in the reference:time,inertiaIn.phi,inertiaIn.w,oneWayClutch.phi_rel,oneWayClutch.w_rel Variables in the result:time,inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel [Calling sys.exit(0), Time elapsed: 9.602576084434986]