Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001929/0.00193, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.3/1.3, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001008/0.001007, allocations: 109.5 kB / 296.7 MB, free: 6.484 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3158/0.3158, allocations: 44.84 MB / 392.7 MB, free: 34.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001161, allocations: 67.89 kB / 465.5 MB, free: 12.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2965/0.2977, allocations: 62.02 MB / 0.5152 GB, free: 37.7 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001489/0.2992, allocations: 0.5519 MB / 0.5157 GB, free: 37.36 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001499/0.3007, allocations: 1.447 MB / 0.5171 GB, free: 36.34 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.393e-05/0.3008, allocations: 0 / 0.5171 GB, free: 36.34 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.148e-05/0.3008, allocations: 0 / 0.5171 GB, free: 36.34 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 3.211e-05/0.3008, allocations: 7.938 kB / 0.5171 GB, free: 36.33 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005215/0.3014, allocations: 143 kB / 0.5172 GB, free: 36.28 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.622e-05/0.3014, allocations: 15 kB / 0.5173 GB, free: 36.27 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.296e-05/0.3015, allocations: 6.438 kB / 0.5173 GB, free: 36.27 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.957e-05/0.3015, allocations: 6.891 kB / 0.5173 GB, free: 36.26 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.818e-05/0.3015, allocations: 0 / 0.5173 GB, free: 36.26 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.262e-05/0.3016, allocations: 0 / 0.5173 GB, free: 36.26 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003472/0.3019, allocations: 269.2 kB / 0.5175 GB, free: 36.2 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.196e-05/0.3019, allocations: 0 / 0.5175 GB, free: 36.2 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.025e-05/0.302, allocations: 6.875 kB / 0.5175 GB, free: 36.2 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001829/0.3021, allocations: 144.2 kB / 0.5177 GB, free: 36.16 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3022, allocations: 0 / 0.5177 GB, free: 36.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.3022, allocations: 0 / 0.5177 GB, free: 36.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.3022, allocations: 3.938 kB / 0.5177 GB, free: 36.15 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.0002788/0.3025, allocations: 341.6 kB / 0.518 GB, free: 35.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.3025, allocations: 10.69 kB / 0.518 GB, free: 35.79 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.909e-05/0.3025, allocations: 0.9375 kB / 0.518 GB, free: 35.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.697e-05/0.3026, allocations: 160.4 kB / 0.5182 GB, free: 35.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.04e-05/0.3026, allocations: 3.219 kB / 0.5182 GB, free: 35.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.109e-05/0.3026, allocations: 4.375 kB / 0.5182 GB, free: 35.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001064/0.3027, allocations: 43.41 kB / 0.5182 GB, free: 35.55 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.3028, allocations: 0 / 0.5182 GB, free: 35.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.3028, allocations: 0 / 0.5182 GB, free: 35.55 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-06/0.3028, allocations: 2.906 kB / 0.5182 GB, free: 35.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.595e-05/0.3028, allocations: 6.906 kB / 0.5182 GB, free: 35.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003195/0.3031, allocations: 247.9 kB / 0.5185 GB, free: 35.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.649e-05/0.3032, allocations: 21.14 kB / 0.5185 GB, free: 35.24 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.462e-05/0.3032, allocations: 4.859 kB / 0.5185 GB, free: 35.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.626e-06/0.3032, allocations: 0 / 0.5185 GB, free: 35.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.688e-05/0.3032, allocations: 40.89 kB / 0.5185 GB, free: 35.19 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.71e-07/0.3033, allocations: 0 / 0.5185 GB, free: 35.19 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001253/0.3034, allocations: 35.3 kB / 0.5186 GB, free: 35.16 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.024e-05/0.3034, allocations: 51.41 kB / 0.5186 GB, free: 35.09 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.924e-05/0.3035, allocations: 104.3 kB / 0.5187 GB, free: 34.99 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.715e-06/0.3035, allocations: 25.7 kB / 0.5187 GB, free: 34.96 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.604e-05/0.3035, allocations: 93.19 kB / 0.5188 GB, free: 34.87 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.222e-06/0.3035, allocations: 3.906 kB / 0.5188 GB, free: 34.86 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.418e-05/0.3035, allocations: 12.59 kB / 0.5188 GB, free: 34.85 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.119e-05/0.3036, allocations: 322.2 kB / 0.5191 GB, free: 34.53 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.144e-05/0.3036, allocations: 2.812 kB / 0.5191 GB, free: 34.53 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.188e-05/0.3036, allocations: 21.67 kB / 0.5192 GB, free: 34.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.772e-05/0.3037, allocations: 28.23 kB / 0.5192 GB, free: 34.47 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3037, allocations: 0 / 0.5192 GB, free: 34.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 5.461e-05/0.3037, allocations: 47.06 kB / 0.5192 GB, free: 34.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.3038, allocations: 6.906 kB / 0.5192 GB, free: 34.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.3038, allocations: 4.094 kB / 0.5193 GB, free: 34.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.3038, allocations: 0 / 0.5193 GB, free: 34.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.403e-05/0.3038, allocations: 7.359 kB / 0.5193 GB, free: 34.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.229e-06/0.3038, allocations: 2.781 kB / 0.5193 GB, free: 34.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.765e-05/0.3039, allocations: 4 kB / 0.5193 GB, free: 34.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.962e-06/0.3039, allocations: 2.781 kB / 0.5193 GB, free: 34.43 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.868e-05/0.3039, allocations: 110.7 kB / 0.5194 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.229e-05/0.304, allocations: 2.844 kB / 0.5194 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.401e-05/0.3041, allocations: 60.22 kB / 0.5194 GB, free: 34.26 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.3041, allocations: 0 / 0.5194 GB, free: 34.26 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.3041, allocations: 3.938 kB / 0.5194 GB, free: 34.26 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.3041, allocations: 4 kB / 0.5194 GB, free: 34.25 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001013/0.3042, allocations: 151.8 kB / 0.5196 GB, free: 34.06 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.3042, allocations: 0 / 0.5196 GB, free: 34.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.3042, allocations: 0 / 0.5196 GB, free: 34.06 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.3042, allocations: 0 / 0.5196 GB, free: 34.06 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.16e-06/0.3042, allocations: 2.875 kB / 0.5196 GB, free: 34.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-06/0.3042, allocations: 4.031 kB / 0.5196 GB, free: 34.06 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3042, allocations: 0 / 0.5196 GB, free: 34.06 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001865/0.3044, allocations: 0.6774 MB / 0.5203 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.578e-05/0.3045, allocations: 81.02 kB / 0.5203 GB, free: 33.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.318e-06/0.3045, allocations: 0 / 0.5203 GB, free: 33.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.362e-05/0.3045, allocations: 7.062 kB / 0.5203 GB, free: 33.24 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.103e-05/0.3045, allocations: 3.938 kB / 0.5203 GB, free: 33.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.516e-06/0.3046, allocations: 3.938 kB / 0.5203 GB, free: 33.23 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.814e-05/0.3046, allocations: 81.42 kB / 0.5204 GB, free: 33.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3046, allocations: 0 / 0.5204 GB, free: 33.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003804/0.305, allocations: 37.66 kB / 0.5205 GB, free: 33.16 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002256/0.3052, allocations: 147.4 kB / 0.5206 GB, free: 33.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.436e-05/0.3053, allocations: 9.969 kB / 0.5206 GB, free: 33.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3053, allocations: 0 / 0.5206 GB, free: 33.05 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.632e-05/0.3053, allocations: 31.91 kB / 0.5206 GB, free: 33.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001925/0.3055, allocations: 2.875 kB / 0.5206 GB, free: 33.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002271/0.3057, allocations: 192.1 kB / 0.5208 GB, free: 32.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.291e-05/0.3058, allocations: 0.6692 MB / 0.5215 GB, free: 32.11 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 2.639e-05/0.3059, allocations: 11.2 kB / 0.5215 GB, free: 32.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.608e-06/0.3059, allocations: 7.438 kB / 0.5215 GB, free: 32.09 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3059, allocations: 2.875 kB / 0.5215 GB, free: 32.09 MB / 378.7 MB Notification: Performance of Templates: time 0.0027/0.3086, allocations: 1.068 MB / 0.5225 GB, free: 32 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches