Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.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.Test01RegFun3,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001178/0.001178, allocations: 191.7 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.203/1.203, allocations: 226.5 MB / 243.4 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007218/0.0007218, allocations: 90 kB / 295.5 MB, free: 6.691 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2929/0.2929, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000247/0.000247, allocations: 8 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2498, allocations: 62.96 MB / 0.516 GB, free: 37.12 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.0004375/0.2503, allocations: 223.4 kB / 0.5162 GB, free: 36.97 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001152/0.2515, allocations: 1.357 MB / 0.5175 GB, free: 35.99 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.77e-05/0.2515, allocations: 0 / 0.5175 GB, free: 35.99 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.496e-06/0.2515, allocations: 0 / 0.5175 GB, free: 35.99 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.448e-05/0.2515, allocations: 0 / 0.5175 GB, free: 35.99 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004348/0.252, allocations: 153 kB / 0.5176 GB, free: 35.93 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.118e-05/0.252, allocations: 6.75 kB / 0.5177 GB, free: 35.93 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.374e-05/0.2521, allocations: 0 / 0.5177 GB, free: 35.93 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.505e-05/0.2521, allocations: 6.938 kB / 0.5177 GB, free: 35.93 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.794e-05/0.2521, allocations: 14.11 kB / 0.5177 GB, free: 35.92 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.034e-05/0.2521, allocations: 3.938 kB / 0.5177 GB, free: 35.91 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003047/0.2524, allocations: 255.1 kB / 0.5179 GB, free: 35.86 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.205e-06/0.2525, allocations: 0 / 0.5179 GB, free: 35.86 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.268e-05/0.2525, allocations: 36.45 kB / 0.518 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001038/0.2526, allocations: 81.75 kB / 0.518 GB, free: 35.81 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.2526, allocations: 0 / 0.518 GB, free: 35.81 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2526, allocations: 0 / 0.518 GB, free: 35.81 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.056e-06/0.2526, allocations: 0 / 0.518 GB, free: 35.81 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002248/0.2529, allocations: 336.3 kB / 0.5184 GB, free: 35.45 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.309e-05/0.2529, allocations: 8.438 kB / 0.5184 GB, free: 35.45 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.606e-05/0.2529, allocations: 37.53 kB / 0.5184 GB, free: 35.4 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.829e-05/0.2529, allocations: 0.9375 kB / 0.5184 GB, free: 35.4 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.861e-05/0.253, allocations: 163.9 kB / 0.5186 GB, free: 35.21 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.067e-06/0.253, allocations: 384 / 0.5186 GB, free: 35.21 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.49e-06/0.253, allocations: 3.188 kB / 0.5186 GB, free: 35.21 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.166e-05/0.2531, allocations: 36.7 kB / 0.5186 GB, free: 35.17 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.091e-06/0.2531, allocations: 0 / 0.5186 GB, free: 35.17 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.923e-06/0.2531, allocations: 4 kB / 0.5186 GB, free: 35.16 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.2531, allocations: 0 / 0.5186 GB, free: 35.16 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.703e-05/0.2532, allocations: 6.547 kB / 0.5186 GB, free: 35.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.126e-05/0.2533, allocations: 148.7 kB / 0.5187 GB, free: 34.97 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.801e-05/0.2533, allocations: 14.58 kB / 0.5188 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.185e-05/0.2533, allocations: 7.703 kB / 0.5188 GB, free: 34.94 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.799e-06/0.2533, allocations: 0 / 0.5188 GB, free: 34.94 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.428e-05/0.2533, allocations: 48.88 kB / 0.5188 GB, free: 34.89 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 6.41e-07/0.2533, allocations: 3.938 kB / 0.5188 GB, free: 34.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 9.792e-05/0.2534, allocations: 31.52 kB / 0.5188 GB, free: 34.86 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.734e-05/0.2535, allocations: 51.41 kB / 0.5189 GB, free: 34.79 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.684e-05/0.2535, allocations: 96.03 kB / 0.519 GB, free: 34.7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.023e-06/0.2535, allocations: 25.7 kB / 0.519 GB, free: 34.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.198e-05/0.2535, allocations: 84.14 kB / 0.5191 GB, free: 34.58 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.566e-05/0.2536, allocations: 6.938 kB / 0.5191 GB, free: 34.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.484e-06/0.2536, allocations: 4 kB / 0.5191 GB, free: 34.57 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.763e-05/0.2536, allocations: 310.8 kB / 0.5194 GB, free: 34.26 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.444e-06/0.2536, allocations: 3.938 kB / 0.5194 GB, free: 34.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.871e-06/0.2536, allocations: 2.906 kB / 0.5194 GB, free: 34.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.94e-05/0.2537, allocations: 11.73 kB / 0.5194 GB, free: 34.24 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.62e-07/0.2537, allocations: 0 / 0.5194 GB, free: 34.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.26e-05/0.2537, allocations: 43.95 kB / 0.5195 GB, free: 34.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.997e-06/0.2537, allocations: 10.09 kB / 0.5195 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.226e-06/0.2537, allocations: 0 / 0.5195 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.426e-06/0.2537, allocations: 0 / 0.5195 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.554e-05/0.2538, allocations: 2.906 kB / 0.5195 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.967e-06/0.2538, allocations: 0 / 0.5195 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.116e-05/0.2538, allocations: 0 / 0.5195 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.46e-06/0.2538, allocations: 0 / 0.5195 GB, free: 34.2 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 (1): * Single equations (assignments): 1 * 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.768e-05/0.2539, allocations: 112.1 kB / 0.5196 GB, free: 34.09 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.654e-06/0.2539, allocations: 3.938 kB / 0.5196 GB, free: 34.08 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.182e-05/0.254, allocations: 60.59 kB / 0.5196 GB, free: 34.04 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.254, allocations: 0 / 0.5196 GB, free: 34.04 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.254, allocations: 0 / 0.5196 GB, free: 34.04 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.254, allocations: 0 / 0.5196 GB, free: 34.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.17e-05/0.2541, allocations: 153.7 kB / 0.5198 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.2541, allocations: 0 / 0.5198 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.483e-06/0.2541, allocations: 10.91 kB / 0.5198 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.123e-06/0.2541, allocations: 0 / 0.5198 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.589e-06/0.2541, allocations: 4.031 kB / 0.5198 GB, free: 33.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.2541, allocations: 0 / 0.5198 GB, free: 33.83 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.2541, allocations: 0 / 0.5198 GB, free: 33.83 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.889e-05/0.2542, allocations: 65.17 kB / 0.5199 GB, free: 33.76 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.574e-05/0.2542, allocations: 81.05 kB / 0.5199 GB, free: 33.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.847e-06/0.2542, allocations: 2.969 kB / 0.5199 GB, free: 33.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.598e-05/0.2543, allocations: 0 / 0.5199 GB, free: 33.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.339e-05/0.2543, allocations: 6.969 kB / 0.5199 GB, free: 33.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.987e-06/0.2543, allocations: 3.375 kB / 0.52 GB, free: 33.66 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.56e-05/0.2543, allocations: 78.22 kB / 0.52 GB, free: 33.59 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2543, allocations: 0 / 0.52 GB, free: 33.59 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002146/0.2545, allocations: 40.62 kB / 0.5201 GB, free: 33.58 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 (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0003114/0.2548, allocations: 0.6366 MB / 0.5207 GB, free: 32.97 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 4.809e-05/0.2549, allocations: 11.22 kB / 0.5207 GB, free: 32.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2549, allocations: 2.75 kB / 0.5207 GB, free: 32.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.15e-05/0.2549, allocations: 28.2 kB / 0.5207 GB, free: 32.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001339/0.2551, allocations: 0 / 0.5207 GB, free: 32.93 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002614/0.2553, allocations: 145.5 kB / 0.5209 GB, free: 32.76 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.186e-05/0.2554, allocations: 0.6794 MB / 0.5215 GB, free: 32.06 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.65e-05/0.2555, allocations: 10.47 kB / 0.5215 GB, free: 32.05 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2555, allocations: 0 / 0.5215 GB, free: 32.05 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.324/2.579, allocations: 1.038 MB / 0.5226 GB, free: 32 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestUtilities_Test01RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestUtilities_Test01RegFun3.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches