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.001769/0.001769, allocations: 107.1 kB / 20.44 MB, free: 1.172 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.001832/0.001832, allocations: 207.4 kB / 23.73 MB, free: 4.379 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.4/1.4, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.2193/0.2193, allocations: 46.96 MB / 360.9 MB, free: 4.051 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.001975/0.001975, allocations: 67.89 kB / 0.4961 GB, free: 7.734 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.293, allocations: 66.03 MB / 0.5606 GB, free: 4.219 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001661/0.2947, allocations: 0.5227 MB / 0.5611 GB, free: 3.695 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004166/0.2951, allocations: 151.5 kB / 0.5612 GB, free: 3.547 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.728e-05/0.2951, allocations: 0 / 0.5612 GB, free: 3.547 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.542e-05/0.2952, allocations: 3.938 kB / 0.5612 GB, free: 3.543 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002336/0.2954, allocations: 35.84 kB / 0.5613 GB, free: 3.508 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.098e-06/0.2954, allocations: 3.938 kB / 0.5613 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.669e-05/0.2955, allocations: 23.92 kB / 0.5613 GB, free: 3.48 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.193e-05/0.2955, allocations: 0 / 0.5613 GB, free: 3.48 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.35e-05/0.2955, allocations: 15.91 kB / 0.5613 GB, free: 3.465 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.671e-05/0.2956, allocations: 15.92 kB / 0.5613 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.171e-05/0.2956, allocations: 4 kB / 0.5613 GB, free: 3.445 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001111/0.2957, allocations: 51.95 kB / 0.5614 GB, free: 3.395 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.259e-05/0.2957, allocations: 3.938 kB / 0.5614 GB, free: 3.391 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.599e-05/0.2957, allocations: 7.922 kB / 0.5614 GB, free: 3.383 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001133/0.2958, allocations: 45.66 kB / 0.5614 GB, free: 3.34 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2958, allocations: 0 / 0.5614 GB, free: 3.34 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2958, allocations: 0 / 0.5614 GB, free: 3.34 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.2959, allocations: 7.984 kB / 0.5614 GB, free: 3.332 MB / 398.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.0003014/0.2962, allocations: 262.2 kB / 0.5617 GB, free: 3.043 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.2962, allocations: 11.97 kB / 0.5617 GB, free: 3.031 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.452e-05/0.2962, allocations: 34.75 kB / 0.5617 GB, free: 2.988 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.682e-05/0.2963, allocations: 8.938 kB / 0.5617 GB, free: 2.98 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.521e-05/0.2963, allocations: 102.5 kB / 0.5618 GB, free: 2.855 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.417e-05/0.2964, allocations: 12.25 kB / 0.5619 GB, free: 2.844 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.605e-05/0.2964, allocations: 8.375 kB / 0.5619 GB, free: 2.836 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001296/0.2965, allocations: 54.23 kB / 0.5619 GB, free: 2.777 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.2965, allocations: 3.938 kB / 0.5619 GB, free: 2.773 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.2965, allocations: 4 kB / 0.5619 GB, free: 2.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.2965, allocations: 0 / 0.5619 GB, free: 2.77 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001026/0.2966, allocations: 51.95 kB / 0.562 GB, free: 2.719 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001901/0.2968, allocations: 144.6 kB / 0.5621 GB, free: 2.535 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000166/0.297, allocations: 78.55 kB / 0.5622 GB, free: 2.449 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.042e-05/0.297, allocations: 24.86 kB / 0.5622 GB, free: 2.422 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002546/0.2973, allocations: 27.97 kB / 0.5622 GB, free: 2.395 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.781e-05/0.2973, allocations: 30.56 kB / 0.5623 GB, free: 2.355 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.243e-06/0.2973, allocations: 0 / 0.5623 GB, free: 2.355 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002438/0.2976, allocations: 105.8 kB / 0.5624 GB, free: 2.246 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.881e-05/0.2976, allocations: 55.41 kB / 0.5624 GB, free: 2.18 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.918e-05/0.2977, allocations: 89.86 kB / 0.5625 GB, free: 2.082 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.817e-05/0.2977, allocations: 29.83 kB / 0.5625 GB, free: 2.047 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.1e-05/0.2977, allocations: 84.14 kB / 0.5626 GB, free: 1.961 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.855e-05/0.2978, allocations: 43.61 kB / 0.5627 GB, free: 1.918 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.514e-05/0.2978, allocations: 21.72 kB / 0.5627 GB, free: 1.891 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001679/0.298, allocations: 319.2 kB / 0.563 GB, free: 1.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.488e-05/0.298, allocations: 16 kB / 0.563 GB, free: 1.555 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.603e-05/0.2981, allocations: 23.92 kB / 0.563 GB, free: 1.531 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.007e-05/0.2982, allocations: 48.86 kB / 0.5631 GB, free: 1.48 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.2982, allocations: 0 / 0.5631 GB, free: 1.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001357/0.2983, allocations: 85.58 kB / 0.5631 GB, free: 1.391 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.2983, allocations: 15.92 kB / 0.5632 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.2983, allocations: 4 kB / 0.5632 GB, free: 1.371 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.2983, allocations: 0 / 0.5632 GB, free: 1.371 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.2985, allocations: 15.94 kB / 0.5632 GB, free: 1.355 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.2985, allocations: 0 / 0.5632 GB, free: 1.355 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.505e-05/0.2985, allocations: 7.984 kB / 0.5632 GB, free: 1.348 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.396e-06/0.2985, allocations: 4 kB / 0.5632 GB, free: 1.344 MB / 398.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.806e-05/0.2986, allocations: 113.8 kB / 0.5633 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.762e-05/0.2986, allocations: 15.88 kB / 0.5633 GB, free: 1.207 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001966/0.2988, allocations: 101.5 kB / 0.5634 GB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.2988, allocations: 0 / 0.5634 GB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.2988, allocations: 8 kB / 0.5634 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.2988, allocations: 0 / 0.5634 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000127/0.2989, allocations: 137.1 kB / 0.5636 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.2989, allocations: 4 kB / 0.5636 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.646e-05/0.299, allocations: 12 kB / 0.5636 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.299, allocations: 3.938 kB / 0.5636 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.394e-06/0.299, allocations: 3.938 kB / 0.5636 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.91e-06/0.299, allocations: 7.969 kB / 0.5636 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.299, allocations: 4 kB / 0.5636 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001605/0.2992, allocations: 113 kB / 0.5637 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.739e-06/0.2992, allocations: 4 kB / 0.5637 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.412e-05/0.2992, allocations: 3.938 kB / 0.5637 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.034e-05/0.2992, allocations: 11.98 kB / 0.5637 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.733e-05/0.2992, allocations: 0 / 0.5637 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.592e-06/0.2993, allocations: 4 kB / 0.5637 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.518e-05/0.2993, allocations: 79.22 kB / 0.5638 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2993, allocations: 0 / 0.5638 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0001976/0.2995, allocations: 19.98 kB / 0.5638 GB, free: 0.6289 MB / 398.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.0004956/0.3, allocations: 0.6591 MB / 0.5645 GB, free: 15.94 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001338/0.3001, allocations: 56.02 kB / 0.5645 GB, free: 15.89 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/0.3001, allocations: 0 / 0.5645 GB, free: 15.89 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.54e-05/0.3002, allocations: 24.36 kB / 0.5645 GB, free: 15.86 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001346/0.3003, allocations: 8 kB / 0.5645 GB, free: 15.86 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004474/0.3007, allocations: 170.7 kB / 0.5647 GB, free: 15.65 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.809e-05/0.3008, allocations: 67.34 kB / 0.5648 GB, free: 15.56 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.546e-05/0.3008, allocations: 11.77 kB / 0.5648 GB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.677e-05/0.3009, allocations: 19.44 kB / 0.5648 GB, free: 15.53 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3009, allocations: 0 / 0.5648 GB, free: 15.53 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02521/0.3261, allocations: 2.091 MB / 0.5668 GB, free: 13.57 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.34/10.67, allocations: 14.34 kB / 0.5668 GB, free: 13.55 MB / 414.1 MB " [Timeout remaining time 649] (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: 13.430469086015364]