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.001668/0.001668, allocations: 124 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.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.00195/0.00195, allocations: 190.9 kB / 20.73 MB, free: 2.328 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.486/1.486, allocations: 225.6 MB / 249.1 MB, free: 3.621 MB / 190.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.001603/0.001603, allocations: 47.92 kB / 365.6 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1154, allocations: 52.14 MB / 417.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.00383/0.1193, allocations: 2.236 MB / 420 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001384/0.1207, allocations: 0.6855 MB / 420.7 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001232/0.1208, allocations: 0 / 420.7 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001985/0.121, allocations: 43.66 kB / 420.7 MB, free: 9.668 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002/0.1212, allocations: 63.47 kB / 420.8 MB, free: 9.605 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003655/0.1216, allocations: 103.8 kB / 420.9 MB, free: 9.504 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003361/0.1219, allocations: 259.4 kB / 421.1 MB, free: 9.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000159/0.122, allocations: 44.38 kB / 421.2 MB, free: 9.207 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001859/0.1222, allocations: 119.5 kB / 421.3 MB, free: 9.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002129/0.1224, allocations: 123.5 kB / 421.4 MB, free: 8.969 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.619e-05/0.1225, allocations: 23.94 kB / 421.4 MB, free: 8.945 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000137/0.1226, allocations: 63.95 kB / 421.5 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.813e-05/0.1227, allocations: 51.83 kB / 421.6 MB, free: 8.832 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001231/0.1228, allocations: 111.5 kB / 421.7 MB, free: 8.723 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003885/0.1232, allocations: 282.8 kB / 421.9 MB, free: 8.445 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1232, allocations: 0 / 421.9 MB, free: 8.445 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1232, allocations: 0 / 421.9 MB, free: 8.445 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.143e-06/0.1232, allocations: 0 / 421.9 MB, free: 8.445 MB / 350.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.0009845/0.1242, allocations: 0.5183 MB / 422.5 MB, free: 7.879 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.1242, allocations: 8.031 kB / 422.5 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.907e-05/0.1243, allocations: 54.73 kB / 422.5 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.978e-05/0.1244, allocations: 24.8 kB / 422.6 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004128/0.1248, allocations: 240.6 kB / 422.8 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.385e-05/0.1248, allocations: 12.81 kB / 422.8 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.961e-05/0.1249, allocations: 20.38 kB / 422.8 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004803/0.1254, allocations: 233.7 kB / 423 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.1254, allocations: 0 / 423 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.345e-05/0.1254, allocations: 12 kB / 423.1 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.717e-06/0.1254, allocations: 4 kB / 423.1 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003607/0.1258, allocations: 165 kB / 423.2 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001274/0.127, allocations: 0.7799 MB / 424 MB, free: 6.211 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003673/0.1274, allocations: 118.5 kB / 424.1 MB, free: 6.086 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000144/0.1275, allocations: 65.14 kB / 424.2 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.318e-05/0.1276, allocations: 4 kB / 424.2 MB, free: 6.016 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.1276, allocations: 42.41 kB / 424.2 MB, free: 5.965 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.643e-06/0.1276, allocations: 0 / 424.2 MB, free: 5.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.002074/0.1297, allocations: 0.995 MB / 425.2 MB, free: 4.859 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.056e-05/0.1297, allocations: 55.41 kB / 425.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002325/0.13, allocations: 206.9 kB / 425.5 MB, free: 4.582 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.588e-05/0.13, allocations: 33.7 kB / 425.5 MB, free: 4.543 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001029/0.1301, allocations: 140.3 kB / 425.6 MB, free: 4.402 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.108e-05/0.1302, allocations: 75.38 kB / 425.7 MB, free: 4.328 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.388e-05/0.1303, allocations: 53.69 kB / 425.8 MB, free: 4.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.1304, allocations: 334.8 kB / 426.1 MB, free: 3.934 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001769/0.1306, allocations: 83.95 kB / 426.2 MB, free: 3.852 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001989/0.1308, allocations: 124.1 kB / 426.3 MB, free: 3.715 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003084/0.1311, allocations: 165.5 kB / 426.5 MB, free: 3.543 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.1311, allocations: 4 kB / 426.5 MB, free: 3.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005483/0.1317, allocations: 288.5 kB / 426.8 MB, free: 3.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.1317, allocations: 10.03 kB / 426.8 MB, free: 3.242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.1317, allocations: 0 / 426.8 MB, free: 3.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002823/0.132, allocations: 68.81 kB / 426.8 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001618/0.1321, allocations: 35.98 kB / 426.9 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006097/0.1327, allocations: 0.6226 MB / 427.5 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002189/0.133, allocations: 23.97 kB / 427.5 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.007e-05/0.133, allocations: 8 kB / 427.5 MB, free: 2.457 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: 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.0001491/0.1331, allocations: 137.7 kB / 427.7 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.888e-05/0.1332, allocations: 23.97 kB / 427.7 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.051e-05/0.1332, allocations: 33.73 kB / 427.7 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.1333, allocations: 0 / 427.7 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.1333, allocations: 0 / 427.7 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.1333, allocations: 0 / 427.7 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009587/0.1342, allocations: 0.5983 MB / 428.3 MB, free: 1.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.1342, allocations: 4 kB / 428.3 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001671/0.1344, allocations: 31.97 kB / 428.3 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002044/0.1346, allocations: 68.75 kB / 428.4 MB, free: 1.484 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.252e-05/0.1346, allocations: 11.98 kB / 428.4 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005222/0.1351, allocations: 0.6109 MB / 429 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.1351, allocations: 0 / 429 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006737/0.1358, allocations: 415.6 kB / 429.4 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001195/0.1359, allocations: 109.2 kB / 429.5 MB, free: 288 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.839e-05/0.136, allocations: 12.06 kB / 429.6 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001863/0.1362, allocations: 19.98 kB / 429.6 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.845e-05/0.1362, allocations: 27.94 kB / 429.6 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.372e-05/0.1362, allocations: 4 kB / 429.6 MB, free: 224 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000156/0.1364, allocations: 156.4 kB / 429.8 MB, free: 68 kB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1364, allocations: 3.938 kB / 429.8 MB, free: 64 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003585/0.1368, allocations: 64 kB / 429.8 MB, free: 0 / 350.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.001144/0.1379, allocations: 0.9706 MB / 430.8 MB, free: 14.99 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000523/0.1384, allocations: 187.9 kB / 431 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1384, allocations: 0 / 431 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002463/0.1387, allocations: 95.83 kB / 431.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004073/0.1391, allocations: 36.12 kB / 431.1 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004021/0.1431, allocations: 2.66 MB / 433.8 MB, free: 11.9 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004613/0.1436, allocations: 0.7402 MB / 434.5 MB, free: 11.14 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001012/0.1437, allocations: 21.95 kB / 434.5 MB, free: 11.11 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/0.1438, allocations: 63.41 kB / 434.6 MB, free: 11.05 MB / 366.1 MB Notification: Performance of SimCode: time 8.31e-07/0.1438, allocations: 0 / 434.6 MB, free: 11.05 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03413/0.1779, allocations: 5.559 MB / 440.2 MB, free: 5.664 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.74/11.92, allocations: 15.62 kB / 440.2 MB, free: 5.652 MB / 366.1 MB " [Timeout remaining time 648] (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: 14.721337458118796]