Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001635/0.001635, allocations: 118 kB / 18.45 MB, free: 4.566 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.002009/0.002009, allocations: 215.2 kB / 21.42 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.446/1.446, allocations: 207.6 MB / 231.8 MB, free: 4.043 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001688/0.001688, allocations: 51.92 kB / 342.3 MB, free: 9.996 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09613/0.09781, allocations: 49.13 MB / 391.4 MB, free: 8.703 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003631/0.1014, allocations: 2.169 MB / 393.6 MB, free: 6.523 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001444/0.1029, allocations: 0.7525 MB / 394.3 MB, free: 5.762 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001196/0.103, allocations: 7.938 kB / 394.3 MB, free: 5.754 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001956/0.1032, allocations: 31.72 kB / 394.4 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001953/0.1034, allocations: 75.41 kB / 394.4 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003771/0.1038, allocations: 107.7 kB / 394.5 MB, free: 5.543 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003563/0.1041, allocations: 275.4 kB / 394.8 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001466/0.1043, allocations: 52.3 kB / 394.9 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002218/0.1045, allocations: 123.5 kB / 395 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002043/0.1047, allocations: 123.5 kB / 395.1 MB, free: 4.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.471e-05/0.1048, allocations: 20 kB / 395.1 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001444/0.1049, allocations: 75.92 kB / 395.2 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.393e-05/0.105, allocations: 47.84 kB / 395.2 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001344/0.1051, allocations: 119.4 kB / 395.4 MB, free: 4.723 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003955/0.1055, allocations: 275 kB / 395.6 MB, free: 4.453 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.319e-06/0.1055, allocations: 0 / 395.6 MB, free: 4.453 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1055, allocations: 0 / 395.6 MB, free: 4.453 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.1055, allocations: 7.875 kB / 395.6 MB, free: 4.445 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001126/0.1067, allocations: 0.5663 MB / 396.2 MB, free: 3.824 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.845e-05/0.1067, allocations: 12.03 kB / 396.2 MB, free: 3.812 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.444e-05/0.1068, allocations: 54.73 kB / 396.3 MB, free: 3.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.647e-05/0.1068, allocations: 24.8 kB / 396.3 MB, free: 3.727 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003588/0.1072, allocations: 235.9 kB / 396.5 MB, free: 3.457 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.1072, allocations: 12.38 kB / 396.5 MB, free: 3.445 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.275e-05/0.1073, allocations: 20.38 kB / 396.6 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000522/0.1078, allocations: 247.2 kB / 396.8 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.1078, allocations: 4 kB / 396.8 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.638e-05/0.1078, allocations: 7.984 kB / 396.8 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.1078, allocations: 4 kB / 396.8 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005258/0.1084, allocations: 191.9 kB / 397 MB, free: 2.969 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001091/0.1095, allocations: 0.6721 MB / 397.7 MB, free: 2.242 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006156/0.1101, allocations: 186.5 kB / 397.9 MB, free: 2.051 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002557/0.1103, allocations: 88.81 kB / 397.9 MB, free: 1.961 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.453e-05/0.1104, allocations: 7.938 kB / 397.9 MB, free: 1.953 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003912/0.1107, allocations: 171.1 kB / 398.1 MB, free: 1.773 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.723e-06/0.1107, allocations: 0 / 398.1 MB, free: 1.773 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.002668/0.1134, allocations: 1.146 MB / 399.3 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.881e-05/0.1135, allocations: 63.39 kB / 399.3 MB, free: 452 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002234/0.1137, allocations: 187.1 kB / 399.5 MB, free: 252 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.294e-05/0.1137, allocations: 29.7 kB / 399.5 MB, free: 216 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001169/0.1138, allocations: 140.4 kB / 399.7 MB, free: 72 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001037/0.1139, allocations: 95.25 kB / 399.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/0.1141, allocations: 65.64 kB / 399.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000182/0.1142, allocations: 330.8 kB / 400.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002983/0.1145, allocations: 116.2 kB / 400.3 MB, free: 15.46 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003178/0.1149, allocations: 144.3 kB / 400.4 MB, free: 15.3 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005388/0.1154, allocations: 246.7 kB / 400.6 MB, free: 15.05 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.1154, allocations: 0 / 400.6 MB, free: 15.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000902/0.1163, allocations: 397.1 kB / 401 MB, free: 14.64 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.347e-05/0.1163, allocations: 37.64 kB / 401.1 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.1163, allocations: 0 / 401.1 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002469/0.1166, allocations: 76.91 kB / 401.1 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002321/0.1168, allocations: 55.91 kB / 401.2 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005786/0.1174, allocations: 0.6109 MB / 401.8 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002743/0.1177, allocations: 32.06 kB / 401.8 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.621e-05/0.1177, allocations: 12 kB / 401.9 MB, free: 13.79 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: 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 (32): * Single equations (assignments): 30 * 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.0001607/0.1179, allocations: 153.6 kB / 402 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.926e-05/0.1179, allocations: 19.86 kB / 402 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.728e-05/0.118, allocations: 21.88 kB / 402 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.118, allocations: 4 kB / 402 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.118, allocations: 0 / 402 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.118, allocations: 3.984 kB / 402.1 MB, free: 13.58 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001229/0.1192, allocations: 0.6716 MB / 402.7 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.1192, allocations: 0 / 402.7 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002203/0.1195, allocations: 43.91 kB / 402.8 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001797/0.1196, allocations: 72.81 kB / 402.8 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.836e-05/0.1197, allocations: 0 / 402.8 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000543/0.1202, allocations: 0.6187 MB / 403.5 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.1202, allocations: 7.875 kB / 403.5 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001084/0.1213, allocations: 0.5088 MB / 404 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001274/0.1214, allocations: 113 kB / 404.1 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.964e-05/0.1214, allocations: 4 kB / 404.1 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002541/0.1217, allocations: 27.97 kB / 404.1 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.1218, allocations: 31.95 kB / 404.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.229e-05/0.1218, allocations: 15.98 kB / 404.2 MB, free: 11.35 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000142/0.122, allocations: 135.5 kB / 404.3 MB, free: 11.21 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.122, allocations: 0 / 404.3 MB, free: 11.21 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000388/0.1224, allocations: 68 kB / 404.4 MB, free: 11.15 MB / 334.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 (20): * Single equations (assignments): 17 * 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.001518/0.1239, allocations: 1.065 MB / 405.4 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008135/0.1247, allocations: 308 kB / 405.7 MB, free: 9.738 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.1247, allocations: 4.125 kB / 405.7 MB, free: 9.734 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003629/0.1251, allocations: 136.2 kB / 405.9 MB, free: 9.602 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004254/0.1255, allocations: 52.14 kB / 405.9 MB, free: 9.551 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00461/0.1301, allocations: 2.847 MB / 408.8 MB, free: 6.586 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004762/0.1306, allocations: 0.7439 MB / 409.5 MB, free: 5.812 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001063/0.1307, allocations: 25.89 kB / 409.5 MB, free: 5.789 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001203/0.1308, allocations: 67.41 kB / 409.6 MB, free: 5.723 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1308, allocations: 0 / 409.6 MB, free: 5.723 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03476/0.1656, allocations: 6.146 MB / 415.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/11.85, allocations: 7.891 kB / 415.7 MB, free: 15.51 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv. Warning: Get data of variable inertiaIn.phi from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv failed! Error: Could not read variable inertiaIn.w in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv. Warning: Get data of variable inertiaIn.w from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.44132002000697]