Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.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.001502/0.001502, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.00164/0.00164, allocations: 211.2 kB / 20.75 MB, free: 2.27 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.53/1.53, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2539/0.2539, allocations: 44.9 MB / 355.1 MB, free: 12.31 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 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.001964/0.001964, allocations: 75.88 kB / 499.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.128, allocations: 65.42 MB / 0.5517 GB, free: 10.13 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001708/0.1298, allocations: 0.5359 MB / 0.5523 GB, free: 9.594 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004268/0.1302, allocations: 155.9 kB / 0.5524 GB, free: 9.441 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.404e-05/0.1302, allocations: 0 / 0.5524 GB, free: 9.441 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.643e-05/0.1302, allocations: 3.938 kB / 0.5524 GB, free: 9.438 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002491/0.1305, allocations: 51.77 kB / 0.5525 GB, free: 9.387 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.848e-06/0.1305, allocations: 0 / 0.5525 GB, free: 9.387 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.627e-05/0.1305, allocations: 19.91 kB / 0.5525 GB, free: 9.367 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.979e-05/0.1306, allocations: 8 kB / 0.5525 GB, free: 9.359 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.977e-05/0.1306, allocations: 7.875 kB / 0.5525 GB, free: 9.352 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.896e-05/0.1306, allocations: 15.92 kB / 0.5525 GB, free: 9.336 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.25e-05/0.1307, allocations: 4 kB / 0.5525 GB, free: 9.332 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001079/0.1308, allocations: 47.94 kB / 0.5526 GB, free: 9.285 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.095e-06/0.1308, allocations: 4 kB / 0.5526 GB, free: 9.281 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.988e-05/0.1308, allocations: 11.92 kB / 0.5526 GB, free: 9.27 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001121/0.1309, allocations: 44.11 kB / 0.5526 GB, free: 9.227 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.1309, allocations: 3.938 kB / 0.5526 GB, free: 9.223 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.1309, allocations: 4 kB / 0.5526 GB, free: 9.219 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.1309, allocations: 3.938 kB / 0.5526 GB, free: 9.215 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003658/0.1313, allocations: 335.3 kB / 0.5529 GB, free: 8.836 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.1313, allocations: 12.03 kB / 0.553 GB, free: 8.824 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.504e-05/0.1314, allocations: 38.73 kB / 0.553 GB, free: 8.777 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.233e-05/0.1314, allocations: 4.938 kB / 0.553 GB, free: 8.773 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001738/0.1316, allocations: 164.3 kB / 0.5532 GB, free: 8.574 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.541e-05/0.1316, allocations: 4.375 kB / 0.5532 GB, free: 8.57 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.538e-05/0.1316, allocations: 8.375 kB / 0.5532 GB, free: 8.562 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001817/0.1318, allocations: 62.17 kB / 0.5532 GB, free: 8.496 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.1318, allocations: 3.938 kB / 0.5532 GB, free: 8.492 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.182e-05/0.1318, allocations: 0 / 0.5532 GB, free: 8.492 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.1318, allocations: 0 / 0.5532 GB, free: 8.492 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001447/0.132, allocations: 55.95 kB / 0.5533 GB, free: 8.438 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000269/0.1322, allocations: 169.6 kB / 0.5534 GB, free: 8.223 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001724/0.1324, allocations: 78.58 kB / 0.5535 GB, free: 8.137 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.224e-05/0.1325, allocations: 28.84 kB / 0.5536 GB, free: 8.105 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004282/0.1329, allocations: 251.3 kB / 0.5538 GB, free: 7.805 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.255e-05/0.133, allocations: 34.56 kB / 0.5538 GB, free: 7.762 MB / 414.1 MB Notification: Performance of pre-optimization done (n=10): time 1.483e-06/0.133, allocations: 0 / 0.5538 GB, free: 7.762 MB / 414.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002793/0.1332, allocations: 109.7 kB / 0.5539 GB, free: 7.648 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.855e-05/0.1333, allocations: 59.41 kB / 0.554 GB, free: 7.578 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.749e-05/0.1334, allocations: 93.84 kB / 0.5541 GB, free: 7.477 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.985e-05/0.1334, allocations: 25.7 kB / 0.5541 GB, free: 7.445 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.414e-05/0.1335, allocations: 84.14 kB / 0.5542 GB, free: 7.359 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.214e-05/0.1335, allocations: 31.7 kB / 0.5542 GB, free: 7.328 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.024e-05/0.1336, allocations: 25.7 kB / 0.5542 GB, free: 7.297 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.1337, allocations: 310.8 kB / 0.5545 GB, free: 6.984 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.245e-05/0.1338, allocations: 24.11 kB / 0.5546 GB, free: 6.961 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.437e-05/0.1338, allocations: 23.94 kB / 0.5546 GB, free: 6.938 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.88e-05/0.1339, allocations: 48.84 kB / 0.5546 GB, free: 6.887 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1339, allocations: 3.938 kB / 0.5546 GB, free: 6.883 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001472/0.134, allocations: 86.14 kB / 0.5547 GB, free: 6.793 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.203e-05/0.134, allocations: 11.94 kB / 0.5547 GB, free: 6.781 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.1341, allocations: 0 / 0.5547 GB, free: 6.781 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.1341, allocations: 0 / 0.5547 GB, free: 6.781 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001238/0.1342, allocations: 15.98 kB / 0.5547 GB, free: 6.766 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.1342, allocations: 0 / 0.5547 GB, free: 6.766 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.96e-05/0.1342, allocations: 8.094 kB / 0.5547 GB, free: 6.758 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.1342, allocations: 7.938 kB / 0.5548 GB, free: 6.75 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001068/0.1343, allocations: 117.8 kB / 0.5549 GB, free: 6.625 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.576e-05/0.1344, allocations: 7.891 kB / 0.5549 GB, free: 6.617 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002312/0.1346, allocations: 101.6 kB / 0.555 GB, free: 6.512 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-06/0.1346, allocations: 3.984 kB / 0.555 GB, free: 6.508 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.1346, allocations: 0 / 0.555 GB, free: 6.508 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.1346, allocations: 3.938 kB / 0.555 GB, free: 6.504 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001679/0.1348, allocations: 169.7 kB / 0.5551 GB, free: 6.289 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1348, allocations: 4 kB / 0.5551 GB, free: 6.285 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.093e-05/0.1348, allocations: 19.98 kB / 0.5552 GB, free: 6.266 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.1349, allocations: 7.938 kB / 0.5552 GB, free: 6.258 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-06/0.1349, allocations: 0 / 0.5552 GB, free: 6.258 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.1349, allocations: 0 / 0.5552 GB, free: 6.258 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1349, allocations: 0 / 0.5552 GB, free: 6.258 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001671/0.135, allocations: 121 kB / 0.5553 GB, free: 6.121 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.976e-05/0.1351, allocations: 77.11 kB / 0.5554 GB, free: 6.027 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.601e-05/0.1351, allocations: 11.94 kB / 0.5554 GB, free: 6.016 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.316e-05/0.1351, allocations: 0 / 0.5554 GB, free: 6.016 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.837e-05/0.1351, allocations: 4 kB / 0.5554 GB, free: 6.012 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.075e-06/0.1351, allocations: 7.984 kB / 0.5554 GB, free: 6.004 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.036e-05/0.1352, allocations: 75.28 kB / 0.5555 GB, free: 5.93 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1352, allocations: 0 / 0.5555 GB, free: 5.93 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002093/0.1354, allocations: 15.94 kB / 0.5555 GB, free: 5.914 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000506/0.1359, allocations: 0.6633 MB / 0.5561 GB, free: 5.223 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001527/0.1361, allocations: 47.92 kB / 0.5562 GB, free: 5.176 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1361, allocations: 3.938 kB / 0.5562 GB, free: 5.172 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.879e-05/0.1361, allocations: 35.92 kB / 0.5562 GB, free: 5.137 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001459/0.1363, allocations: 3.938 kB / 0.5562 GB, free: 5.133 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004667/0.1367, allocations: 178.6 kB / 0.5564 GB, free: 4.918 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000301/0.137, allocations: 0.6807 MB / 0.557 GB, free: 4.211 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.473e-05/0.1371, allocations: 11.78 kB / 0.557 GB, free: 4.199 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.701e-05/0.1371, allocations: 15.44 kB / 0.5571 GB, free: 4.184 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1371, allocations: 0 / 0.5571 GB, free: 4.184 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02424/0.1613, allocations: 1.573 MB / 0.5586 GB, free: 2.707 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.976/8.138, allocations: 12.75 kB / 0.5586 GB, free: 2.699 MB / 414.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000201919 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable x2_a in file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv. Warning: Get data of variable x2_a from file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv failed! Error: Could not read variable x3 in file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv. Warning: Get data of variable x3 from file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv failed! Error: Could not read variable x3_a in file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv. Warning: Get data of variable x3_a from file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv failed! Error: Could not read variable x2err in file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv. Warning: Get data of variable x2err from file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv failed! Error: Could not read variable x3err in file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv. Warning: Get data of variable x3err from file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.342734513338655]