Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009882/0.0009882, allocations: 83.58 kB / 21.18 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009438/0.0009438, allocations: 161 kB / 24.56 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9768/0.9768, allocations: 177.1 MB / 205 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2956/0.2956, allocations: 32.81 MB / 294.3 MB, free: 1.301 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|x",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|x",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.195e-06/2.195e-06, allocations: 0 / 376 MB, free: 4.727 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.788e-05/3.008e-05, allocations: 2.312 kB / 376 MB, free: 4.723 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001238/0.001268, allocations: 0.5125 MB / 376.5 MB, free: 4.207 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001461/0.002729, allocations: 1.393 MB / 377.9 MB, free: 2.793 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.695e-05/0.002756, allocations: 0 / 377.9 MB, free: 2.793 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.051e-05/0.002777, allocations: 0 / 377.9 MB, free: 2.793 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 3.081e-05/0.002807, allocations: 0 / 377.9 MB, free: 2.793 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006422/0.00345, allocations: 211.9 kB / 378.1 MB, free: 2.586 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.326e-05/0.003503, allocations: 11.98 kB / 378.1 MB, free: 2.574 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.271e-05/0.003546, allocations: 8 kB / 378.1 MB, free: 2.566 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.839e-05/0.003574, allocations: 4 kB / 378.1 MB, free: 2.562 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.731e-05/0.003621, allocations: 7.969 kB / 378.1 MB, free: 2.555 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.526e-05/0.003636, allocations: 0 / 378.1 MB, free: 2.555 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003423/0.003979, allocations: 259.6 kB / 378.4 MB, free: 2.301 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.946e-05/0.003998, allocations: 4 kB / 378.4 MB, free: 2.297 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.669e-05/0.004015, allocations: 0 / 378.4 MB, free: 2.297 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002286/0.004243, allocations: 199.5 kB / 378.6 MB, free: 2.102 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.004247, allocations: 0 / 378.6 MB, free: 2.102 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.004247, allocations: 0 / 378.6 MB, free: 2.102 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.004252, allocations: 4 kB / 378.6 MB, free: 2.098 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.0003217/0.004574, allocations: 360.2 kB / 378.9 MB, free: 1.711 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.004612, allocations: 8.031 kB / 378.9 MB, free: 1.703 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.293e-05/0.004655, allocations: 9.234 kB / 379 MB, free: 1.695 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.263e-05/0.004738, allocations: 108.6 kB / 379.1 MB, free: 1.562 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.004749, allocations: 384 / 379.1 MB, free: 1.562 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.416e-05/0.004764, allocations: 4.375 kB / 379.1 MB, free: 1.559 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.47e-05/0.004858, allocations: 59.89 kB / 379.1 MB, free: 1.488 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.004868, allocations: 192 / 379.1 MB, free: 1.488 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.004878, allocations: 384 / 379.1 MB, free: 1.488 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.004887, allocations: 11.94 kB / 379.1 MB, free: 1.477 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.265e-05/0.004899, allocations: 0 / 379.1 MB, free: 1.477 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001024/0.005002, allocations: 108.6 kB / 379.2 MB, free: 1.336 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.689e-05/0.005039, allocations: 27.06 kB / 379.3 MB, free: 1.297 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.703e-05/0.005056, allocations: 11.78 kB / 379.3 MB, free: 1.281 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.961e-06/0.005062, allocations: 0 / 379.3 MB, free: 1.281 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.015e-05/0.005092, allocations: 37.33 kB / 379.3 MB, free: 1.234 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.005093, allocations: 3.938 kB / 379.3 MB, free: 1.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001263/0.005219, allocations: 37.69 kB / 379.4 MB, free: 1.188 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.451e-05/0.005243, allocations: 55.47 kB / 379.4 MB, free: 1.121 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.011e-05/0.005313, allocations: 161.9 kB / 379.6 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.08e-05/0.005324, allocations: 25.7 kB / 379.6 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.932e-05/0.005354, allocations: 126.9 kB / 379.7 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.298e-05/0.005377, allocations: 0 / 379.7 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.68e-05/0.005403, allocations: 23.36 kB / 379.7 MB, free: 0.7539 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.005514, allocations: 492.1 kB / 380.2 MB, free: 268 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.283e-05/0.005527, allocations: 4 kB / 380.2 MB, free: 264 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.852e-06/0.005533, allocations: 3.938 kB / 380.2 MB, free: 260 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.539e-05/0.005559, allocations: 11.88 kB / 380.2 MB, free: 244 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.005561, allocations: 4 kB / 380.2 MB, free: 240 kB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.838e-05/0.005609, allocations: 33.7 kB / 380.3 MB, free: 200 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/0.005622, allocations: 7.984 kB / 380.3 MB, free: 192 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.005627, allocations: 0 / 380.3 MB, free: 192 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.005641, allocations: 0 / 380.3 MB, free: 192 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.756e-05/0.005709, allocations: 4 kB / 380.3 MB, free: 188 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.005715, allocations: 3.938 kB / 380.3 MB, free: 184 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.011e-05/0.005726, allocations: 3.953 kB / 380.3 MB, free: 180 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/0.005733, allocations: 3.984 kB / 380.3 MB, free: 176 kB / 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.305e-05/0.005796, allocations: 160.6 kB / 380.5 MB, free: 4 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.374e-06/0.005804, allocations: 3.938 kB / 380.5 MB, free: 0 / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001265/0.00593, allocations: 44.92 kB / 380.5 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.005932, allocations: 0 / 380.5 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.005937, allocations: 3.938 kB / 380.5 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.005939, allocations: 0 / 380.5 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.614e-05/0.006005, allocations: 108.6 kB / 380.6 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.101e-06/0.006011, allocations: 3.984 kB / 380.6 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.513e-06/0.006013, allocations: 8.031 kB / 380.6 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.006015, allocations: 0 / 380.6 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.006023, allocations: 8 kB / 380.6 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-07/0.006024, allocations: 0 / 380.6 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.006025, allocations: 0 / 380.6 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.718e-05/0.006082, allocations: 72.33 kB / 380.7 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.42e-06/0.006088, allocations: 0 / 380.7 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.1e-05/0.006099, allocations: 11.92 kB / 380.7 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.453e-05/0.006163, allocations: 0 / 380.7 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.503e-05/0.006178, allocations: 0 / 380.7 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.511e-06/0.006184, allocations: 11.97 kB / 380.7 MB, free: 15.67 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.106e-05/0.006215, allocations: 119.2 kB / 380.8 MB, free: 15.55 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006215, allocations: 0 / 380.8 MB, free: 15.55 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001909/0.006406, allocations: 47.92 kB / 380.9 MB, free: 15.5 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.0002051/0.006611, allocations: 139.1 kB / 381 MB, free: 15.36 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 7.241e-05/0.006683, allocations: 15.69 kB / 381 MB, free: 15.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.006685, allocations: 0 / 381 MB, free: 15.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.381e-05/0.006719, allocations: 45.31 kB / 381.1 MB, free: 15.29 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001123/0.006831, allocations: 4.219 kB / 381.1 MB, free: 15.29 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002099/0.007041, allocations: 98.42 kB / 381.2 MB, free: 15.16 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.23e-05/0.007073, allocations: 59.28 kB / 381.2 MB, free: 15.08 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.548e-05/0.007089, allocations: 0 / 381.2 MB, free: 15.08 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.74e-05/0.007106, allocations: 12.5 kB / 381.3 MB, free: 15.07 MB / 362.7 MB Notification: Performance of SimCode: time 6.41e-07/0.007107, allocations: 0 / 381.3 MB, free: 15.07 MB / 362.7 MB Notification: Performance of Templates: time 0.003265/0.01037, allocations: 1.126 MB / 382.4 MB, free: 13.95 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1766444598324597]