Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001147/0.001147, allocations: 80.05 kB / 20.72 MB, free: 3.77 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.001152/0.001152, allocations: 169 kB / 24.14 MB, free: 364 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8776/0.8776, allocations: 158.6 MB / 186 MB, free: 2.766 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1387/0.1387, allocations: 32.37 MB / 270.7 MB, free: 14.62 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 299 MB, free: 2.258 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.636e-05/1.807e-05, allocations: 2.312 kB / 299 MB, free: 2.254 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001471/0.001489, allocations: 0.5014 MB / 299.5 MB, free: 1.754 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007805/0.002269, allocations: 311 kB / 299.8 MB, free: 1.449 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.422e-05/0.002294, allocations: 0 / 299.8 MB, free: 1.449 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.825e-05/0.002312, allocations: 0 / 299.8 MB, free: 1.449 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.514e-06/0.002319, allocations: 0 / 299.8 MB, free: 1.449 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008859/0.003205, allocations: 107.5 kB / 299.9 MB, free: 1.344 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.85e-05/0.003264, allocations: 0 / 299.9 MB, free: 1.344 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.457e-05/0.003308, allocations: 4 kB / 299.9 MB, free: 1.34 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.476e-05/0.003343, allocations: 4 kB / 299.9 MB, free: 1.336 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.613e-05/0.003369, allocations: 0 / 299.9 MB, free: 1.336 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.072e-05/0.00338, allocations: 3.984 kB / 299.9 MB, free: 1.332 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002194/0.003599, allocations: 111.8 kB / 300.1 MB, free: 1.223 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.026e-05/0.00361, allocations: 0 / 300.1 MB, free: 1.223 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.587e-05/0.003625, allocations: 0 / 300.1 MB, free: 1.223 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002173/0.003843, allocations: 103.7 kB / 300.2 MB, free: 1.121 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.495e-06/0.003845, allocations: 0 / 300.2 MB, free: 1.121 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.003846, allocations: 4 kB / 300.2 MB, free: 1.117 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.00385, allocations: 0 / 300.2 MB, free: 1.117 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.0003379/0.004188, allocations: 274.2 kB / 300.4 MB, free: 0.8164 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.004231, allocations: 8.031 kB / 300.4 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.057e-05/0.004262, allocations: 0.9375 kB / 300.4 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.848e-05/0.004341, allocations: 105.8 kB / 300.5 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.187e-05/0.004352, allocations: 384 / 300.5 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.115e-05/0.004364, allocations: 384 / 300.5 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.5e-05/0.004459, allocations: 55.97 kB / 300.6 MB, free: 0.6133 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.004469, allocations: 192 / 300.6 MB, free: 0.6133 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.067e-06/0.004478, allocations: 4.359 kB / 300.6 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.004485, allocations: 384 / 300.6 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.623e-05/0.004511, allocations: 37.58 kB / 300.6 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.461e-05/0.004596, allocations: 57.05 kB / 300.7 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.132e-05/0.004657, allocations: 44.31 kB / 300.7 MB, free: 448 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.237e-05/0.004679, allocations: 34.56 kB / 300.8 MB, free: 404 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.509e-06/0.004684, allocations: 0 / 300.8 MB, free: 404 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.549e-05/0.004729, allocations: 60.33 kB / 300.8 MB, free: 328 kB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 9.51e-07/0.00473, allocations: 0 / 300.8 MB, free: 328 kB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001491/0.004879, allocations: 114.7 kB / 300.9 MB, free: 188 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.461e-05/0.004934, allocations: 81.11 kB / 301 MB, free: 88 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1804/0.1853, allocations: 89.86 kB / 301.1 MB, free: 19.91 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.267e-05/0.1853, allocations: 29 kB / 301.1 MB, free: 19.88 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.028e-05/0.1853, allocations: 80.14 kB / 301.2 MB, free: 19.8 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.203e-05/0.1854, allocations: 4.641 kB / 301.2 MB, free: 19.8 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.707e-05/0.1854, allocations: 15.86 kB / 301.2 MB, free: 19.79 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.459e-05/0.1855, allocations: 315.7 kB / 301.5 MB, free: 19.47 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.336e-05/0.1855, allocations: 28.47 kB / 301.6 MB, free: 19.44 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.536e-05/0.1855, allocations: 27.61 kB / 301.6 MB, free: 19.41 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.311e-05/0.1856, allocations: 65 kB / 301.7 MB, free: 19.34 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.1856, allocations: 0 / 301.7 MB, free: 19.34 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.693e-05/0.1857, allocations: 85.95 kB / 301.7 MB, free: 19.25 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.703e-05/0.1857, allocations: 33.28 kB / 301.8 MB, free: 19.21 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.323e-06/0.1857, allocations: 2.406 kB / 301.8 MB, free: 19.21 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.1858, allocations: 0.5312 kB / 301.8 MB, free: 19.21 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.877e-06/0.1858, allocations: 3.719 kB / 301.8 MB, free: 19.21 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.1858, allocations: 4.25 kB / 301.8 MB, free: 19.21 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.361e-05/0.1858, allocations: 1 kB / 301.8 MB, free: 19.21 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.227e-06/0.1858, allocations: 1.734 kB / 301.8 MB, free: 19.21 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 6.776e-05/0.1859, allocations: 139.3 kB / 301.9 MB, free: 19.07 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.957e-06/0.1859, allocations: 2.406 kB / 301.9 MB, free: 19.07 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.405e-05/0.1859, allocations: 5.422 kB / 301.9 MB, free: 19.07 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.1859, allocations: 1.844 kB / 301.9 MB, free: 19.07 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.1859, allocations: 4.469 kB / 301.9 MB, free: 19.06 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.1859, allocations: 1.312 kB / 301.9 MB, free: 19.06 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.149e-05/0.186, allocations: 62.94 kB / 302 MB, free: 18.99 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.186, allocations: 1.656 kB / 302 MB, free: 18.99 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.993e-06/0.186, allocations: 3.438 kB / 302 MB, free: 18.99 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/0.186, allocations: 0 / 302 MB, free: 18.99 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.638e-06/0.186, allocations: 3.797 kB / 302 MB, free: 18.99 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-07/0.186, allocations: 0.6875 kB / 302 MB, free: 18.99 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.186, allocations: 0 / 302 MB, free: 18.99 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.384e-05/0.186, allocations: 118.5 kB / 302.1 MB, free: 18.86 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.224e-06/0.1861, allocations: 2.391 kB / 302.1 MB, free: 18.86 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.262e-05/0.1861, allocations: 5.266 kB / 302.1 MB, free: 18.86 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.642e-06/0.1861, allocations: 1.75 kB / 302.1 MB, free: 18.86 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.137e-05/0.1861, allocations: 1.516 kB / 302.1 MB, free: 18.86 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-06/0.1861, allocations: 2.094 kB / 302.1 MB, free: 18.86 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.075e-06/0.1861, allocations: 8.797 kB / 302.2 MB, free: 18.85 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1861, allocations: 0.6562 kB / 302.2 MB, free: 18.85 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001753/0.1863, allocations: 36.88 kB / 302.2 MB, free: 18.85 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.0006419/0.1869, allocations: 325.4 kB / 302.5 MB, free: 18.76 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 9.649e-05/0.187, allocations: 120 kB / 302.6 MB, free: 18.63 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.187, allocations: 0 / 302.6 MB, free: 18.63 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.294e-05/0.187, allocations: 87.86 kB / 302.7 MB, free: 18.53 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.821e-05/0.1871, allocations: 8.875 kB / 302.7 MB, free: 18.53 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001541/0.1872, allocations: 111.3 kB / 302.8 MB, free: 18.4 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.373e-05/0.1873, allocations: 53.25 kB / 302.9 MB, free: 18.33 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.843e-06/0.1873, allocations: 1.125 kB / 302.9 MB, free: 18.33 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.872e-05/0.1873, allocations: 52.31 kB / 302.9 MB, free: 18.28 MB / 282.7 MB Notification: Performance of SimCode: time 5.51e-07/0.1873, allocations: 0 / 302.9 MB, free: 18.28 MB / 282.7 MB Notification: Performance of Templates: time 0.003727/0.191, allocations: 1.165 MB / 304.1 MB, free: 18.16 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.348360165953636]