Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.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.001386/0.001386, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002303/0.003689, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.00123/0.00123, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001255/0.002485, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.107/1.107, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1126/1.219, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.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.3184/0.3184, allocations: 32.8 MB / 276.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03186/0.3503, allocations: 12.53 MB / 289.3 MB, free: 8.68 MB / 282.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.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.625e-06/2.625e-06, allocations: 0 / 290.6 MB, free: 7.68 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.172e-05/3.435e-05, allocations: 3.297 kB / 290.6 MB, free: 7.676 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001696/0.00173, allocations: 0.5376 MB / 291.1 MB, free: 7.262 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006431/0.002373, allocations: 310.2 kB / 291.4 MB, free: 7.047 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.718e-05/0.00239, allocations: 0 / 291.4 MB, free: 7.047 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 8.436e-06/0.002399, allocations: 5.344 kB / 291.4 MB, free: 7.043 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 2.966e-06/0.002402, allocations: 3.938 kB / 291.4 MB, free: 7.039 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:222:3-288:14:writable] Warning: Pure function 'ModelicaTest.Utilities.Streams' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0007224/0.003124, allocations: 97.31 kB / 291.5 MB, free: 6.98 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001044/0.003228, allocations: 2.438 kB / 291.5 MB, free: 6.98 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.725e-05/0.003286, allocations: 1.031 kB / 291.5 MB, free: 6.98 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.746e-05/0.003343, allocations: 5.922 kB / 291.5 MB, free: 6.977 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.848e-05/0.003382, allocations: 5.188 kB / 291.5 MB, free: 6.973 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.156e-05/0.003393, allocations: 0 / 291.5 MB, free: 6.973 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002674/0.003661, allocations: 115.8 kB / 291.6 MB, free: 6.918 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.267e-05/0.003673, allocations: 4.969 kB / 291.7 MB, free: 6.914 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.879e-05/0.003692, allocations: 1.562 kB / 291.7 MB, free: 6.914 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002246/0.003917, allocations: 88.75 kB / 291.7 MB, free: 6.871 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.911e-05/0.003936, allocations: 0 / 291.7 MB, free: 6.871 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.003937, allocations: 1.375 kB / 291.7 MB, free: 6.871 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.998e-05/0.003957, allocations: 0 / 291.7 MB, free: 6.871 MB / 282.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.0004076/0.004365, allocations: 279.3 kB / 292 MB, free: 6.586 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.004412, allocations: 8.25 kB / 292 MB, free: 6.586 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.089e-05/0.004463, allocations: 10.64 kB / 292 MB, free: 6.578 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.205e-05/0.004545, allocations: 111 kB / 292.1 MB, free: 6.445 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.397e-05/0.004559, allocations: 1.812 kB / 292.1 MB, free: 6.445 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.987e-06/0.004568, allocations: 384 / 292.1 MB, free: 6.445 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.472e-05/0.004663, allocations: 54.84 kB / 292.2 MB, free: 6.383 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.004674, allocations: 1.406 kB / 292.2 MB, free: 6.383 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.424e-06/0.004681, allocations: 384 / 292.2 MB, free: 6.383 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.004688, allocations: 384 / 292.2 MB, free: 6.383 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.481e-05/0.004712, allocations: 32.3 kB / 292.2 MB, free: 6.348 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.107e-05/0.004793, allocations: 67.73 kB / 292.3 MB, free: 6.27 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.144e-05/0.004845, allocations: 50.94 kB / 292.3 MB, free: 6.207 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.044e-05/0.004865, allocations: 31.66 kB / 292.4 MB, free: 6.168 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.431e-06/0.004871, allocations: 1.375 kB / 292.4 MB, free: 6.168 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.55e-05/0.004916, allocations: 57.48 kB / 292.4 MB, free: 6.098 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.004917, allocations: 0 / 292.4 MB, free: 6.098 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001615/0.005079, allocations: 117.1 kB / 292.6 MB, free: 5.965 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.407e-05/0.005133, allocations: 78.52 kB / 292.6 MB, free: 5.871 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.687e-05/0.00518, allocations: 91.36 kB / 292.7 MB, free: 5.773 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.105e-05/0.005191, allocations: 25.7 kB / 292.7 MB, free: 5.742 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.596e-05/0.005217, allocations: 80.14 kB / 292.8 MB, free: 5.66 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.211e-05/0.005239, allocations: 5.844 kB / 292.8 MB, free: 5.656 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.425e-05/0.005273, allocations: 15.41 kB / 292.8 MB, free: 5.637 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.005381, allocations: 320.1 kB / 293.2 MB, free: 5.316 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.215e-05/0.005404, allocations: 27.11 kB / 293.2 MB, free: 5.285 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.587e-05/0.005419, allocations: 27.05 kB / 293.2 MB, free: 5.254 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.715e-05/0.005477, allocations: 60.36 kB / 293.3 MB, free: 5.184 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.005479, allocations: 1.25 kB / 293.3 MB, free: 5.184 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.147e-05/0.005551, allocations: 90.03 kB / 293.4 MB, free: 5.082 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.669e-05/0.005607, allocations: 31.36 kB / 293.4 MB, free: 5.051 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.005614, allocations: 5.312 kB / 293.4 MB, free: 5.047 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.005626, allocations: 3.938 kB / 293.4 MB, free: 5.043 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.981e-06/0.005632, allocations: 0 / 293.4 MB, free: 5.043 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.005636, allocations: 1.062 kB / 293.4 MB, free: 5.043 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.156e-05/0.005658, allocations: 0 / 293.4 MB, free: 5.043 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.698e-06/0.005667, allocations: 1.188 kB / 293.4 MB, free: 5.043 MB / 282.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: 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 9.031e-05/0.005758, allocations: 146 kB / 293.5 MB, free: 4.887 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.04e-06/0.005763, allocations: 1.5 kB / 293.5 MB, free: 4.887 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.495e-05/0.005778, allocations: 4.344 kB / 293.5 MB, free: 4.887 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.005781, allocations: 4 kB / 293.5 MB, free: 4.883 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.783e-06/0.005783, allocations: 4 kB / 293.6 MB, free: 4.879 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.005786, allocations: 1.344 kB / 293.6 MB, free: 4.879 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.95e-05/0.005845, allocations: 63.91 kB / 293.6 MB, free: 4.801 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.6e-07/0.005845, allocations: 0 / 293.6 MB, free: 4.801 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.32e-07/0.005846, allocations: 1.5 kB / 293.6 MB, free: 4.801 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.549e-06/0.005851, allocations: 0 / 293.6 MB, free: 4.801 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.01e-07/0.005851, allocations: 1.312 kB / 293.6 MB, free: 4.801 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.404e-06/0.005859, allocations: 3.984 kB / 293.6 MB, free: 4.797 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.91e-07/0.005859, allocations: 1.5 kB / 293.6 MB, free: 4.797 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.005861, allocations: 0 / 293.6 MB, free: 4.797 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.519e-05/0.005956, allocations: 126 kB / 293.7 MB, free: 4.652 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.692e-05/0.005973, allocations: 1.5 kB / 293.7 MB, free: 4.652 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.831e-06/0.005978, allocations: 0 / 293.7 MB, free: 4.652 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.932e-05/0.005998, allocations: 1.531 kB / 293.8 MB, free: 4.652 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-06/0.006, allocations: 0 / 293.8 MB, free: 4.652 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.486e-06/0.006008, allocations: 5.578 kB / 293.8 MB, free: 4.645 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.006008, allocations: 0 / 293.8 MB, free: 4.645 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001808/0.006189, allocations: 32.38 kB / 293.8 MB, free: 4.637 MB / 282.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: 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.000804/0.006993, allocations: 335.4 kB / 294.1 MB, free: 4.5 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001231/0.007116, allocations: 113.7 kB / 294.2 MB, free: 4.367 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.00712, allocations: 0 / 294.2 MB, free: 4.367 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.056e-05/0.007161, allocations: 97.89 kB / 294.3 MB, free: 4.254 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.122e-05/0.007222, allocations: 10.8 kB / 294.3 MB, free: 4.25 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000206/0.007428, allocations: 112.6 kB / 294.4 MB, free: 4.113 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.656e-05/0.007465, allocations: 57.5 kB / 294.5 MB, free: 4.039 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 8.015e-06/0.007473, allocations: 0 / 294.5 MB, free: 4.039 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.3e-05/0.007516, allocations: 51.41 kB / 294.5 MB, free: 3.992 MB / 282.7 MB Notification: Performance of SimCode: time 8.92e-07/0.007517, allocations: 0 / 294.5 MB, free: 3.992 MB / 282.7 MB Notification: Performance of Templates: time 0.003007/0.01052, allocations: 1.161 MB / 295.7 MB, free: 2.922 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStreams/TestStreams.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.2463490925729275]