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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001917/0.001917, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 226.7 MB / 245.5 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001129/0.001129, allocations: 99.88 kB / 296.7 MB, free: 6.457 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3691/0.3691, allocations: 44.83 MB / 392.7 MB, free: 34.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 55.91 kB / 465.5 MB, free: 12.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.3221, allocations: 62.01 MB / 0.5151 GB, free: 37.77 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.002053/0.3242, allocations: 0.5467 MB / 0.5157 GB, free: 37.43 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007608/0.3249, allocations: 301.1 kB / 0.516 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.478e-05/0.325, allocations: 0 / 0.516 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.727e-05/0.325, allocations: 0 / 0.516 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.481e-06/0.325, allocations: 0 / 0.516 GB, free: 37.25 MB / 378.7 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.0009213/0.3259, allocations: 85.17 kB / 0.516 GB, free: 37.21 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.401e-05/0.326, allocations: 3.938 kB / 0.516 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.873e-05/0.326, allocations: 2.812 kB / 0.5161 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.779e-05/0.3261, allocations: 0 / 0.5161 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.285e-05/0.3261, allocations: 0 / 0.5161 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.122e-06/0.3261, allocations: 0 / 0.5161 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001745/0.3263, allocations: 101.6 kB / 0.5161 GB, free: 37.17 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.958e-06/0.3263, allocations: 2.562 kB / 0.5161 GB, free: 37.17 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.838e-05/0.3263, allocations: 0 / 0.5161 GB, free: 37.17 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001598/0.3265, allocations: 89.77 kB / 0.5162 GB, free: 37.14 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.3265, allocations: 0 / 0.5162 GB, free: 37.14 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3265, allocations: 4 kB / 0.5162 GB, free: 37.13 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.3265, allocations: 6.5 kB / 0.5162 GB, free: 37.13 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.0003172/0.3268, allocations: 361.7 kB / 0.5166 GB, free: 36.73 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.3269, allocations: 14.12 kB / 0.5166 GB, free: 36.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.652e-05/0.3269, allocations: 0.9375 kB / 0.5166 GB, free: 36.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.225e-05/0.327, allocations: 160.4 kB / 0.5168 GB, free: 36.54 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.1e-05/0.327, allocations: 384 / 0.5168 GB, free: 36.54 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.066e-06/0.327, allocations: 3.156 kB / 0.5168 GB, free: 36.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.806e-05/0.3271, allocations: 36.42 kB / 0.5168 GB, free: 36.5 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.3271, allocations: 192 / 0.5168 GB, free: 36.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-06/0.3271, allocations: 3.938 kB / 0.5168 GB, free: 36.5 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.3272, allocations: 0 / 0.5168 GB, free: 36.5 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.661e-05/0.3272, allocations: 6.75 kB / 0.5168 GB, free: 36.49 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001107/0.3273, allocations: 141.7 kB / 0.5169 GB, free: 36.3 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.426e-05/0.3273, allocations: 25.2 kB / 0.517 GB, free: 36.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.499e-05/0.3274, allocations: 8.281 kB / 0.517 GB, free: 36.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.055e-06/0.3274, allocations: 4 kB / 0.517 GB, free: 36.26 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.326e-05/0.3274, allocations: 58.73 kB / 0.517 GB, free: 36.19 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.3274, allocations: 0 / 0.517 GB, free: 36.19 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001676/0.3276, allocations: 62.84 kB / 0.5171 GB, free: 36.12 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.474e-05/0.3276, allocations: 88.42 kB / 0.5172 GB, free: 36.02 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.138e-05/0.3277, allocations: 89.86 kB / 0.5173 GB, free: 35.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.139e-05/0.3277, allocations: 28.3 kB / 0.5173 GB, free: 35.89 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.452e-05/0.3277, allocations: 80.27 kB / 0.5174 GB, free: 35.81 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.961e-05/0.3278, allocations: 4 kB / 0.5174 GB, free: 35.81 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.483e-05/0.3278, allocations: 12.28 kB / 0.5174 GB, free: 35.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.988e-05/0.3279, allocations: 314.8 kB / 0.5177 GB, free: 35.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.057e-06/0.3279, allocations: 0 / 0.5177 GB, free: 35.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.019e-06/0.3279, allocations: 2.719 kB / 0.5177 GB, free: 35.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.474e-05/0.3279, allocations: 66.28 kB / 0.5177 GB, free: 35.4 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3279, allocations: 0 / 0.5177 GB, free: 35.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.939e-05/0.328, allocations: 63.75 kB / 0.5178 GB, free: 35.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.579e-05/0.328, allocations: 32.3 kB / 0.5178 GB, free: 35.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.328, allocations: 3.938 kB / 0.5178 GB, free: 35.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.3281, allocations: 7.125 kB / 0.5179 GB, free: 35.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-07/0.3281, allocations: 0 / 0.5179 GB, free: 35.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.3281, allocations: 0 / 0.5179 GB, free: 35.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.343e-05/0.3281, allocations: 0 / 0.5179 GB, free: 35.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.682e-06/0.3281, allocations: 3.969 kB / 0.5179 GB, free: 35.3 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 5.896e-05/0.3282, allocations: 131.5 kB / 0.518 GB, free: 35.15 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.105e-06/0.3282, allocations: 8.031 kB / 0.518 GB, free: 35.14 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.242e-05/0.3282, allocations: 10.66 kB / 0.518 GB, free: 35.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.3282, allocations: 3.875 kB / 0.518 GB, free: 35.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3282, allocations: 3.422 kB / 0.518 GB, free: 35.14 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.3282, allocations: 0 / 0.518 GB, free: 35.14 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.605e-05/0.3283, allocations: 141.7 kB / 0.5181 GB, free: 34.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.3283, allocations: 0 / 0.5181 GB, free: 34.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.3283, allocations: 0 / 0.5181 GB, free: 34.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.113e-06/0.3283, allocations: 3 kB / 0.5181 GB, free: 34.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.686e-06/0.3283, allocations: 7.922 kB / 0.5181 GB, free: 34.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.3283, allocations: 7.281 kB / 0.5182 GB, free: 34.94 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.3283, allocations: 4 kB / 0.5182 GB, free: 34.94 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002066/0.3285, allocations: 0.6311 MB / 0.5188 GB, free: 34.26 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.059e-05/0.3286, allocations: 83.22 kB / 0.5189 GB, free: 34.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.274e-05/0.3286, allocations: 3.938 kB / 0.5189 GB, free: 34.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.725e-06/0.3286, allocations: 0 / 0.5189 GB, free: 34.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.287e-05/0.3286, allocations: 4.031 kB / 0.5189 GB, free: 34.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.295e-06/0.3286, allocations: 2.969 kB / 0.5189 GB, free: 34.16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.534e-05/0.3286, allocations: 75.28 kB / 0.5189 GB, free: 34.08 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3286, allocations: 0 / 0.5189 GB, free: 34.08 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003579/0.329, allocations: 34.67 kB / 0.519 GB, free: 34.07 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.0005193/0.3295, allocations: 274.2 kB / 0.5192 GB, free: 33.93 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 9.325e-05/0.3296, allocations: 61.47 kB / 0.5193 GB, free: 33.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3296, allocations: 2.75 kB / 0.5193 GB, free: 33.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.709e-05/0.3297, allocations: 54.22 kB / 0.5193 GB, free: 33.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001266/0.3298, allocations: 4.062 kB / 0.5193 GB, free: 33.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002166/0.33, allocations: 185.2 kB / 0.5195 GB, free: 33.58 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001328/0.3302, allocations: 0.676 MB / 0.5202 GB, free: 32.88 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.763e-06/0.3302, allocations: 0 / 0.5202 GB, free: 32.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.585e-06/0.3302, allocations: 7.438 kB / 0.5202 GB, free: 32.88 MB / 378.7 MB Notification: Performance of SimCode: time 3.11e-07/0.3302, allocations: 3.938 kB / 0.5202 GB, free: 32.87 MB / 378.7 MB Notification: Performance of Templates: time 0.003141/0.3334, allocations: 0.977 MB / 0.5212 GB, free: 32.72 MB / 378.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches