Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00114/0.00114, allocations: 193.9 kB / 16.09 MB, free: 5.547 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.289/1.289, allocations: 226.5 MB / 243.4 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007442/0.0007442, allocations: 112.6 kB / 295.5 MB, free: 6.688 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2966/0.2966, allocations: 44.83 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002439/0.0002439, allocations: 12 kB / 465.3 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2688/0.2691, allocations: 62.96 MB / 0.5159 GB, free: 37.3 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0004653/0.2696, allocations: 210.3 kB / 0.5161 GB, free: 37.15 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004819/0.27, allocations: 274.8 kB / 0.5163 GB, free: 36.99 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.491e-05/0.2701, allocations: 0 / 0.5163 GB, free: 36.99 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.282e-05/0.2701, allocations: 0 / 0.5163 GB, free: 36.99 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.38e-06/0.2701, allocations: 2.938 kB / 0.5163 GB, free: 36.99 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.0005492/0.2707, allocations: 79.05 kB / 0.5164 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.546e-05/0.2707, allocations: 2.812 kB / 0.5164 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.183e-05/0.2707, allocations: 0 / 0.5164 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.519e-05/0.2708, allocations: 7.453 kB / 0.5164 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.175e-05/0.2708, allocations: 10.53 kB / 0.5164 GB, free: 36.94 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.989e-06/0.2708, allocations: 0 / 0.5164 GB, free: 36.94 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001369/0.2709, allocations: 96.91 kB / 0.5165 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.352e-06/0.271, allocations: 0 / 0.5165 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.79e-05/0.271, allocations: 25.7 kB / 0.5165 GB, free: 36.88 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 9.884e-05/0.2711, allocations: 57.17 kB / 0.5166 GB, free: 36.86 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.2711, allocations: 0 / 0.5166 GB, free: 36.86 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2711, allocations: 0 / 0.5166 GB, free: 36.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.2711, allocations: 0 / 0.5166 GB, free: 36.86 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.0002241/0.2713, allocations: 359.6 kB / 0.5169 GB, free: 36.46 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.2714, allocations: 12.62 kB / 0.517 GB, free: 36.46 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.378e-05/0.2714, allocations: 0.9375 kB / 0.517 GB, free: 36.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.815e-05/0.2715, allocations: 171.8 kB / 0.5171 GB, free: 36.26 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.128e-05/0.2715, allocations: 4.375 kB / 0.5171 GB, free: 36.25 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.387e-06/0.2715, allocations: 7.219 kB / 0.5171 GB, free: 36.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.394e-05/0.2716, allocations: 26.27 kB / 0.5172 GB, free: 36.22 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.783e-06/0.2716, allocations: 7.141 kB / 0.5172 GB, free: 36.21 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.705e-06/0.2716, allocations: 3.938 kB / 0.5172 GB, free: 36.21 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.446e-06/0.2716, allocations: 0 / 0.5172 GB, free: 36.21 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.357e-05/0.2716, allocations: 4 kB / 0.5172 GB, free: 36.21 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.616e-05/0.2717, allocations: 147.9 kB / 0.5173 GB, free: 36.02 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.814e-05/0.2718, allocations: 22.52 kB / 0.5173 GB, free: 35.99 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.13e-05/0.2718, allocations: 7.641 kB / 0.5173 GB, free: 35.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.372e-06/0.2718, allocations: 0 / 0.5173 GB, free: 35.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.503e-05/0.2718, allocations: 56.27 kB / 0.5174 GB, free: 35.91 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.21e-07/0.2718, allocations: 2.812 kB / 0.5174 GB, free: 35.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.00013/0.272, allocations: 68.5 kB / 0.5175 GB, free: 35.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.721e-05/0.272, allocations: 77.11 kB / 0.5175 GB, free: 35.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.093e-05/0.272, allocations: 100.6 kB / 0.5176 GB, free: 35.64 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.831e-06/0.2721, allocations: 25.7 kB / 0.5177 GB, free: 35.61 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.518e-06/0.2721, allocations: 84.08 kB / 0.5177 GB, free: 35.52 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.71e-05/0.2721, allocations: 0 / 0.5177 GB, free: 35.52 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.034e-06/0.2721, allocations: 0 / 0.5177 GB, free: 35.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.231e-05/0.2721, allocations: 317 kB / 0.518 GB, free: 35.21 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.883e-06/0.2722, allocations: 4.125 kB / 0.518 GB, free: 35.21 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.899e-06/0.2722, allocations: 0 / 0.518 GB, free: 35.21 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.936e-05/0.2722, allocations: 59.17 kB / 0.5181 GB, free: 35.14 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.2722, allocations: 0 / 0.5181 GB, free: 35.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.752e-05/0.2723, allocations: 67.5 kB / 0.5182 GB, free: 35.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.2723, allocations: 31.92 kB / 0.5182 GB, free: 35.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-06/0.2723, allocations: 0 / 0.5182 GB, free: 35.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.2723, allocations: 3.938 kB / 0.5182 GB, free: 35.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.92e-07/0.2723, allocations: 4.031 kB / 0.5182 GB, free: 35.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.2723, allocations: 4 kB / 0.5182 GB, free: 35.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.44e-05/0.2723, allocations: 0 / 0.5182 GB, free: 35.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.984e-06/0.2724, allocations: 2.938 kB / 0.5182 GB, free: 35.03 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.462e-05/0.2724, allocations: 131.5 kB / 0.5183 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.903e-06/0.2724, allocations: 6.125 kB / 0.5183 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.784e-06/0.2724, allocations: 10.66 kB / 0.5183 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.2724, allocations: 0 / 0.5183 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.2725, allocations: 3.938 kB / 0.5184 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-06/0.2725, allocations: 4 kB / 0.5184 GB, free: 34.87 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.619e-05/0.2725, allocations: 148 kB / 0.5185 GB, free: 34.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.2725, allocations: 0 / 0.5185 GB, free: 34.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.2725, allocations: 0 / 0.5185 GB, free: 34.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.2725, allocations: 0 / 0.5185 GB, free: 34.68 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.2725, allocations: 10.91 kB / 0.5185 GB, free: 34.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.2725, allocations: 0 / 0.5185 GB, free: 34.68 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.2725, allocations: 0 / 0.5185 GB, free: 34.68 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.105e-05/0.2726, allocations: 93.22 kB / 0.5186 GB, free: 34.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.368e-05/0.2726, allocations: 81.05 kB / 0.5187 GB, free: 34.48 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.029e-05/0.2726, allocations: 3.938 kB / 0.5187 GB, free: 34.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.317e-06/0.2727, allocations: 2.906 kB / 0.5187 GB, free: 34.47 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.38e-05/0.2727, allocations: 0 / 0.5187 GB, free: 34.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.046e-06/0.2727, allocations: 4 kB / 0.5187 GB, free: 34.47 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.136e-05/0.2727, allocations: 75.28 kB / 0.5188 GB, free: 34.39 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2727, allocations: 0 / 0.5188 GB, free: 34.39 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002198/0.2729, allocations: 31.33 kB / 0.5188 GB, free: 34.39 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004216/0.2734, allocations: 278.1 kB / 0.5191 GB, free: 34.24 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.339e-05/0.2734, allocations: 61.56 kB / 0.5191 GB, free: 34.17 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2734, allocations: 0 / 0.5191 GB, free: 34.17 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.673e-05/0.2735, allocations: 54.28 kB / 0.5192 GB, free: 34.11 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001147/0.2736, allocations: 6.844 kB / 0.5192 GB, free: 34.11 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001271/0.2737, allocations: 101.4 kB / 0.5193 GB, free: 33.98 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.618e-05/0.2738, allocations: 0.6758 MB / 0.5199 GB, free: 33.28 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.494e-06/0.2738, allocations: 11.38 kB / 0.5199 GB, free: 33.27 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2738, allocations: 0 / 0.5199 GB, free: 33.27 MB / 378.7 MB Notification: Performance of Templates: time 0.002056/0.2759, allocations: 1.157 MB / 0.5211 GB, free: 33.14 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStreams.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStreams --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches