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.0009873/0.0009873, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.001391/0.001391, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 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.9593/0.9593, allocations: 177 MB / 204.8 MB, free: 5.555 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.2186/0.2186, allocations: 34.86 MB / 296.3 MB, free: 0.5469 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 / 378.7 MB, free: 2.117 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.659e-05/1.816e-05, allocations: 3.156 kB / 378.7 MB, free: 2.113 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001197/0.001215, allocations: 0.4955 MB / 379.2 MB, free: 1.617 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00455/0.005765, allocations: 1.401 MB / 380.6 MB, free: 200 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.25e-05/0.005787, allocations: 4 kB / 380.6 MB, free: 196 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.85e-05/0.005806, allocations: 0 / 380.6 MB, free: 196 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 2.561e-05/0.005831, allocations: 0 / 380.6 MB, free: 196 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005886/0.00642, allocations: 216 kB / 380.9 MB, free: 15.98 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 4.717e-05/0.006467, allocations: 7.938 kB / 380.9 MB, free: 15.97 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.091e-05/0.006498, allocations: 4 kB / 380.9 MB, free: 15.97 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.592e-05/0.006524, allocations: 0 / 380.9 MB, free: 15.97 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.396e-05/0.006568, allocations: 15.92 kB / 380.9 MB, free: 15.95 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.198e-05/0.00658, allocations: 0 / 380.9 MB, free: 15.95 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003705/0.00695, allocations: 255.6 kB / 381.1 MB, free: 15.7 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.291e-05/0.006963, allocations: 8 kB / 381.1 MB, free: 15.7 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.515e-05/0.006978, allocations: 3.984 kB / 381.1 MB, free: 15.69 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002331/0.007212, allocations: 191.6 kB / 381.3 MB, free: 15.5 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.007214, allocations: 0 / 381.3 MB, free: 15.5 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.007214, allocations: 0 / 381.3 MB, free: 15.5 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.226e-06/0.007217, allocations: 0 / 381.3 MB, free: 15.5 MB / 362.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.003322/0.01054, allocations: 364.2 kB / 381.7 MB, free: 15.11 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.01058, allocations: 8.031 kB / 381.7 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.046e-05/0.01062, allocations: 8.875 kB / 381.7 MB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.047e-05/0.01068, allocations: 108.6 kB / 381.8 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.131e-05/0.01069, allocations: 4.375 kB / 381.8 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.01e-05/0.0107, allocations: 12.31 kB / 381.8 MB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.795e-05/0.0108, allocations: 59.95 kB / 381.9 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.01081, allocations: 192 / 381.9 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.206e-06/0.01081, allocations: 384 / 381.9 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.196e-06/0.01082, allocations: 3.938 kB / 381.9 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.05e-05/0.01084, allocations: 7.984 kB / 381.9 MB, free: 14.87 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004804/0.01132, allocations: 252.1 kB / 382.1 MB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.628e-05/0.01136, allocations: 31 kB / 382.2 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.439e-05/0.01137, allocations: 7.688 kB / 382.2 MB, free: 14.53 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.32e-06/0.01138, allocations: 0 / 382.2 MB, free: 14.53 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.154e-05/0.0114, allocations: 45.39 kB / 382.2 MB, free: 14.48 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 6.11e-07/0.0114, allocations: 0 / 382.2 MB, free: 14.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001196/0.01152, allocations: 41.62 kB / 382.3 MB, free: 14.43 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.617e-05/0.01155, allocations: 55.41 kB / 382.3 MB, free: 14.36 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.613e-05/0.01161, allocations: 149.9 kB / 382.5 MB, free: 14.2 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.107e-06/0.01162, allocations: 25.7 kB / 382.5 MB, free: 14.17 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.106e-05/0.01166, allocations: 134.8 kB / 382.6 MB, free: 14.03 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.418e-06/0.01167, allocations: 0 / 382.6 MB, free: 14.03 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.942e-05/0.0117, allocations: 23.38 kB / 382.6 MB, free: 14 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.0118, allocations: 0.4886 MB / 383.1 MB, free: 13.5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.949e-06/0.01181, allocations: 4 kB / 383.1 MB, free: 13.5 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.581e-05/0.01184, allocations: 31.06 kB / 383.2 MB, free: 13.45 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.267e-05/0.01187, allocations: 31 kB / 383.2 MB, free: 13.41 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.01187, allocations: 0 / 383.2 MB, free: 13.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 4.672e-05/0.01192, allocations: 57.52 kB / 383.3 MB, free: 13.35 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.059e-05/0.01193, allocations: 8 kB / 383.3 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.01193, allocations: 4.094 kB / 383.3 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.01195, allocations: 0 / 383.3 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.554e-05/0.01198, allocations: 7.984 kB / 383.3 MB, free: 13.33 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.01199, allocations: 7.984 kB / 383.3 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.091e-05/0.012, allocations: 3.938 kB / 383.3 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-06/0.012, allocations: 4 kB / 383.3 MB, free: 13.31 MB / 362.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 4.866e-05/0.01205, allocations: 152.6 kB / 383.4 MB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.242e-05/0.01206, allocations: 7.938 kB / 383.4 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.224e-05/0.01215, allocations: 52.86 kB / 383.5 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.01215, allocations: 0 / 383.5 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.584e-06/0.01215, allocations: 7.938 kB / 383.5 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.01215, allocations: 0 / 383.5 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001035/0.01226, allocations: 104.6 kB / 383.6 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.01226, allocations: 4 kB / 383.6 MB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.01226, allocations: 0 / 383.6 MB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/0.01226, allocations: 0 / 383.6 MB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.01227, allocations: 11.94 kB / 383.6 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.01227, allocations: 0 / 383.6 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.01227, allocations: 3.984 kB / 383.6 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.928e-05/0.01235, allocations: 183.9 kB / 383.8 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.592e-06/0.01236, allocations: 4 kB / 383.8 MB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.167e-06/0.01237, allocations: 3.938 kB / 383.8 MB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.652e-05/0.01242, allocations: 0 / 383.8 MB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.306e-05/0.01243, allocations: 3.984 kB / 383.8 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.01243, allocations: 4 kB / 383.8 MB, free: 12.71 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.09e-05/0.01246, allocations: 119.2 kB / 383.9 MB, free: 12.59 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01246, allocations: 0 / 383.9 MB, free: 12.59 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002713/0.01273, allocations: 43.94 kB / 384 MB, free: 12.55 MB / 362.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.0002215/0.01296, allocations: 147.3 kB / 384.1 MB, free: 12.4 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 7.236e-05/0.01303, allocations: 19.62 kB / 384.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.232e-06/0.01303, allocations: 0 / 384.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.741e-05/0.01306, allocations: 33.39 kB / 384.2 MB, free: 12.33 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002006/0.01326, allocations: 7.984 kB / 384.2 MB, free: 12.32 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001768/0.01343, allocations: 102.4 kB / 384.3 MB, free: 12.2 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.088e-05/0.01347, allocations: 51.36 kB / 384.3 MB, free: 12.12 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.908e-05/0.01348, allocations: 4.25 kB / 384.3 MB, free: 12.12 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.516e-05/0.0135, allocations: 12.5 kB / 384.4 MB, free: 12.11 MB / 362.7 MB Notification: Performance of SimCode: time 4.01e-07/0.0135, allocations: 0 / 384.4 MB, free: 12.11 MB / 362.7 MB Notification: Performance of Templates: time 0.002639/0.01614, allocations: 1.231 MB / 385.6 MB, free: 10.88 MB / 362.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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9496505060233176]