Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.Test02RegFun3,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009499/0.00095, allocations: 198.4 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.219/1.219, allocations: 226.5 MB / 243.4 MB, free: 8.238 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007354/0.0007355, allocations: 96.8 kB / 295.5 MB, free: 6.918 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2663/0.2663, allocations: 44.82 MB / 392.3 MB, free: 35.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002632/0.0002632, allocations: 11.98 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2633, allocations: 62.96 MB / 0.516 GB, free: 37 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0004577/0.2638, allocations: 220.4 kB / 0.5162 GB, free: 36.86 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001166/0.265, allocations: 1.351 MB / 0.5175 GB, free: 35.88 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.831e-05/0.265, allocations: 0 / 0.5175 GB, free: 35.88 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.907e-06/0.265, allocations: 4 kB / 0.5175 GB, free: 35.88 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.483e-05/0.2651, allocations: 0 / 0.5175 GB, free: 35.88 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004522/0.2655, allocations: 162.6 kB / 0.5176 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.098e-05/0.2656, allocations: 2.969 kB / 0.5176 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.225e-05/0.2656, allocations: 3.375 kB / 0.5177 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.48e-05/0.2656, allocations: 2.844 kB / 0.5177 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.803e-05/0.2657, allocations: 14.84 kB / 0.5177 GB, free: 35.8 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 9.799e-06/0.2657, allocations: 0 / 0.5177 GB, free: 35.8 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003036/0.266, allocations: 255.5 kB / 0.5179 GB, free: 35.75 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.037e-06/0.266, allocations: 8 kB / 0.5179 GB, free: 35.75 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.362e-05/0.266, allocations: 29.64 kB / 0.5179 GB, free: 35.71 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001072/0.2662, allocations: 83.67 kB / 0.518 GB, free: 35.7 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2662, allocations: 0 / 0.518 GB, free: 35.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2662, allocations: 0 / 0.518 GB, free: 35.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.116e-06/0.2662, allocations: 3.938 kB / 0.518 GB, free: 35.7 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002258/0.2664, allocations: 331.9 kB / 0.5183 GB, free: 35.34 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.416e-05/0.2664, allocations: 8.656 kB / 0.5184 GB, free: 35.34 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.396e-05/0.2665, allocations: 30.75 kB / 0.5184 GB, free: 35.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.093e-05/0.2665, allocations: 3.875 kB / 0.5184 GB, free: 35.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.705e-05/0.2666, allocations: 167.6 kB / 0.5185 GB, free: 35.1 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.809e-06/0.2666, allocations: 4.375 kB / 0.5186 GB, free: 35.09 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.492e-06/0.2666, allocations: 3.344 kB / 0.5186 GB, free: 35.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.872e-05/0.2667, allocations: 36.08 kB / 0.5186 GB, free: 35.06 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.2667, allocations: 0 / 0.5186 GB, free: 35.06 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.496e-06/0.2667, allocations: 3.125 kB / 0.5186 GB, free: 35.06 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.2667, allocations: 3.984 kB / 0.5186 GB, free: 35.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.732e-05/0.2667, allocations: 15.03 kB / 0.5186 GB, free: 35.04 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002452/0.267, allocations: 248.4 kB / 0.5188 GB, free: 34.77 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.934e-05/0.267, allocations: 14.58 kB / 0.5189 GB, free: 34.74 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.327e-05/0.2671, allocations: 11.95 kB / 0.5189 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.893e-06/0.2671, allocations: 0 / 0.5189 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.292e-05/0.2671, allocations: 33.94 kB / 0.5189 GB, free: 34.69 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.2671, allocations: 0 / 0.5189 GB, free: 34.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001079/0.2672, allocations: 36.73 kB / 0.5189 GB, free: 34.66 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.667e-05/0.2672, allocations: 55.53 kB / 0.519 GB, free: 34.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.949e-05/0.2673, allocations: 100.3 kB / 0.5191 GB, free: 34.49 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.191e-06/0.2673, allocations: 25.7 kB / 0.5191 GB, free: 34.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.157e-05/0.2673, allocations: 88.75 kB / 0.5192 GB, free: 34.37 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.438e-06/0.2673, allocations: 3.906 kB / 0.5192 GB, free: 34.37 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.156e-06/0.2673, allocations: 0 / 0.5192 GB, free: 34.37 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.548e-05/0.2674, allocations: 318.7 kB / 0.5195 GB, free: 34.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.846e-06/0.2674, allocations: 7.125 kB / 0.5195 GB, free: 34.04 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.572e-05/0.2674, allocations: 24.83 kB / 0.5195 GB, free: 34.02 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.514e-05/0.2674, allocations: 24.11 kB / 0.5196 GB, free: 33.99 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.2674, allocations: 0 / 0.5196 GB, free: 33.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 5.342e-05/0.2675, allocations: 50.28 kB / 0.5196 GB, free: 33.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.427e-06/0.2675, allocations: 9.656 kB / 0.5196 GB, free: 33.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.536e-06/0.2675, allocations: 0 / 0.5196 GB, free: 33.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.267e-06/0.2675, allocations: 2.75 kB / 0.5196 GB, free: 33.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.905e-05/0.2676, allocations: 5.844 kB / 0.5196 GB, free: 33.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.2676, allocations: 0 / 0.5196 GB, free: 33.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.648e-05/0.2676, allocations: 0 / 0.5196 GB, free: 33.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/0.2676, allocations: 10.36 kB / 0.5196 GB, free: 33.94 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (3): * Single equations (assignments): 3 * 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.823e-05/0.2677, allocations: 116.5 kB / 0.5197 GB, free: 33.82 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.99e-05/0.2677, allocations: 0 / 0.5197 GB, free: 33.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.371e-05/0.2678, allocations: 52 kB / 0.5198 GB, free: 33.78 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.2678, allocations: 3.938 kB / 0.5198 GB, free: 33.78 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.2678, allocations: 0 / 0.5198 GB, free: 33.78 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.633e-06/0.2678, allocations: 0 / 0.5198 GB, free: 33.78 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.486e-05/0.2679, allocations: 152.4 kB / 0.5199 GB, free: 33.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.2679, allocations: 6.094 kB / 0.52 GB, free: 33.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.7e-07/0.2679, allocations: 0 / 0.52 GB, free: 33.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.2679, allocations: 4.031 kB / 0.52 GB, free: 33.58 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.388e-06/0.2679, allocations: 0 / 0.52 GB, free: 33.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-07/0.2679, allocations: 0 / 0.52 GB, free: 33.58 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2679, allocations: 0 / 0.52 GB, free: 33.58 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.132e-05/0.268, allocations: 141.7 kB / 0.5201 GB, free: 33.44 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.27e-05/0.268, allocations: 77.11 kB / 0.5202 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.216e-06/0.268, allocations: 0 / 0.5202 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.502e-05/0.2681, allocations: 0 / 0.5202 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.259e-05/0.2681, allocations: 7.938 kB / 0.5202 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/0.2681, allocations: 4 kB / 0.5202 GB, free: 33.34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.397e-05/0.2681, allocations: 75.28 kB / 0.5202 GB, free: 33.26 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2681, allocations: 0 / 0.5202 GB, free: 33.26 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002628/0.2684, allocations: 41.62 kB / 0.5203 GB, free: 33.26 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.0003257/0.2687, allocations: 0.7129 MB / 0.521 GB, free: 32.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 5.469e-05/0.2688, allocations: 12.14 kB / 0.521 GB, free: 32.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.472e-06/0.2688, allocations: 0 / 0.521 GB, free: 32.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.171e-05/0.2688, allocations: 29.08 kB / 0.521 GB, free: 32.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001987/0.269, allocations: 4 kB / 0.521 GB, free: 32.54 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003082/0.2694, allocations: 146.2 kB / 0.5212 GB, free: 32.37 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001117/0.2695, allocations: 0.6793 MB / 0.5218 GB, free: 31.67 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.91e-05/0.2695, allocations: 13.97 kB / 0.5218 GB, free: 31.66 MB / 378.7 MB Notification: Performance of SimCode: time 3e-07/0.2695, allocations: 0 / 0.5218 GB, free: 31.66 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.326/2.595, allocations: 1.045 MB / 0.5229 GB, free: 31.61 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestUtilities_Test02RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches