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: translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008923/0.0008924, allocations: 197.7 kB / 15.8 MB, free: 6.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.23/1.23, allocations: 226.6 MB / 243.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007956/0.0007956, allocations: 94.89 kB / 295.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1872/0.1872, allocations: 44.84 MB / 392 MB, free: 9.344 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002329/0.000233, allocations: 8 kB / 464.7 MB, free: 49.79 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08335/0.08359, allocations: 62.96 MB / 0.5153 GB, free: 2.789 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0005278/0.08416, allocations: 218.1 kB / 0.5155 GB, free: 2.574 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001466/0.08564, allocations: 1.351 MB / 0.5169 GB, free: 1.203 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.686e-05/0.08567, allocations: 0 / 0.5169 GB, free: 1.203 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.213e-05/0.08569, allocations: 0 / 0.5169 GB, free: 1.203 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 1.888e-05/0.08572, allocations: 3.938 kB / 0.5169 GB, free: 1.199 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004625/0.08618, allocations: 146.1 kB / 0.517 GB, free: 1.059 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 3.167e-05/0.08622, allocations: 7.938 kB / 0.517 GB, free: 1.051 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.675e-05/0.08627, allocations: 3.984 kB / 0.517 GB, free: 1.047 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.349e-05/0.08629, allocations: 4 kB / 0.517 GB, free: 1.043 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.79e-05/0.08633, allocations: 12 kB / 0.517 GB, free: 1.031 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.558e-06/0.08635, allocations: 0 / 0.517 GB, free: 1.031 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003589/0.08671, allocations: 255.6 kB / 0.5173 GB, free: 0.7812 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.526e-05/0.08674, allocations: 4 kB / 0.5173 GB, free: 0.7773 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.896e-05/0.08676, allocations: 25.7 kB / 0.5173 GB, free: 0.7461 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001187/0.08689, allocations: 83.81 kB / 0.5174 GB, free: 0.6641 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.0869, allocations: 0 / 0.5174 GB, free: 0.6641 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.0869, allocations: 0 / 0.5174 GB, free: 0.6641 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.08691, allocations: 0 / 0.5174 GB, free: 0.6641 MB / 346.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.0002874/0.0872, allocations: 335.4 kB / 0.5177 GB, free: 296 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.087e-05/0.08724, allocations: 12.03 kB / 0.5177 GB, free: 284 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.567e-05/0.08727, allocations: 0 / 0.5177 GB, free: 284 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.303e-05/0.08735, allocations: 163 kB / 0.5179 GB, free: 80 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.474e-06/0.08736, allocations: 0 / 0.5179 GB, free: 80 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.335e-06/0.08738, allocations: 0 / 0.5179 GB, free: 80 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001014/0.08748, allocations: 49.61 kB / 0.5179 GB, free: 24 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.771e-06/0.0875, allocations: 0 / 0.5179 GB, free: 24 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.296e-06/0.08751, allocations: 0 / 0.5179 GB, free: 24 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.08752, allocations: 0 / 0.5179 GB, free: 24 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.622e-05/0.08755, allocations: 11.98 kB / 0.5179 GB, free: 12 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1602/0.2477, allocations: 239.1 kB / 0.5181 GB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.83e-05/0.2478, allocations: 17.97 kB / 0.5182 GB, free: 11.72 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.383e-05/0.2478, allocations: 7.281 kB / 0.5182 GB, free: 11.71 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.57e-06/0.2478, allocations: 0.5625 kB / 0.5182 GB, free: 11.71 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.677e-05/0.2479, allocations: 42.52 kB / 0.5182 GB, free: 11.68 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.844e-06/0.2479, allocations: 0.9688 kB / 0.5182 GB, free: 11.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001079/0.248, allocations: 36.27 kB / 0.5182 GB, free: 11.64 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.477e-05/0.248, allocations: 52.94 kB / 0.5183 GB, free: 11.58 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.791e-05/0.248, allocations: 98.55 kB / 0.5184 GB, free: 11.48 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.34e-05/0.2481, allocations: 29.31 kB / 0.5184 GB, free: 11.45 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.962e-05/0.2481, allocations: 89.17 kB / 0.5185 GB, free: 11.37 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.559e-06/0.2481, allocations: 2.469 kB / 0.5185 GB, free: 11.37 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.723e-06/0.2481, allocations: 1.062 kB / 0.5185 GB, free: 11.37 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.133e-05/0.2481, allocations: 317.8 kB / 0.5188 GB, free: 11.05 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.057e-05/0.2482, allocations: 3.625 kB / 0.5188 GB, free: 11.05 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.801e-05/0.2482, allocations: 23.36 kB / 0.5188 GB, free: 11.03 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.687e-05/0.2482, allocations: 5.188 kB / 0.5188 GB, free: 11.03 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.2482, allocations: 4.594 kB / 0.5188 GB, free: 11.03 MB / 346.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.262e-05/0.2483, allocations: 51.25 kB / 0.5189 GB, free: 10.99 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.2483, allocations: 5.562 kB / 0.5189 GB, free: 10.99 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.2483, allocations: 2.344 kB / 0.5189 GB, free: 10.99 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.013e-05/0.2483, allocations: 1.953 kB / 0.5189 GB, free: 10.99 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.917e-05/0.2484, allocations: 5.516 kB / 0.5189 GB, free: 10.99 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.137e-06/0.2484, allocations: 1.438 kB / 0.5189 GB, free: 10.99 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.727e-05/0.2484, allocations: 2.75 kB / 0.5189 GB, free: 10.99 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.022e-06/0.2484, allocations: 5.266 kB / 0.5189 GB, free: 10.99 MB / 346.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.855e-05/0.2485, allocations: 120.1 kB / 0.519 GB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.145e-05/0.2485, allocations: 2 kB / 0.519 GB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.611e-05/0.2486, allocations: 45.12 kB / 0.5191 GB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.2486, allocations: 0.6562 kB / 0.5191 GB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2486, allocations: 2.688 kB / 0.5191 GB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-06/0.2486, allocations: 1.969 kB / 0.5191 GB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.516e-05/0.2487, allocations: 154 kB / 0.5192 GB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.2487, allocations: 5.172 kB / 0.5192 GB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.2487, allocations: 2.969 kB / 0.5192 GB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.2487, allocations: 1 kB / 0.5192 GB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.649e-06/0.2487, allocations: 1.125 kB / 0.5192 GB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.2487, allocations: 0.7812 kB / 0.5192 GB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.2487, allocations: 0.75 kB / 0.5192 GB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.309e-05/0.2488, allocations: 137.4 kB / 0.5194 GB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.262e-05/0.2488, allocations: 81.56 kB / 0.5195 GB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.506e-06/0.2488, allocations: 1.203 kB / 0.5195 GB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.778e-05/0.2489, allocations: 5.891 kB / 0.5195 GB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.325e-06/0.2489, allocations: 3.516 kB / 0.5195 GB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-06/0.2489, allocations: 1.094 kB / 0.5195 GB, free: 10.41 MB / 346.7 MB Notification: Performance of sorting global known variables: time 1.524e-05/0.2489, allocations: 80.09 kB / 0.5195 GB, free: 10.34 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2489, allocations: 0 / 0.5195 GB, free: 10.34 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003173/0.2493, allocations: 40.25 kB / 0.5196 GB, free: 10.34 MB / 346.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.0002153/0.2495, allocations: 147 kB / 0.5197 GB, free: 10.24 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 5.014e-05/0.2495, allocations: 12.53 kB / 0.5197 GB, free: 10.24 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.102e-06/0.2496, allocations: 0 / 0.5197 GB, free: 10.24 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.044e-05/0.2496, allocations: 30.22 kB / 0.5198 GB, free: 10.21 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001715/0.2498, allocations: 2.344 kB / 0.5198 GB, free: 10.21 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001357/0.2499, allocations: 112.1 kB / 0.5199 GB, free: 10.08 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.994e-05/0.25, allocations: 0.6812 MB / 0.5205 GB, free: 9.375 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.919e-06/0.25, allocations: 8.312 kB / 0.5205 GB, free: 9.367 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.25, allocations: 4.688 kB / 0.5205 GB, free: 9.363 MB / 346.7 MB Notification: Performance of Templates: time 0.001935/0.2519, allocations: 0.903 MB / 0.5214 GB, free: 9.324 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (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 & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins/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