Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.00127/0.00127, allocations: 124.4 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.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.001385/0.001385, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.471/1.471, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2314/0.2314, allocations: 46.92 MB / 357.1 MB, free: 10.34 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001988/0.001988, allocations: 71.89 kB / 0.4909 GB, free: 8.016 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1366, allocations: 65.99 MB / 0.5554 GB, free: 5.902 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001866/0.1385, allocations: 0.5258 MB / 0.5559 GB, free: 5.375 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.000462/0.1389, allocations: 164 kB / 0.556 GB, free: 5.215 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.695e-05/0.1389, allocations: 4 kB / 0.556 GB, free: 5.211 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 2.013e-05/0.139, allocations: 0 / 0.556 GB, free: 5.211 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002692/0.1392, allocations: 39.81 kB / 0.5561 GB, free: 5.172 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.148e-06/0.1392, allocations: 0 / 0.5561 GB, free: 5.172 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.521e-05/0.1393, allocations: 23.92 kB / 0.5561 GB, free: 5.148 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.807e-05/0.1394, allocations: 0 / 0.5561 GB, free: 5.148 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.812e-05/0.1394, allocations: 15.88 kB / 0.5561 GB, free: 5.133 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.29e-05/0.1394, allocations: 11.92 kB / 0.5561 GB, free: 5.121 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.126e-05/0.1395, allocations: 0 / 0.5561 GB, free: 5.121 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001321/0.1396, allocations: 51.94 kB / 0.5562 GB, free: 5.07 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.324e-05/0.1396, allocations: 7.984 kB / 0.5562 GB, free: 5.062 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.7e-05/0.1396, allocations: 15.88 kB / 0.5562 GB, free: 5.047 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001202/0.1397, allocations: 43.81 kB / 0.5562 GB, free: 5.004 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.1397, allocations: 0 / 0.5562 GB, free: 5.004 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1398, allocations: 0 / 0.5562 GB, free: 5.004 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.1398, allocations: 0 / 0.5562 GB, free: 5.004 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.0004208/0.1402, allocations: 347.3 kB / 0.5566 GB, free: 4.613 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.1402, allocations: 8.031 kB / 0.5566 GB, free: 4.605 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.553e-05/0.1403, allocations: 38.73 kB / 0.5566 GB, free: 4.559 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.51e-05/0.1403, allocations: 0.9375 kB / 0.5566 GB, free: 4.559 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001507/0.1404, allocations: 168.4 kB / 0.5568 GB, free: 4.355 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.314e-05/0.1405, allocations: 4.375 kB / 0.5568 GB, free: 4.352 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.126e-05/0.1405, allocations: 4.375 kB / 0.5568 GB, free: 4.348 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001482/0.1406, allocations: 58.17 kB / 0.5568 GB, free: 4.285 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.1406, allocations: 3.938 kB / 0.5568 GB, free: 4.281 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.491e-05/0.1406, allocations: 8 kB / 0.5568 GB, free: 4.273 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.1406, allocations: 0 / 0.5568 GB, free: 4.273 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001179/0.1408, allocations: 51.89 kB / 0.5569 GB, free: 4.223 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002288/0.141, allocations: 173.6 kB / 0.5571 GB, free: 4.004 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001627/0.1412, allocations: 78.81 kB / 0.5571 GB, free: 3.918 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.487e-05/0.1412, allocations: 32.78 kB / 0.5572 GB, free: 3.883 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000384/0.1416, allocations: 247.3 kB / 0.5574 GB, free: 3.586 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.183e-05/0.1416, allocations: 38.55 kB / 0.5574 GB, free: 3.539 MB / 414.1 MB Notification: Performance of pre-optimization done (n=10): time 1.112e-06/0.1416, allocations: 0 / 0.5574 GB, free: 3.539 MB / 414.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002613/0.1419, allocations: 101.6 kB / 0.5575 GB, free: 3.434 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.693e-05/0.1419, allocations: 59.41 kB / 0.5576 GB, free: 3.363 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.999e-05/0.142, allocations: 97.84 kB / 0.5577 GB, free: 3.258 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.528e-05/0.142, allocations: 25.7 kB / 0.5577 GB, free: 3.227 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.98e-05/0.1421, allocations: 80.14 kB / 0.5578 GB, free: 3.145 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.518e-05/0.1421, allocations: 39.58 kB / 0.5578 GB, free: 3.105 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.297e-05/0.1422, allocations: 25.7 kB / 0.5579 GB, free: 3.074 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.1423, allocations: 314.8 kB / 0.5582 GB, free: 2.758 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.769e-05/0.1424, allocations: 20.11 kB / 0.5582 GB, free: 2.738 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.296e-05/0.1424, allocations: 20 kB / 0.5582 GB, free: 2.719 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.945e-05/0.1425, allocations: 53.34 kB / 0.5582 GB, free: 2.664 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.1425, allocations: 4 kB / 0.5582 GB, free: 2.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001407/0.1426, allocations: 93.52 kB / 0.5583 GB, free: 2.562 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.1427, allocations: 7.938 kB / 0.5583 GB, free: 2.555 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.1427, allocations: 0 / 0.5583 GB, free: 2.555 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.1427, allocations: 0 / 0.5583 GB, free: 2.555 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/0.1428, allocations: 19.98 kB / 0.5584 GB, free: 2.535 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.1428, allocations: 0 / 0.5584 GB, free: 2.535 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.314e-05/0.1428, allocations: 4 kB / 0.5584 GB, free: 2.531 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.3e-05/0.1428, allocations: 11.98 kB / 0.5584 GB, free: 2.52 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 8.573e-05/0.1429, allocations: 105.8 kB / 0.5585 GB, free: 2.406 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.773e-05/0.1429, allocations: 11.89 kB / 0.5585 GB, free: 2.395 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002027/0.1431, allocations: 101.6 kB / 0.5586 GB, free: 2.289 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.1431, allocations: 4 kB / 0.5586 GB, free: 2.285 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.1431, allocations: 0 / 0.5586 GB, free: 2.285 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.1431, allocations: 0 / 0.5586 GB, free: 2.285 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001502/0.1433, allocations: 173.7 kB / 0.5588 GB, free: 2.066 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1433, allocations: 3.938 kB / 0.5588 GB, free: 2.062 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.435e-05/0.1434, allocations: 15.98 kB / 0.5588 GB, free: 2.047 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.1434, allocations: 3.938 kB / 0.5588 GB, free: 2.043 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.1434, allocations: 4 kB / 0.5588 GB, free: 2.039 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.1434, allocations: 4 kB / 0.5588 GB, free: 2.035 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.1434, allocations: 0 / 0.5588 GB, free: 2.035 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001573/0.1436, allocations: 109 kB / 0.5589 GB, free: 1.91 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.649e-05/0.1436, allocations: 89.05 kB / 0.559 GB, free: 1.805 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.081e-05/0.1437, allocations: 8.219 kB / 0.559 GB, free: 1.797 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.399e-05/0.1437, allocations: 0 / 0.559 GB, free: 1.797 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.077e-05/0.1437, allocations: 7.984 kB / 0.559 GB, free: 1.789 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.613e-06/0.1437, allocations: 7.938 kB / 0.559 GB, free: 1.781 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.991e-05/0.1438, allocations: 75.28 kB / 0.5591 GB, free: 1.707 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1438, allocations: 0 / 0.5591 GB, free: 1.707 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002038/0.144, allocations: 19.94 kB / 0.5591 GB, free: 1.688 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.0005907/0.1446, allocations: 0.6592 MB / 0.5597 GB, free: 1 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001453/0.1447, allocations: 51.92 kB / 0.5598 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1447, allocations: 0 / 0.5598 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.685e-05/0.1447, allocations: 27.92 kB / 0.5598 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001425/0.1449, allocations: 4 kB / 0.5598 GB, free: 0.918 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004626/0.1454, allocations: 178.6 kB / 0.56 GB, free: 0.7031 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004015/0.1458, allocations: 0.6819 MB / 0.5606 GB, free: 16 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 3.373e-05/0.1458, allocations: 11.78 kB / 0.5607 GB, free: 15.98 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.572e-05/0.1458, allocations: 11.44 kB / 0.5607 GB, free: 15.97 MB / 430.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1458, allocations: 0 / 0.5607 GB, free: 15.97 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.023/0.1688, allocations: 1.578 MB / 0.5622 GB, free: 14.49 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.858/8.027, allocations: 6.344 kB / 0.5622 GB, free: 14.49 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions.fmu > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.936300738947466]