Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009111/0.0009113, allocations: 193.8 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.166/1.166, allocations: 226.5 MB / 243.4 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007458/0.0007458, allocations: 100.1 kB / 295.5 MB, free: 6.895 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2614/0.2614, allocations: 44.83 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002759/0.000276, allocations: 8 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2389/0.2392, allocations: 62.96 MB / 0.5159 GB, free: 37.01 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.0004505/0.2397, allocations: 256.3 kB / 0.5162 GB, free: 36.84 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002742/0.2399, allocations: 148.1 kB / 0.5163 GB, free: 36.75 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.018e-05/0.24, allocations: 3.938 kB / 0.5163 GB, free: 36.74 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.125e-06/0.24, allocations: 0 / 0.5163 GB, free: 36.74 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001654/0.2402, allocations: 27.19 kB / 0.5164 GB, free: 36.73 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.555e-06/0.2402, allocations: 4 kB / 0.5164 GB, free: 36.73 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.773e-05/0.2402, allocations: 16.78 kB / 0.5164 GB, free: 36.72 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.464e-05/0.2403, allocations: 6.766 kB / 0.5164 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.481e-05/0.2403, allocations: 14.14 kB / 0.5164 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.924e-05/0.2403, allocations: 12.48 kB / 0.5164 GB, free: 36.7 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 9.007e-06/0.2403, allocations: 0 / 0.5164 GB, free: 36.7 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.279e-05/0.2404, allocations: 54.03 kB / 0.5165 GB, free: 36.69 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.161e-06/0.2404, allocations: 0 / 0.5165 GB, free: 36.69 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.393e-05/0.2405, allocations: 43.7 kB / 0.5165 GB, free: 36.64 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 5.84e-05/0.2405, allocations: 23.22 kB / 0.5165 GB, free: 36.64 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2405, allocations: 3 kB / 0.5165 GB, free: 36.64 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2405, allocations: 4 kB / 0.5165 GB, free: 36.63 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.006e-06/0.2406, allocations: 0 / 0.5165 GB, free: 36.63 MB / 378.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.0001644/0.2407, allocations: 335.7 kB / 0.5169 GB, free: 36.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.2408, allocations: 12.47 kB / 0.5169 GB, free: 36.27 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.676e-05/0.2408, allocations: 34.75 kB / 0.5169 GB, free: 36.22 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.964e-05/0.2408, allocations: 4.312 kB / 0.5169 GB, free: 36.22 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.642e-05/0.2409, allocations: 166.1 kB / 0.5171 GB, free: 36.02 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.337e-06/0.2409, allocations: 6.625 kB / 0.5171 GB, free: 36.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.105e-06/0.2409, allocations: 3.156 kB / 0.5171 GB, free: 36.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.804e-05/0.241, allocations: 66.84 kB / 0.5171 GB, free: 35.97 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.703e-06/0.241, allocations: 3.938 kB / 0.5171 GB, free: 35.97 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.124e-06/0.241, allocations: 0 / 0.5171 GB, free: 35.97 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.537e-06/0.241, allocations: 0 / 0.5171 GB, free: 35.97 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.91e-05/0.2411, allocations: 53.48 kB / 0.5172 GB, free: 35.96 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001082/0.2412, allocations: 168.3 kB / 0.5174 GB, free: 35.76 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.963e-05/0.2414, allocations: 84.69 kB / 0.5174 GB, free: 35.71 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.803e-05/0.2414, allocations: 34.23 kB / 0.5175 GB, free: 35.69 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002389/0.2416, allocations: 256.2 kB / 0.5177 GB, free: 35.4 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.146e-05/0.2417, allocations: 33.8 kB / 0.5177 GB, free: 35.36 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.092e-06/0.2417, allocations: 6.812 kB / 0.5178 GB, free: 35.36 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001702/0.2418, allocations: 106 kB / 0.5179 GB, free: 35.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.674e-05/0.2419, allocations: 54.25 kB / 0.5179 GB, free: 35.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.116e-05/0.2419, allocations: 93.86 kB / 0.518 GB, free: 35.13 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.094e-06/0.2419, allocations: 25.7 kB / 0.518 GB, free: 35.1 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.327e-06/0.2419, allocations: 83.02 kB / 0.5181 GB, free: 35.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.463e-05/0.242, allocations: 33.72 kB / 0.5181 GB, free: 34.99 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.578e-06/0.242, allocations: 7.938 kB / 0.5181 GB, free: 34.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.39e-05/0.242, allocations: 317 kB / 0.5184 GB, free: 34.67 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.623e-05/0.242, allocations: 20.38 kB / 0.5185 GB, free: 34.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.363e-05/0.2421, allocations: 17.03 kB / 0.5185 GB, free: 34.66 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.944e-05/0.2421, allocations: 44.64 kB / 0.5185 GB, free: 34.63 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2421, allocations: 6.75 kB / 0.5185 GB, free: 34.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 9.096e-05/0.2422, allocations: 84.91 kB / 0.5186 GB, free: 34.58 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.039e-05/0.2423, allocations: 12.06 kB / 0.5186 GB, free: 34.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.537e-06/0.2423, allocations: 0 / 0.5186 GB, free: 34.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.127e-06/0.2423, allocations: 0 / 0.5186 GB, free: 34.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.206e-05/0.2424, allocations: 15.53 kB / 0.5186 GB, free: 34.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.2424, allocations: 4.062 kB / 0.5186 GB, free: 34.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.236e-05/0.2424, allocations: 11.84 kB / 0.5186 GB, free: 34.56 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.743e-06/0.2424, allocations: 2.969 kB / 0.5186 GB, free: 34.56 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 3.995e-05/0.2425, allocations: 113.8 kB / 0.5188 GB, free: 34.44 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.838e-06/0.2425, allocations: 10.62 kB / 0.5188 GB, free: 34.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001338/0.2426, allocations: 102.2 kB / 0.5189 GB, free: 34.38 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.2426, allocations: 0 / 0.5189 GB, free: 34.38 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.2426, allocations: 0 / 0.5189 GB, free: 34.38 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.2426, allocations: 0 / 0.5189 GB, free: 34.38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.348e-05/0.2427, allocations: 181.7 kB / 0.519 GB, free: 34.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.2427, allocations: 0 / 0.519 GB, free: 34.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.735e-05/0.2428, allocations: 14.92 kB / 0.5191 GB, free: 34.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.2428, allocations: 7.938 kB / 0.5191 GB, free: 34.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.773e-06/0.2428, allocations: 6.938 kB / 0.5191 GB, free: 34.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.2428, allocations: 0 / 0.5191 GB, free: 34.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.2428, allocations: 0 / 0.5191 GB, free: 34.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.643e-05/0.2429, allocations: 106 kB / 0.5192 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.43e-05/0.2429, allocations: 79.92 kB / 0.5192 GB, free: 33.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.1e-05/0.243, allocations: 7.938 kB / 0.5193 GB, free: 33.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.192e-05/0.243, allocations: 0 / 0.5193 GB, free: 33.97 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.858e-05/0.243, allocations: 12.89 kB / 0.5193 GB, free: 33.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.959e-06/0.243, allocations: 4 kB / 0.5193 GB, free: 33.96 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.292e-05/0.243, allocations: 78 kB / 0.5193 GB, free: 33.89 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.243, allocations: 0 / 0.5193 GB, free: 33.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001863/0.2432, allocations: 18.55 kB / 0.5194 GB, free: 33.89 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002439/0.2435, allocations: 0.6677 MB / 0.52 GB, free: 33.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 9.086e-05/0.2436, allocations: 54.55 kB / 0.5201 GB, free: 33.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.2436, allocations: 0 / 0.5201 GB, free: 33.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.143e-05/0.2436, allocations: 30.61 kB / 0.5201 GB, free: 33.22 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001197/0.2437, allocations: 7.5 kB / 0.5201 GB, free: 33.22 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003186/0.2441, allocations: 198.7 kB / 0.5203 GB, free: 33.02 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.215e-05/0.2442, allocations: 0.6867 MB / 0.521 GB, free: 32.32 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.046e-05/0.2442, allocations: 17.38 kB / 0.521 GB, free: 32.31 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2442, allocations: 0 / 0.521 GB, free: 32.31 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.193/2.437, allocations: 0.9326 MB / 0.5219 GB, free: 32.25 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestUtilities_TestRegFunctions_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestUtilities_TestRegFunctions.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches