Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.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.001586/0.001586, allocations: 84.3 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001534/0.001534, allocations: 170.7 kB / 23.95 MB, free: 4.172 MB / 14.72 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 1.427/1.427, allocations: 177.1 MB / 204.3 MB, free: 9.168 MB / 190.1 MB " [Timeout remaining time 178] 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.2029/0.2029, allocations: 32.81 MB / 293.5 MB, free: 32 kB / 270.1 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.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.234e-06/2.234e-06, allocations: 0 / 440.1 MB, free: 8.195 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.006e-05/4.229e-05, allocations: 6.281 kB / 440.1 MB, free: 8.188 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.002678/0.00272, allocations: 493.2 kB / 440.5 MB, free: 7.707 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001211/0.003931, allocations: 259.1 kB / 440.8 MB, free: 7.453 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.386e-05/0.003965, allocations: 0 / 440.8 MB, free: 7.453 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 2.358e-05/0.003988, allocations: 4 kB / 440.8 MB, free: 7.449 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 7.985e-06/0.003996, allocations: 0 / 440.8 MB, free: 7.449 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:399:3-454:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0005159/0.004512, allocations: 51.75 kB / 440.8 MB, free: 7.398 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 7.667e-05/0.004589, allocations: 11.94 kB / 440.9 MB, free: 7.387 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.08e-05/0.00465, allocations: 0 / 440.9 MB, free: 7.387 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.701e-05/0.004687, allocations: 0 / 440.9 MB, free: 7.387 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.514e-05/0.004732, allocations: 4 kB / 440.9 MB, free: 7.383 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.381e-05/0.004746, allocations: 0 / 440.9 MB, free: 7.383 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002439/0.004989, allocations: 59.89 kB / 440.9 MB, free: 7.324 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.482e-05/0.005004, allocations: 3.938 kB / 440.9 MB, free: 7.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.936e-05/0.005034, allocations: 3.984 kB / 440.9 MB, free: 7.316 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002136/0.005247, allocations: 67.8 kB / 441 MB, free: 7.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.00525, allocations: 0 / 441 MB, free: 7.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.005251, allocations: 4 kB / 441 MB, free: 7.246 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.005262, allocations: 0 / 441 MB, free: 7.246 MB / 366.1 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.0005209/0.005783, allocations: 276 kB / 441.3 MB, free: 6.938 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.598e-05/0.005839, allocations: 8.031 kB / 441.3 MB, free: 6.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.563e-05/0.005884, allocations: 4.938 kB / 441.3 MB, free: 6.926 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001426/0.006027, allocations: 105.7 kB / 441.4 MB, free: 6.797 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.885e-05/0.006046, allocations: 384 / 441.4 MB, free: 6.797 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.731e-05/0.006063, allocations: 384 / 441.4 MB, free: 6.797 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000166/0.006229, allocations: 63.95 kB / 441.4 MB, free: 6.723 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.115e-05/0.00625, allocations: 192 / 441.4 MB, free: 6.723 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.006262, allocations: 4.312 kB / 441.5 MB, free: 6.719 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.006268, allocations: 384 / 441.5 MB, free: 6.719 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.01e-05/0.006339, allocations: 41.58 kB / 441.5 MB, free: 6.672 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002002/0.006539, allocations: 93.33 kB / 441.6 MB, free: 6.551 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001021/0.006641, allocations: 44.31 kB / 441.6 MB, free: 6.492 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.708e-05/0.006698, allocations: 34.55 kB / 441.7 MB, free: 6.449 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.333e-05/0.006711, allocations: 0 / 441.7 MB, free: 6.449 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.148e-05/0.006793, allocations: 60.33 kB / 441.7 MB, free: 6.375 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.803e-06/0.006795, allocations: 0 / 441.7 MB, free: 6.375 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0003192/0.007114, allocations: 130.7 kB / 441.8 MB, free: 6.223 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.247e-05/0.007206, allocations: 77.11 kB / 441.9 MB, free: 6.129 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.359e-05/0.00729, allocations: 89.86 kB / 442 MB, free: 6.031 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.575e-05/0.007316, allocations: 25.7 kB / 442 MB, free: 6 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.543e-05/0.007371, allocations: 80.14 kB / 442.1 MB, free: 5.918 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.63e-05/0.007407, allocations: 7.953 kB / 442.1 MB, free: 5.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.405e-05/0.007461, allocations: 13.72 kB / 442.1 MB, free: 5.891 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002002/0.007662, allocations: 318.7 kB / 442.4 MB, free: 5.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.766e-05/0.007699, allocations: 29.7 kB / 442.5 MB, free: 5.535 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.94e-05/0.007749, allocations: 29.83 kB / 442.5 MB, free: 5.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.688e-05/0.007846, allocations: 64.25 kB / 442.6 MB, free: 5.422 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.007851, allocations: 4 kB / 442.6 MB, free: 5.418 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001599/0.008011, allocations: 93.05 kB / 442.7 MB, free: 5.309 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.699e-05/0.008058, allocations: 29.7 kB / 442.7 MB, free: 5.273 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.375e-05/0.008072, allocations: 7.969 kB / 442.7 MB, free: 5.266 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.16e-05/0.008093, allocations: 4 kB / 442.7 MB, free: 5.262 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.283e-06/0.008095, allocations: 0 / 442.7 MB, free: 5.262 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.561e-06/0.0081, allocations: 0 / 442.7 MB, free: 5.262 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.622e-05/0.008127, allocations: 3.938 kB / 442.7 MB, free: 5.258 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.008137, allocations: 4.094 kB / 442.7 MB, free: 5.254 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 0.000173/0.00831, allocations: 135.5 kB / 442.8 MB, free: 5.105 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.524e-05/0.008325, allocations: 0 / 442.8 MB, free: 5.105 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.281e-05/0.008358, allocations: 7 kB / 442.8 MB, free: 5.098 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.008361, allocations: 0 / 442.8 MB, free: 5.098 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.353e-06/0.008368, allocations: 0 / 442.8 MB, free: 5.098 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.786e-06/0.008377, allocations: 4 kB / 442.9 MB, free: 5.094 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001421/0.008519, allocations: 101.2 kB / 443 MB, free: 4.965 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.008522, allocations: 3.938 kB / 443 MB, free: 4.961 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.052e-06/0.008523, allocations: 0 / 443 MB, free: 4.961 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.008526, allocations: 4 kB / 443 MB, free: 4.957 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.008542, allocations: 4 kB / 443 MB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.008545, allocations: 0 / 443 MB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.008546, allocations: 0 / 443 MB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002149/0.008761, allocations: 124.4 kB / 443.1 MB, free: 4.801 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.891e-06/0.008767, allocations: 0 / 443.1 MB, free: 4.801 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.118e-05/0.008788, allocations: 0 / 443.1 MB, free: 4.801 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.532e-05/0.008803, allocations: 0 / 443.1 MB, free: 4.801 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.413e-05/0.008828, allocations: 7.984 kB / 443.1 MB, free: 4.793 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.36e-06/0.008833, allocations: 0 / 443.1 MB, free: 4.793 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.847e-05/0.008881, allocations: 75.28 kB / 443.2 MB, free: 4.719 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.008882, allocations: 4.031 kB / 443.2 MB, free: 4.715 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004248/0.009306, allocations: 27.92 kB / 443.2 MB, free: 4.688 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * 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: 1 * 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 Backend phase and start with SimCode phase: time 0.001248/0.01055, allocations: 302.1 kB / 443.5 MB, free: 4.465 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002152/0.01077, allocations: 110.8 kB / 443.6 MB, free: 4.332 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.01077, allocations: 3.938 kB / 443.6 MB, free: 4.328 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001085/0.01088, allocations: 85.11 kB / 443.7 MB, free: 4.227 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002238/0.0111, allocations: 4 kB / 443.7 MB, free: 4.223 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003118/0.01142, allocations: 102.6 kB / 443.8 MB, free: 4.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.491e-05/0.01149, allocations: 59.47 kB / 443.8 MB, free: 4.012 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.792e-06/0.0115, allocations: 0 / 443.8 MB, free: 4.012 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.215e-05/0.01153, allocations: 12.5 kB / 443.9 MB, free: 4 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.01153, allocations: 0 / 443.9 MB, free: 4 MB / 366.1 MB Notification: Performance of Templates: time 0.006646/0.01818, allocations: 0.8227 MB / 444.7 MB, free: 3.184 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.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.859622832387686]