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: translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008822/0.0008822, allocations: 201.1 kB / 15.8 MB, free: 6.023 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.208/1.208, allocations: 226.6 MB / 243.1 MB, free: 14.28 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007448/0.0007448, allocations: 94.3 kB / 295.1 MB, free: 10.03 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2064/0.2064, allocations: 44.84 MB / 392 MB, free: 9.297 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002145/0.0002145, allocations: 4 kB / 464.7 MB, free: 49.74 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08139/0.08161, allocations: 62.95 MB / 0.5153 GB, free: 2.75 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.0004732/0.08212, allocations: 218.2 kB / 0.5155 GB, free: 2.535 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001439/0.08357, allocations: 1.351 MB / 0.5168 GB, free: 1.164 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.692e-05/0.0836, allocations: 0 / 0.5168 GB, free: 1.164 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 8.085e-06/0.08362, allocations: 0 / 0.5168 GB, free: 1.164 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 2.604e-05/0.08365, allocations: 3.938 kB / 0.5169 GB, free: 1.16 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004691/0.08412, allocations: 153.2 kB / 0.517 GB, free: 1.016 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 3.284e-05/0.08416, allocations: 7.938 kB / 0.517 GB, free: 1.008 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.093e-05/0.0842, allocations: 7.938 kB / 0.517 GB, free: 1 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.633e-05/0.08422, allocations: 11.98 kB / 0.517 GB, free: 0.9883 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.328e-05/0.08426, allocations: 0 / 0.517 GB, free: 0.9883 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.076e-05/0.08428, allocations: 0 / 0.517 GB, free: 0.9883 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003433/0.08462, allocations: 259.6 kB / 0.5173 GB, free: 0.7344 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.052e-06/0.08464, allocations: 0 / 0.5173 GB, free: 0.7344 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.981e-05/0.08467, allocations: 29.7 kB / 0.5173 GB, free: 0.6992 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001145/0.08479, allocations: 83.81 kB / 0.5174 GB, free: 0.6172 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.08481, allocations: 0 / 0.5174 GB, free: 0.6172 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.08481, allocations: 4 kB / 0.5174 GB, free: 0.6133 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.146e-06/0.08483, allocations: 7.938 kB / 0.5174 GB, free: 0.6055 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002774/0.08511, allocations: 327.4 kB / 0.5177 GB, free: 244 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.904e-05/0.08515, allocations: 8.031 kB / 0.5177 GB, free: 236 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.3e-05/0.08518, allocations: 0 / 0.5177 GB, free: 236 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.728e-05/0.08528, allocations: 167 kB / 0.5179 GB, free: 28 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.087e-06/0.08529, allocations: 0 / 0.5179 GB, free: 28 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.286e-06/0.08531, allocations: 0 / 0.5179 GB, free: 28 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1596/0.2449, allocations: 43.44 kB / 0.5179 GB, free: 11.96 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.2449, allocations: 3.531 kB / 0.5179 GB, free: 11.96 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.499e-05/0.2449, allocations: 0 / 0.5179 GB, free: 11.96 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.2449, allocations: 0 / 0.5179 GB, free: 11.96 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.186e-05/0.245, allocations: 1.375 kB / 0.5179 GB, free: 11.96 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000102/0.2451, allocations: 144.2 kB / 0.5181 GB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.215e-05/0.2451, allocations: 17.67 kB / 0.5181 GB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.562e-05/0.2452, allocations: 7.828 kB / 0.5181 GB, free: 11.74 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.476e-06/0.2452, allocations: 2.438 kB / 0.5181 GB, free: 11.74 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.72e-05/0.2452, allocations: 37.73 kB / 0.5181 GB, free: 11.7 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.2452, allocations: 0 / 0.5181 GB, free: 11.7 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001149/0.2453, allocations: 35.92 kB / 0.5181 GB, free: 11.67 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.825e-05/0.2453, allocations: 54.31 kB / 0.5182 GB, free: 11.61 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.42e-05/0.2454, allocations: 94.95 kB / 0.5183 GB, free: 11.51 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.795e-06/0.2454, allocations: 27.86 kB / 0.5183 GB, free: 11.48 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.192e-05/0.2454, allocations: 84.7 kB / 0.5184 GB, free: 11.4 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.881e-05/0.2454, allocations: 3.5 kB / 0.5184 GB, free: 11.4 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.994e-06/0.2455, allocations: 3.453 kB / 0.5184 GB, free: 11.4 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.651e-05/0.2455, allocations: 317.4 kB / 0.5187 GB, free: 11.08 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.858e-06/0.2455, allocations: 2.141 kB / 0.5187 GB, free: 11.08 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.374e-06/0.2455, allocations: 3.219 kB / 0.5187 GB, free: 11.08 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.355e-05/0.2455, allocations: 2.125 kB / 0.5187 GB, free: 11.08 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2455, allocations: 4.391 kB / 0.5187 GB, free: 11.08 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.759e-05/0.2456, allocations: 37.73 kB / 0.5188 GB, free: 11.05 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.2456, allocations: 5.703 kB / 0.5188 GB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.2456, allocations: 0 / 0.5188 GB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.388e-06/0.2456, allocations: 0.625 kB / 0.5188 GB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.704e-05/0.2457, allocations: 2.688 kB / 0.5188 GB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.98e-06/0.2457, allocations: 1.203 kB / 0.5188 GB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.272e-05/0.2457, allocations: 1.156 kB / 0.5188 GB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.2457, allocations: 4.312 kB / 0.5188 GB, free: 11.05 MB / 346.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 4.059e-05/0.2458, allocations: 113.2 kB / 0.5189 GB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.536e-06/0.2458, allocations: 1.641 kB / 0.5189 GB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001/0.2459, allocations: 53.86 kB / 0.5189 GB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.2459, allocations: 0.9062 kB / 0.5189 GB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.2459, allocations: 6.375 kB / 0.5189 GB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.2459, allocations: 1.031 kB / 0.5189 GB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.891e-05/0.246, allocations: 154.3 kB / 0.5191 GB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.246, allocations: 1.562 kB / 0.5191 GB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.246, allocations: 0 / 0.5191 GB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.246, allocations: 0.5938 kB / 0.5191 GB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.881e-06/0.246, allocations: 1.578 kB / 0.5191 GB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.246, allocations: 2.453 kB / 0.5191 GB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.246, allocations: 2.344 kB / 0.5191 GB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.333e-05/0.2461, allocations: 66.78 kB / 0.5192 GB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.367e-05/0.2461, allocations: 79.25 kB / 0.5192 GB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.08e-05/0.2461, allocations: 1.547 kB / 0.5192 GB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.242e-05/0.2462, allocations: 7.234 kB / 0.5192 GB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.558e-05/0.2462, allocations: 4.094 kB / 0.5192 GB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-06/0.2462, allocations: 1.844 kB / 0.5192 GB, free: 10.53 MB / 346.7 MB Notification: Performance of sorting global known variables: time 1.64e-05/0.2463, allocations: 78 kB / 0.5193 GB, free: 10.45 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2463, allocations: 5.219 kB / 0.5193 GB, free: 10.45 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000253/0.2465, allocations: 39.56 kB / 0.5194 GB, free: 10.45 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.0002275/0.2468, allocations: 137.7 kB / 0.5195 GB, free: 10.36 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.331e-05/0.2468, allocations: 9.688 kB / 0.5195 GB, free: 10.36 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2468, allocations: 0 / 0.5195 GB, free: 10.36 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.401e-05/0.2469, allocations: 31.22 kB / 0.5195 GB, free: 10.33 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001225/0.247, allocations: 7.094 kB / 0.5195 GB, free: 10.33 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001674/0.2472, allocations: 111.8 kB / 0.5196 GB, free: 10.2 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.08e-05/0.2472, allocations: 0.6725 MB / 0.5203 GB, free: 9.504 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.006e-05/0.2473, allocations: 12.88 kB / 0.5203 GB, free: 9.492 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.2473, allocations: 0 / 0.5203 GB, free: 9.492 MB / 346.7 MB Notification: Performance of Templates: time 0.002111/0.2494, allocations: 0.8957 MB / 0.5212 GB, free: 9.453 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.makefile (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 & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins/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