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/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008562/0.0008562, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003061/0.003061, allocations: 159.5 kB / 24.7 MB, free: 9.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8602/0.8602, allocations: 177 MB / 204.9 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2558/0.2558, allocations: 34.24 MB / 295.6 MB, free: 0.6914 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 443.4 MB, free: 1.094 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.88e-05/3.038e-05, allocations: 6.219 kB / 443.4 MB, free: 1.086 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001094/0.001124, allocations: 0.4972 MB / 443.9 MB, free: 0.5898 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1558/0.1569, allocations: 1.344 MB / 445.2 MB, free: 43.66 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.573e-05/0.157, allocations: 0 / 445.2 MB, free: 43.66 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.625e-05/0.157, allocations: 0 / 445.2 MB, free: 43.66 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 2.562e-05/0.157, allocations: 2.625 kB / 445.2 MB, free: 43.66 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000487/0.1575, allocations: 221.2 kB / 445.5 MB, free: 43.64 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.507e-05/0.1575, allocations: 6.219 kB / 445.5 MB, free: 43.64 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.152e-05/0.1576, allocations: 9.25 kB / 445.5 MB, free: 43.64 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.746e-05/0.1576, allocations: 6.656 kB / 445.5 MB, free: 43.64 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.283e-05/0.1577, allocations: 2.719 kB / 445.5 MB, free: 43.64 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.17e-05/0.1577, allocations: 3.172 kB / 445.5 MB, free: 43.64 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002537/0.1579, allocations: 263.4 kB / 445.7 MB, free: 43.64 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.1e-05/0.1579, allocations: 0 / 445.7 MB, free: 43.64 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.377e-05/0.1579, allocations: 0 / 445.7 MB, free: 43.64 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001881/0.1581, allocations: 196.3 kB / 445.9 MB, free: 43.62 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.435e-06/0.1581, allocations: 0 / 445.9 MB, free: 43.62 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1581, allocations: 0 / 445.9 MB, free: 43.62 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.927e-06/0.1581, allocations: 0 / 445.9 MB, free: 43.62 MB / 410.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.0002281/0.1584, allocations: 258.7 kB / 446.2 MB, free: 43.36 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.105e-05/0.1584, allocations: 8.75 kB / 446.2 MB, free: 43.36 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.962e-05/0.1584, allocations: 1.922 kB / 446.2 MB, free: 43.36 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.724e-05/0.1585, allocations: 108.5 kB / 446.3 MB, free: 43.23 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.438e-06/0.1585, allocations: 5.094 kB / 446.3 MB, free: 43.23 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.706e-06/0.1585, allocations: 7.531 kB / 446.3 MB, free: 43.23 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.177e-05/0.1586, allocations: 69.2 kB / 446.4 MB, free: 43.17 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.1586, allocations: 192 / 446.4 MB, free: 43.17 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.466e-06/0.1586, allocations: 2.75 kB / 446.4 MB, free: 43.17 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.1586, allocations: 3.938 kB / 446.4 MB, free: 43.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.458e-05/0.1586, allocations: 9.25 kB / 446.4 MB, free: 43.16 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000227/0.1588, allocations: 194.3 kB / 446.6 MB, free: 42.96 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.119e-05/0.1589, allocations: 17.48 kB / 446.6 MB, free: 42.94 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.237e-05/0.1589, allocations: 15.08 kB / 446.6 MB, free: 42.93 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.277e-06/0.1589, allocations: 7.312 kB / 446.6 MB, free: 42.93 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.382e-05/0.1589, allocations: 34.5 kB / 446.7 MB, free: 42.89 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 7.52e-07/0.1589, allocations: 0 / 446.7 MB, free: 42.89 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.000109/0.159, allocations: 32.39 kB / 446.7 MB, free: 42.86 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.743e-05/0.159, allocations: 54.31 kB / 446.7 MB, free: 42.79 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.604e-05/0.1591, allocations: 100.3 kB / 446.8 MB, free: 42.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.519e-06/0.1591, allocations: 28.17 kB / 446.9 MB, free: 42.66 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.75e-05/0.1591, allocations: 85.47 kB / 447 MB, free: 42.58 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.178e-06/0.1591, allocations: 3 kB / 447 MB, free: 42.58 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.935e-05/0.1591, allocations: 15.44 kB / 447 MB, free: 42.56 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.139e-05/0.1591, allocations: 314.1 kB / 447.3 MB, free: 42.25 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.877e-06/0.1592, allocations: 5.375 kB / 447.3 MB, free: 42.25 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.3e-05/0.1592, allocations: 28.83 kB / 447.3 MB, free: 42.22 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.013e-05/0.1592, allocations: 23.14 kB / 447.3 MB, free: 42.2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.1592, allocations: 0 / 447.3 MB, free: 42.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 3.465e-05/0.1592, allocations: 56.42 kB / 447.4 MB, free: 42.16 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/0.1592, allocations: 5.844 kB / 447.4 MB, free: 42.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.1592, allocations: 0 / 447.4 MB, free: 42.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.1592, allocations: 4.906 kB / 447.4 MB, free: 42.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.924e-05/0.1593, allocations: 14.12 kB / 447.4 MB, free: 42.15 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.1593, allocations: 2.719 kB / 447.4 MB, free: 42.15 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.858e-06/0.1593, allocations: 0 / 447.4 MB, free: 42.15 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.1593, allocations: 2.781 kB / 447.4 MB, free: 42.15 MB / 410.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 2.87e-05/0.1593, allocations: 112.6 kB / 447.5 MB, free: 42.04 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.057e-05/0.1593, allocations: 3.938 kB / 447.5 MB, free: 42.03 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.012e-05/0.1594, allocations: 40.78 kB / 447.6 MB, free: 42 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.1594, allocations: 4.031 kB / 447.6 MB, free: 41.99 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.1594, allocations: 0 / 447.6 MB, free: 41.99 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.1594, allocations: 0 / 447.6 MB, free: 41.99 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.408e-05/0.1595, allocations: 103.4 kB / 447.7 MB, free: 41.87 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.1595, allocations: 2.812 kB / 447.7 MB, free: 41.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.32e-07/0.1595, allocations: 6.625 kB / 447.7 MB, free: 41.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.61e-07/0.1595, allocations: 3.609 kB / 447.7 MB, free: 41.87 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.819e-06/0.1595, allocations: 3.938 kB / 447.7 MB, free: 41.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.01e-07/0.1595, allocations: 0 / 447.7 MB, free: 41.86 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1595, allocations: 0 / 447.7 MB, free: 41.86 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.361e-05/0.1595, allocations: 135.6 kB / 447.8 MB, free: 41.73 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.53e-06/0.1595, allocations: 6.781 kB / 447.8 MB, free: 41.72 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.284e-06/0.1595, allocations: 3.938 kB / 447.8 MB, free: 41.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.294e-05/0.1596, allocations: 1.781 kB / 447.8 MB, free: 41.72 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.061e-05/0.1596, allocations: 9.75 kB / 447.8 MB, free: 41.72 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.935e-06/0.1596, allocations: 0 / 447.8 MB, free: 41.72 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.828e-06/0.1596, allocations: 78.03 kB / 447.9 MB, free: 41.64 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1596, allocations: 0 / 447.9 MB, free: 41.64 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00018/0.1598, allocations: 37.88 kB / 448 MB, free: 41.64 MB / 410.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.0001844/0.16, allocations: 144.4 kB / 448.1 MB, free: 41.55 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 6.76e-05/0.16, allocations: 18.62 kB / 448.1 MB, free: 41.54 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.16, allocations: 0 / 448.1 MB, free: 41.54 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.714e-05/0.16, allocations: 29.83 kB / 448.2 MB, free: 41.51 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001402/0.1602, allocations: 0 / 448.2 MB, free: 41.51 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001835/0.1604, allocations: 113.9 kB / 448.3 MB, free: 41.39 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.417e-05/0.1604, allocations: 54.42 kB / 448.3 MB, free: 41.32 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.758e-05/0.1604, allocations: 11.06 kB / 448.3 MB, free: 41.31 MB / 410.7 MB Notification: Performance of SimCode: time 3.4e-07/0.1604, allocations: 256 / 448.3 MB, free: 41.31 MB / 410.7 MB Notification: Performance of Templates: time 0.001592/0.162, allocations: 0.9314 MB / 449.3 MB, free: 41.28 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.326757156290114]