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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.61/1.61, allocations: 222.9 MB / 241.6 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00114/0.00114, allocations: 103.8 kB / 291.9 MB, free: 10.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3622/0.3622, allocations: 44.12 MB / 386.1 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009979/0.0009979, allocations: 55.91 kB / 457.7 MB, free: 2.312 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3523/0.3533, allocations: 60.79 MB / 0.5064 GB, free: 38.45 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001698/0.355, allocations: 0.5524 MB / 0.5069 GB, free: 38.12 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006662/0.3557, allocations: 296.1 kB / 0.5072 GB, free: 37.95 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.582e-05/0.3557, allocations: 1.062 kB / 0.5072 GB, free: 37.95 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.478e-05/0.3557, allocations: 0 / 0.5072 GB, free: 37.95 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.143e-06/0.3558, allocations: 0 / 0.5072 GB, free: 37.95 MB / 378.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.0007845/0.3566, allocations: 75.39 kB / 0.5073 GB, free: 37.91 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.459e-05/0.3566, allocations: 4.859 kB / 0.5073 GB, free: 37.91 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.254e-05/0.3566, allocations: 4.578 kB / 0.5073 GB, free: 37.91 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.626e-05/0.3567, allocations: 4.844 kB / 0.5073 GB, free: 37.91 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.049e-05/0.3567, allocations: 5.281 kB / 0.5073 GB, free: 37.9 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.45e-06/0.3567, allocations: 0 / 0.5073 GB, free: 37.9 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001578/0.3569, allocations: 105 kB / 0.5074 GB, free: 37.87 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.652e-06/0.3569, allocations: 0 / 0.5074 GB, free: 37.87 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 1.996e-05/0.3569, allocations: 1.031 kB / 0.5074 GB, free: 37.87 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001376/0.357, allocations: 90.62 kB / 0.5075 GB, free: 37.83 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.3571, allocations: 0 / 0.5075 GB, free: 37.83 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.3571, allocations: 1.156 kB / 0.5075 GB, free: 37.83 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.675e-06/0.3571, allocations: 0 / 0.5075 GB, free: 37.83 MB / 378.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.0002495/0.3573, allocations: 366.8 kB / 0.5078 GB, free: 37.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.3574, allocations: 10.03 kB / 0.5078 GB, free: 37.43 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.84e-05/0.3574, allocations: 4.406 kB / 0.5078 GB, free: 37.43 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.701e-05/0.3575, allocations: 165.5 kB / 0.508 GB, free: 37.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.099e-05/0.3575, allocations: 384 / 0.508 GB, free: 37.23 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.102e-05/0.3575, allocations: 1.719 kB / 0.508 GB, free: 37.23 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.658e-05/0.3576, allocations: 32.78 kB / 0.508 GB, free: 37.2 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.052e-06/0.3576, allocations: 192 / 0.508 GB, free: 37.2 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.786e-06/0.3576, allocations: 7.938 kB / 0.508 GB, free: 37.19 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.3576, allocations: 5.156 kB / 0.508 GB, free: 37.18 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.644e-05/0.3576, allocations: 5.094 kB / 0.508 GB, free: 37.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.111e-05/0.3577, allocations: 146.5 kB / 0.5082 GB, free: 36.99 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.854e-05/0.3577, allocations: 17.08 kB / 0.5082 GB, free: 36.97 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.064e-05/0.3578, allocations: 8.859 kB / 0.5082 GB, free: 36.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.312e-06/0.3578, allocations: 1.188 kB / 0.5082 GB, free: 36.96 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.509e-05/0.3578, allocations: 57.39 kB / 0.5083 GB, free: 36.89 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.3578, allocations: 4 kB / 0.5083 GB, free: 36.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001507/0.358, allocations: 69.78 kB / 0.5083 GB, free: 36.81 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.374e-05/0.358, allocations: 78.2 kB / 0.5084 GB, free: 36.72 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.649e-05/0.358, allocations: 89.86 kB / 0.5085 GB, free: 36.62 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.333e-06/0.358, allocations: 30.77 kB / 0.5085 GB, free: 36.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.066e-05/0.358, allocations: 83.33 kB / 0.5086 GB, free: 36.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.672e-05/0.3581, allocations: 1.062 kB / 0.5086 GB, free: 36.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.221e-05/0.3581, allocations: 12.22 kB / 0.5086 GB, free: 36.49 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.837e-05/0.3581, allocations: 315 kB / 0.5089 GB, free: 36.17 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.107e-06/0.3582, allocations: 1.062 kB / 0.5089 GB, free: 36.17 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.631e-06/0.3582, allocations: 1.062 kB / 0.5089 GB, free: 36.17 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.088e-05/0.3582, allocations: 59.67 kB / 0.509 GB, free: 36.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3582, allocations: 0 / 0.509 GB, free: 36.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.075e-05/0.3583, allocations: 69.91 kB / 0.509 GB, free: 36.03 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.24e-05/0.3583, allocations: 32.39 kB / 0.5091 GB, free: 36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.3583, allocations: 0 / 0.5091 GB, free: 36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.3583, allocations: 13.16 kB / 0.5091 GB, free: 35.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.332e-06/0.3583, allocations: 0 / 0.5091 GB, free: 35.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.049e-06/0.3583, allocations: 4.984 kB / 0.5091 GB, free: 35.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.448e-05/0.3584, allocations: 7.266 kB / 0.5091 GB, free: 35.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.412e-06/0.3584, allocations: 1.125 kB / 0.5091 GB, free: 35.98 MB / 378.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 4.498e-05/0.3584, allocations: 133.7 kB / 0.5092 GB, free: 35.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.135e-06/0.3584, allocations: 1.125 kB / 0.5092 GB, free: 35.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.946e-06/0.3584, allocations: 10.66 kB / 0.5092 GB, free: 35.83 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.41e-07/0.3584, allocations: 1.031 kB / 0.5092 GB, free: 35.83 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.3585, allocations: 4 kB / 0.5092 GB, free: 35.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.3585, allocations: 5.141 kB / 0.5093 GB, free: 35.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.135e-05/0.3585, allocations: 150 kB / 0.5094 GB, free: 35.63 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.3585, allocations: 0 / 0.5094 GB, free: 35.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.3585, allocations: 1.094 kB / 0.5094 GB, free: 35.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.3585, allocations: 0 / 0.5094 GB, free: 35.63 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-06/0.3585, allocations: 5.094 kB / 0.5094 GB, free: 35.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.3586, allocations: 0 / 0.5094 GB, free: 35.62 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3586, allocations: 1.156 kB / 0.5094 GB, free: 35.62 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001825/0.3587, allocations: 0.6393 MB / 0.51 GB, free: 34.94 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.648e-05/0.3588, allocations: 77.11 kB / 0.5101 GB, free: 34.85 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.137e-05/0.3588, allocations: 4.469 kB / 0.5101 GB, free: 34.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.206e-06/0.3588, allocations: 5.156 kB / 0.5101 GB, free: 34.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.384e-05/0.3588, allocations: 5.094 kB / 0.5101 GB, free: 34.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-06/0.3588, allocations: 0 / 0.5101 GB, free: 34.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.343e-05/0.3588, allocations: 80.25 kB / 0.5102 GB, free: 34.76 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3588, allocations: 0 / 0.5102 GB, free: 34.76 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003364/0.3592, allocations: 31.78 kB / 0.5102 GB, free: 34.75 MB / 378.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.0004404/0.3596, allocations: 281.6 kB / 0.5105 GB, free: 34.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.368e-05/0.3597, allocations: 63.72 kB / 0.5106 GB, free: 34.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3597, allocations: 0 / 0.5106 GB, free: 34.55 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.692e-05/0.3597, allocations: 54.12 kB / 0.5106 GB, free: 34.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001124/0.3599, allocations: 6.438 kB / 0.5106 GB, free: 34.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001662/0.36, allocations: 180.6 kB / 0.5108 GB, free: 34.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.139e-05/0.3601, allocations: 0.6733 MB / 0.5114 GB, free: 33.58 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.17e-06/0.3601, allocations: 0 / 0.5114 GB, free: 33.58 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.554e-06/0.3602, allocations: 10.22 kB / 0.5114 GB, free: 33.57 MB / 378.7 MB Notification: Performance of SimCode: time 8.62e-07/0.3602, allocations: 0 / 0.5114 GB, free: 33.57 MB / 378.7 MB Notification: Performance of Templates: time 0.002787/0.363, allocations: 0.9715 MB / 0.5124 GB, free: 33.43 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.makefile (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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches