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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001416/0.001416, allocations: 103.6 kB / 16.93 MB, free: 5.793 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001567/0.001567, allocations: 191.3 kB / 17.86 MB, free: 5.152 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.405/1.405, allocations: 205.1 MB / 223.7 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2085/0.2085, allocations: 43.52 MB / 314.6 MB, free: 0.5391 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 73.78 kB / 383.4 MB, free: 56.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09091/0.09242, allocations: 57.79 MB / 441.2 MB, free: 6.93 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001619/0.09408, allocations: 497.4 kB / 441.7 MB, free: 6.438 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006385/0.09474, allocations: 300.4 kB / 442 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.011e-05/0.09477, allocations: 0 / 442 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.706e-05/0.0948, allocations: 0 / 442 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.989e-06/0.09482, allocations: 0 / 442 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007883/0.09561, allocations: 95.23 kB / 442.1 MB, free: 6.059 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.203e-05/0.09567, allocations: 0 / 442.1 MB, free: 6.059 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.559e-05/0.09571, allocations: 7.984 kB / 442.1 MB, free: 6.051 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.567e-05/0.09573, allocations: 4 kB / 442.1 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.987e-05/0.09576, allocations: 0 / 442.1 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.811e-06/0.09577, allocations: 0 / 442.1 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001539/0.09593, allocations: 99.91 kB / 442.2 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.334e-06/0.09594, allocations: 0 / 442.2 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 1.804e-05/0.09596, allocations: 7.984 kB / 442.2 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001359/0.09611, allocations: 87.75 kB / 442.3 MB, free: 5.855 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.09612, allocations: 4 kB / 442.3 MB, free: 5.852 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.09612, allocations: 0 / 442.3 MB, free: 5.852 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.856e-06/0.09614, allocations: 0 / 442.3 MB, free: 5.852 MB / 318.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.0002383/0.09638, allocations: 357.3 kB / 442.6 MB, free: 5.445 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.057e-05/0.09642, allocations: 15.89 kB / 442.6 MB, free: 5.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.001e-05/0.09645, allocations: 4.844 kB / 442.6 MB, free: 5.426 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.663e-05/0.0965, allocations: 164.4 kB / 442.8 MB, free: 5.227 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.044e-05/0.09652, allocations: 384 / 442.8 MB, free: 5.227 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.853e-06/0.09653, allocations: 384 / 442.8 MB, free: 5.227 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.087e-05/0.09661, allocations: 34.27 kB / 442.8 MB, free: 5.188 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.064e-06/0.09662, allocations: 192 / 442.8 MB, free: 5.188 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.496e-06/0.09663, allocations: 3.938 kB / 442.8 MB, free: 5.184 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.09664, allocations: 7.938 kB / 442.8 MB, free: 5.176 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.712e-05/0.09666, allocations: 7.938 kB / 442.8 MB, free: 5.168 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.058e-05/0.09675, allocations: 149.6 kB / 443 MB, free: 4.973 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.891e-05/0.09678, allocations: 14.67 kB / 443 MB, free: 4.949 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.158e-05/0.0968, allocations: 8.859 kB / 443 MB, free: 4.938 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.544e-06/0.09682, allocations: 0 / 443 MB, free: 4.938 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.764e-05/0.09685, allocations: 60.27 kB / 443.1 MB, free: 4.863 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 8.01e-07/0.09685, allocations: 4 kB / 443.1 MB, free: 4.859 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.000141/0.097, allocations: 71.27 kB / 443.1 MB, free: 4.777 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.083e-05/0.09704, allocations: 77.11 kB / 443.2 MB, free: 4.684 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.799e-05/0.09706, allocations: 89.86 kB / 443.3 MB, free: 4.586 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.42e-06/0.09707, allocations: 29.7 kB / 443.3 MB, free: 4.551 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.837e-06/0.09709, allocations: 80.14 kB / 443.4 MB, free: 4.469 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.31e-05/0.0971, allocations: 288 / 443.4 MB, free: 4.469 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.222e-05/0.09713, allocations: 13.72 kB / 443.4 MB, free: 4.449 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.892e-05/0.09717, allocations: 319 kB / 443.7 MB, free: 4.129 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.466e-06/0.09719, allocations: 0 / 443.7 MB, free: 4.129 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.99e-06/0.0972, allocations: 0 / 443.7 MB, free: 4.129 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.233e-05/0.09723, allocations: 64.25 kB / 443.8 MB, free: 4.051 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.09724, allocations: 0 / 443.8 MB, free: 4.051 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.135e-05/0.0973, allocations: 67.34 kB / 443.9 MB, free: 3.973 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/0.09733, allocations: 30.48 kB / 443.9 MB, free: 3.938 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.09733, allocations: 0 / 443.9 MB, free: 3.938 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.09735, allocations: 8.031 kB / 443.9 MB, free: 3.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.41e-07/0.09736, allocations: 0 / 443.9 MB, free: 3.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.09737, allocations: 4 kB / 443.9 MB, free: 3.926 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.597e-05/0.09739, allocations: 11.92 kB / 443.9 MB, free: 3.914 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.51e-06/0.0974, allocations: 0 / 443.9 MB, free: 3.914 MB / 318.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 4.535e-05/0.09745, allocations: 136.6 kB / 444.1 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.953e-06/0.09746, allocations: 4 kB / 444.1 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.869e-06/0.09748, allocations: 7.062 kB / 444.1 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.62e-07/0.09748, allocations: 0 / 444.1 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.09749, allocations: 4 kB / 444.1 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.0975, allocations: 0 / 444.1 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.765e-05/0.09755, allocations: 149.7 kB / 444.2 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.09756, allocations: 0 / 444.2 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.51e-07/0.09756, allocations: 7.922 kB / 444.2 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.002e-06/0.09757, allocations: 0 / 444.2 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.624e-06/0.09758, allocations: 7.938 kB / 444.2 MB, free: 3.539 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.09758, allocations: 0 / 444.2 MB, free: 3.539 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.09759, allocations: 0 / 444.2 MB, free: 3.539 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.43e-05/0.09766, allocations: 98.77 kB / 444.3 MB, free: 3.418 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.438e-05/0.09768, allocations: 77.11 kB / 444.4 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.198e-05/0.09769, allocations: 3.938 kB / 444.4 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.689e-06/0.09771, allocations: 7.938 kB / 444.4 MB, free: 3.312 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.469e-05/0.09773, allocations: 0 / 444.4 MB, free: 3.312 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.295e-06/0.09774, allocations: 0 / 444.4 MB, free: 3.312 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.109e-05/0.09775, allocations: 75.28 kB / 444.5 MB, free: 3.238 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.09775, allocations: 0 / 444.5 MB, free: 3.238 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00023/0.09799, allocations: 39.98 kB / 444.5 MB, free: 3.199 MB / 318.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.0004345/0.09843, allocations: 262.1 kB / 444.8 MB, free: 2.992 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 7.509e-05/0.09852, allocations: 59.41 kB / 444.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.614e-06/0.09852, allocations: 0 / 444.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.771e-05/0.09855, allocations: 59.34 kB / 444.9 MB, free: 2.852 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001278/0.09868, allocations: 4 kB / 444.9 MB, free: 2.848 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001464/0.09883, allocations: 102.9 kB / 445 MB, free: 2.715 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.256e-05/0.09893, allocations: 0.669 MB / 445.7 MB, free: 2.02 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.476e-06/0.09895, allocations: 7.438 kB / 445.7 MB, free: 2.012 MB / 318.1 MB Notification: Performance of SimCode: time 2.11e-07/0.09895, allocations: 0 / 445.7 MB, free: 2.012 MB / 318.1 MB Notification: Performance of Templates: time 0.002227/0.1012, allocations: 1.147 MB / 446.8 MB, free: 0.8633 MB / 318.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.makefile (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=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches