Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001061/0.001061, allocations: 94.09 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00156/0.00156, allocations: 202.5 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 227.7 MB / 246.8 MB, free: 9.664 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2136/0.2136, allocations: 46.18 MB / 345.2 MB, free: 11.26 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003204/0.0003204, allocations: 8 kB / 419.5 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1193, allocations: 63.56 MB / 483.1 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.000577/0.1199, allocations: 205.2 kB / 483.3 MB, free: 3.953 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006932/0.1206, allocations: 291.6 kB / 483.6 MB, free: 3.672 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.147e-06/0.1207, allocations: 0 / 483.6 MB, free: 3.672 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.197e-05/0.1207, allocations: 4 kB / 483.6 MB, free: 3.668 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.767e-06/0.1207, allocations: 0 / 483.6 MB, free: 3.668 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:221:3-287: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.0007721/0.1215, allocations: 78.14 kB / 483.6 MB, free: 3.594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.085e-05/0.1215, allocations: 7.875 kB / 483.7 MB, free: 3.586 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.013e-05/0.1216, allocations: 3.984 kB / 483.7 MB, free: 3.582 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.552e-05/0.1216, allocations: 3.984 kB / 483.7 MB, free: 3.578 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.8e-05/0.1216, allocations: 0 / 483.7 MB, free: 3.578 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.601e-06/0.1216, allocations: 4 kB / 483.7 MB, free: 3.574 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001775/0.1218, allocations: 99.91 kB / 483.8 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.422e-06/0.1218, allocations: 0 / 483.8 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.859e-05/0.1218, allocations: 25.7 kB / 483.8 MB, free: 3.445 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001606/0.122, allocations: 91.88 kB / 483.9 MB, free: 3.355 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.122, allocations: 0 / 483.9 MB, free: 3.355 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.122, allocations: 0 / 483.9 MB, free: 3.355 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.521e-06/0.122, allocations: 0 / 483.9 MB, free: 3.355 MB / 350.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.0002907/0.1223, allocations: 357.2 kB / 484.2 MB, free: 2.949 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.1224, allocations: 12.88 kB / 484.2 MB, free: 2.938 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.023e-05/0.1224, allocations: 0.9375 kB / 484.2 MB, free: 2.938 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.384e-05/0.1225, allocations: 160.4 kB / 484.4 MB, free: 2.742 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.019e-05/0.1225, allocations: 4.375 kB / 484.4 MB, free: 2.738 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.656e-06/0.1225, allocations: 4.375 kB / 484.4 MB, free: 2.734 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.813e-05/0.1226, allocations: 38.19 kB / 484.4 MB, free: 2.691 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.162e-06/0.1226, allocations: 192 / 484.4 MB, free: 2.691 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.1227, allocations: 7.922 kB / 484.5 MB, free: 2.684 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.1227, allocations: 0 / 484.5 MB, free: 2.684 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.49e-05/0.1227, allocations: 0 / 484.5 MB, free: 2.684 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001129/0.1228, allocations: 145.7 kB / 484.6 MB, free: 2.492 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.239e-05/0.1228, allocations: 18.56 kB / 484.6 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.569e-05/0.1229, allocations: 16.95 kB / 484.6 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.793e-06/0.1229, allocations: 3.938 kB / 484.6 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.655e-05/0.1229, allocations: 56.27 kB / 484.7 MB, free: 2.371 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.1229, allocations: 0 / 484.7 MB, free: 2.371 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000148/0.1231, allocations: 67.33 kB / 484.8 MB, free: 2.293 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.713e-05/0.1231, allocations: 81.09 kB / 484.8 MB, free: 2.195 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.413e-05/0.1232, allocations: 89.86 kB / 484.9 MB, free: 2.098 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.015e-05/0.1232, allocations: 29.83 kB / 484.9 MB, free: 2.062 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.509e-05/0.1232, allocations: 84.14 kB / 485 MB, free: 1.977 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.601e-05/0.1233, allocations: 4 kB / 485 MB, free: 1.973 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.06e-05/0.1233, allocations: 9.719 kB / 485 MB, free: 1.957 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.1234, allocations: 314.8 kB / 485.4 MB, free: 1.641 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.875e-06/0.1234, allocations: 3.938 kB / 485.4 MB, free: 1.637 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.593e-06/0.1234, allocations: 3.938 kB / 485.4 MB, free: 1.633 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.464e-05/0.1235, allocations: 60.27 kB / 485.4 MB, free: 1.559 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1235, allocations: 4.062 kB / 485.4 MB, free: 1.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.97e-05/0.1236, allocations: 67.39 kB / 485.5 MB, free: 1.477 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.339e-05/0.1236, allocations: 29.7 kB / 485.5 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.1236, allocations: 0 / 485.5 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.1236, allocations: 7.938 kB / 485.5 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-07/0.1236, allocations: 0 / 485.5 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.767e-06/0.1236, allocations: 0 / 485.5 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.452e-05/0.1237, allocations: 0 / 485.5 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.131e-06/0.1237, allocations: 0 / 485.5 MB, free: 1.434 MB / 350.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 7.884e-05/0.1238, allocations: 143.6 kB / 485.7 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.398e-06/0.1238, allocations: 0 / 485.7 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.468e-06/0.1238, allocations: 11 kB / 485.7 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.1238, allocations: 4 kB / 485.7 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1238, allocations: 0 / 485.7 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.1238, allocations: 0 / 485.7 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001075/0.1239, allocations: 145.7 kB / 485.8 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.1239, allocations: 3.984 kB / 485.8 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.32e-07/0.1239, allocations: 0 / 485.8 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.1239, allocations: 0 / 485.8 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.758e-06/0.124, allocations: 11.94 kB / 485.8 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.124, allocations: 0 / 485.8 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.124, allocations: 4 kB / 485.8 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.599e-05/0.1241, allocations: 86.83 kB / 485.9 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.366e-05/0.1241, allocations: 77.11 kB / 486 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.365e-05/0.1241, allocations: 7.938 kB / 486 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.847e-06/0.1242, allocations: 0 / 486 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.212e-05/0.1242, allocations: 0 / 486 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.066e-06/0.1242, allocations: 4.031 kB / 486 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.976e-05/0.1242, allocations: 75.28 kB / 486.1 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.473e-06/0.1242, allocations: 0 / 486.1 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002327/0.1245, allocations: 39.92 kB / 486.1 MB, free: 0.7266 MB / 350.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.00049/0.125, allocations: 277.9 kB / 486.4 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.241e-05/0.125, allocations: 59.39 kB / 486.5 MB, free: 432 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.125, allocations: 0 / 486.5 MB, free: 432 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.953e-05/0.1251, allocations: 55.41 kB / 486.5 MB, free: 364 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001197/0.1252, allocations: 4 kB / 486.5 MB, free: 360 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001823/0.1254, allocations: 82.78 kB / 486.6 MB, free: 248 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000355/0.1258, allocations: 0.6731 MB / 487.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.735e-06/0.1258, allocations: 0 / 487.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.203e-05/0.1258, allocations: 11.44 kB / 487.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1258, allocations: 0 / 487.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of Templates: time 0.003287/0.1291, allocations: 0.9568 MB / 488.2 MB, free: 14.58 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches