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.0008314/0.0008314, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008724/0.0008724, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8998/0.8998, allocations: 177.1 MB / 204.3 MB, free: 5.703 MB / 186.7 MB " [Timeout remaining time 179] 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.2273/0.2273, allocations: 32.79 MB / 293.5 MB, free: 1.203 MB / 266.7 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: Performance of FrontEnd - loaded program: time 3.576e-06/3.576e-06, allocations: 0 / 439.6 MB, free: 4.254 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.817e-05/3.175e-05, allocations: 4.672 kB / 439.6 MB, free: 4.25 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.002185/0.002216, allocations: 0.5245 MB / 440.1 MB, free: 3.727 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005066/0.002723, allocations: 147.5 kB / 440.2 MB, free: 3.582 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.94e-05/0.002762, allocations: 0 / 440.2 MB, free: 3.582 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 2.076e-05/0.002783, allocations: 0 / 440.2 MB, free: 3.582 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003133/0.003096, allocations: 43.77 kB / 440.3 MB, free: 3.539 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 5.129e-06/0.003102, allocations: 0 / 440.3 MB, free: 3.539 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 7.389e-05/0.003175, allocations: 19.92 kB / 440.3 MB, free: 3.52 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.157e-05/0.003237, allocations: 4 kB / 440.3 MB, free: 3.516 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.31e-05/0.00328, allocations: 11.92 kB / 440.3 MB, free: 3.504 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.428e-05/0.003354, allocations: 15.92 kB / 440.3 MB, free: 3.488 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.455e-05/0.003369, allocations: 0 / 440.3 MB, free: 3.488 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001287/0.003498, allocations: 47.89 kB / 440.4 MB, free: 3.441 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.741e-05/0.003515, allocations: 7.984 kB / 440.4 MB, free: 3.434 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.243e-05/0.003537, allocations: 11.92 kB / 440.4 MB, free: 3.422 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001431/0.003681, allocations: 39.88 kB / 440.4 MB, free: 3.383 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.003684, allocations: 4 kB / 440.4 MB, free: 3.379 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.003686, allocations: 0 / 440.4 MB, free: 3.379 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.003691, allocations: 0 / 440.4 MB, free: 3.379 MB / 410.7 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.0003419/0.004033, allocations: 266.2 kB / 440.7 MB, free: 3.086 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.688e-05/0.00409, allocations: 15.97 kB / 440.7 MB, free: 3.07 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.783e-05/0.004138, allocations: 34.73 kB / 440.8 MB, free: 3.027 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.226e-05/0.00417, allocations: 0.9375 kB / 440.8 MB, free: 3.027 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001132/0.004283, allocations: 117.7 kB / 440.9 MB, free: 2.887 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.004299, allocations: 4.375 kB / 440.9 MB, free: 2.883 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.138e-05/0.00431, allocations: 384 / 440.9 MB, free: 2.883 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001583/0.004469, allocations: 66.17 kB / 440.9 MB, free: 2.812 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.004478, allocations: 192 / 440.9 MB, free: 2.812 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.004492, allocations: 4.375 kB / 440.9 MB, free: 2.809 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.004499, allocations: 4.125 kB / 440.9 MB, free: 2.805 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001228/0.004622, allocations: 55.89 kB / 441 MB, free: 2.75 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001852/0.004807, allocations: 140.7 kB / 441.1 MB, free: 2.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001647/0.004972, allocations: 66.56 kB / 441.2 MB, free: 2.496 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.957e-05/0.005032, allocations: 28.84 kB / 441.2 MB, free: 2.465 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002652/0.005297, allocations: 19.98 kB / 441.3 MB, free: 2.445 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.329e-05/0.00533, allocations: 46.77 kB / 441.3 MB, free: 2.391 MB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 1.813e-06/0.005332, allocations: 0 / 441.3 MB, free: 2.391 MB / 410.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002823/0.005614, allocations: 101.6 kB / 441.4 MB, free: 2.285 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.005654, allocations: 55.34 kB / 441.5 MB, free: 2.219 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.724e-05/0.005721, allocations: 97.84 kB / 441.5 MB, free: 2.113 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/0.005736, allocations: 25.7 kB / 441.6 MB, free: 2.082 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.589e-05/0.005762, allocations: 80.14 kB / 441.7 MB, free: 2 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.32e-05/0.005805, allocations: 31.7 kB / 441.7 MB, free: 1.969 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.843e-05/0.005854, allocations: 29.7 kB / 441.7 MB, free: 1.934 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.005954, allocations: 311 kB / 442 MB, free: 1.621 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.267e-05/0.005996, allocations: 27.98 kB / 442 MB, free: 1.594 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.332e-05/0.00603, allocations: 12 kB / 442.1 MB, free: 1.582 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001059/0.006136, allocations: 61.28 kB / 442.1 MB, free: 1.52 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.006138, allocations: 0 / 442.1 MB, free: 1.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001489/0.006287, allocations: 81.64 kB / 442.2 MB, free: 1.434 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.006306, allocations: 4 kB / 442.2 MB, free: 1.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.006313, allocations: 3.938 kB / 442.2 MB, free: 1.426 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2e-05/0.006333, allocations: 4 kB / 442.2 MB, free: 1.422 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001328/0.006465, allocations: 19.92 kB / 442.2 MB, free: 1.402 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.102e-06/0.006471, allocations: 0 / 442.2 MB, free: 1.402 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.876e-05/0.0065, allocations: 11.94 kB / 442.2 MB, free: 1.391 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-06/0.00651, allocations: 4 kB / 442.2 MB, free: 1.387 MB / 410.7 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.324e-05/0.006593, allocations: 109.8 kB / 442.3 MB, free: 1.27 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.881e-05/0.006612, allocations: 7.953 kB / 442.4 MB, free: 1.262 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000244/0.006856, allocations: 105.6 kB / 442.5 MB, free: 1.148 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/0.006859, allocations: 0 / 442.5 MB, free: 1.148 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.625e-06/0.006867, allocations: 7.922 kB / 442.5 MB, free: 1.141 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.006871, allocations: 0 / 442.5 MB, free: 1.141 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001356/0.007006, allocations: 140.7 kB / 442.6 MB, free: 0.9609 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.007009, allocations: 0 / 442.6 MB, free: 0.9609 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.309e-05/0.007092, allocations: 19.98 kB / 442.6 MB, free: 0.9414 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.007095, allocations: 7.938 kB / 442.6 MB, free: 0.9336 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/0.007105, allocations: 4 kB / 442.6 MB, free: 0.9297 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.007107, allocations: 0 / 442.6 MB, free: 0.9297 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.00711, allocations: 3.938 kB / 442.6 MB, free: 0.9258 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001653/0.007275, allocations: 117.1 kB / 442.8 MB, free: 0.793 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.289e-05/0.007288, allocations: 8 kB / 442.8 MB, free: 0.7852 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.558e-05/0.007304, allocations: 4 kB / 442.8 MB, free: 0.7812 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.649e-05/0.00733, allocations: 0 / 442.8 MB, free: 0.7812 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.473e-05/0.007355, allocations: 11.92 kB / 442.8 MB, free: 0.7695 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.232e-06/0.007361, allocations: 0 / 442.8 MB, free: 0.7695 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.301e-05/0.007394, allocations: 83.28 kB / 442.9 MB, free: 0.6875 MB / 410.7 MB Notification: Performance of sort global known variables: time 1e-07/0.007394, allocations: 0 / 442.9 MB, free: 0.6875 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002619/0.007656, allocations: 19.94 kB / 442.9 MB, free: 0.668 MB / 410.7 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.1516/0.1592, allocations: 0.6465 MB / 443.5 MB, free: 46 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001802/0.1594, allocations: 52.83 kB / 443.6 MB, free: 46 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1594, allocations: 0 / 443.6 MB, free: 46 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.531e-05/0.1594, allocations: 27.16 kB / 443.6 MB, free: 46 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001303/0.1596, allocations: 8.875 kB / 443.6 MB, free: 46 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004084/0.16, allocations: 175.3 kB / 443.8 MB, free: 45.86 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.119e-05/0.16, allocations: 67.25 kB / 443.8 MB, free: 45.79 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.326e-05/0.16, allocations: 9.047 kB / 443.9 MB, free: 45.79 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.389e-05/0.1601, allocations: 14.81 kB / 443.9 MB, free: 45.79 MB / 410.7 MB Notification: Performance of SimCode: time 8.72e-07/0.1601, allocations: 0 / 443.9 MB, free: 45.79 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01528/0.1753, allocations: 2.208 MB / 446.1 MB, free: 44.96 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.751/6.926, allocations: 14.02 kB / 446.1 MB, free: 44.95 MB / 410.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 8.827677499502897]