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: "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009477/0.0009478, allocations: 198.3 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.26/1.26, allocations: 226.5 MB / 243.4 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007288/0.0007289, allocations: 91.48 kB / 295.5 MB, free: 6.656 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3027/0.3027, allocations: 44.82 MB / 392.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002575/0.0002576, allocations: 15.98 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2948/0.2951, allocations: 62.96 MB / 0.516 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0005502/0.2957, allocations: 207 kB / 0.5162 GB, free: 37.11 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.000529/0.2962, allocations: 279.2 kB / 0.5164 GB, free: 36.94 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.67e-05/0.2962, allocations: 0 / 0.5164 GB, free: 36.94 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.255e-06/0.2963, allocations: 0 / 0.5164 GB, free: 36.94 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.173e-06/0.2963, allocations: 4 kB / 0.5164 GB, free: 36.94 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.0006338/0.2969, allocations: 73.05 kB / 0.5165 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.933e-05/0.297, allocations: 0 / 0.5165 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.135e-05/0.297, allocations: 3.031 kB / 0.5165 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.57e-05/0.297, allocations: 3.938 kB / 0.5165 GB, free: 36.9 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.079e-05/0.297, allocations: 3.938 kB / 0.5165 GB, free: 36.9 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.971e-06/0.297, allocations: 3.984 kB / 0.5165 GB, free: 36.89 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001406/0.2972, allocations: 102.4 kB / 0.5166 GB, free: 36.86 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.981e-06/0.2972, allocations: 0 / 0.5166 GB, free: 36.86 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.767e-05/0.2972, allocations: 25.7 kB / 0.5166 GB, free: 36.83 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001024/0.2974, allocations: 49.2 kB / 0.5167 GB, free: 36.82 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.2974, allocations: 8 kB / 0.5167 GB, free: 36.81 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.2974, allocations: 0 / 0.5167 GB, free: 36.81 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.2974, allocations: 0 / 0.5167 GB, free: 36.81 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.0002486/0.2976, allocations: 360.2 kB / 0.517 GB, free: 36.42 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.2977, allocations: 9.812 kB / 0.517 GB, free: 36.42 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.368e-05/0.2977, allocations: 34.12 kB / 0.5171 GB, free: 36.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.311e-05/0.2977, allocations: 0.9375 kB / 0.5171 GB, free: 36.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.276e-05/0.2978, allocations: 164.3 kB / 0.5172 GB, free: 36.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.747e-06/0.2978, allocations: 4.312 kB / 0.5172 GB, free: 36.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.045e-05/0.2978, allocations: 3.406 kB / 0.5172 GB, free: 36.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.513e-05/0.2979, allocations: 34.27 kB / 0.5173 GB, free: 36.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.2979, allocations: 3.938 kB / 0.5173 GB, free: 36.13 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.023e-06/0.298, allocations: 2.844 kB / 0.5173 GB, free: 36.13 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.298, allocations: 0 / 0.5173 GB, free: 36.13 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.121e-05/0.298, allocations: 3.188 kB / 0.5173 GB, free: 36.13 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001142/0.2981, allocations: 144.6 kB / 0.5174 GB, free: 35.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.454e-05/0.2982, allocations: 18.52 kB / 0.5174 GB, free: 35.92 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.283e-05/0.2982, allocations: 11.83 kB / 0.5174 GB, free: 35.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.456e-06/0.2982, allocations: 0 / 0.5174 GB, free: 35.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.969e-05/0.2982, allocations: 63.55 kB / 0.5175 GB, free: 35.83 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.713e-06/0.2982, allocations: 3.984 kB / 0.5175 GB, free: 35.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001746/0.2984, allocations: 68.23 kB / 0.5176 GB, free: 35.76 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.645e-05/0.2985, allocations: 77.11 kB / 0.5176 GB, free: 35.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.516e-05/0.2985, allocations: 93.14 kB / 0.5177 GB, free: 35.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.667e-06/0.2985, allocations: 32.73 kB / 0.5178 GB, free: 35.53 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.252e-05/0.2986, allocations: 84.14 kB / 0.5178 GB, free: 35.45 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.355e-05/0.2986, allocations: 0 / 0.5178 GB, free: 35.45 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.053e-06/0.2986, allocations: 3.938 kB / 0.5179 GB, free: 35.44 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.746e-05/0.2986, allocations: 314.8 kB / 0.5182 GB, free: 35.12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.955e-06/0.2986, allocations: 2.969 kB / 0.5182 GB, free: 35.12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.048e-06/0.2987, allocations: 0 / 0.5182 GB, free: 35.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.105e-05/0.2987, allocations: 59.14 kB / 0.5182 GB, free: 35.05 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-06/0.2987, allocations: 4.062 kB / 0.5182 GB, free: 35.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.368e-05/0.2988, allocations: 60.69 kB / 0.5183 GB, free: 34.99 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.581e-05/0.2988, allocations: 35.64 kB / 0.5183 GB, free: 34.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.2988, allocations: 7.938 kB / 0.5183 GB, free: 34.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.2988, allocations: 3 kB / 0.5183 GB, free: 34.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.112e-06/0.2988, allocations: 0 / 0.5183 GB, free: 34.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.2988, allocations: 0 / 0.5183 GB, free: 34.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.693e-05/0.2989, allocations: 3.938 kB / 0.5183 GB, free: 34.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.807e-06/0.2989, allocations: 3.375 kB / 0.5183 GB, free: 34.94 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 5.871e-05/0.2989, allocations: 138.5 kB / 0.5185 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.022e-06/0.2989, allocations: 0 / 0.5185 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.031e-05/0.299, allocations: 13.59 kB / 0.5185 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.299, allocations: 3.938 kB / 0.5185 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.299, allocations: 0 / 0.5185 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.299, allocations: 0 / 0.5185 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.366e-05/0.299, allocations: 148.8 kB / 0.5186 GB, free: 34.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.21e-07/0.2991, allocations: 0 / 0.5186 GB, free: 34.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.2991, allocations: 0 / 0.5186 GB, free: 34.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-06/0.2991, allocations: 0 / 0.5186 GB, free: 34.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.642e-06/0.2991, allocations: 3.938 kB / 0.5186 GB, free: 34.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.258e-05/0.2991, allocations: 4 kB / 0.5186 GB, free: 34.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2991, allocations: 0 / 0.5186 GB, free: 34.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.956e-05/0.2992, allocations: 90.84 kB / 0.5187 GB, free: 34.49 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.85e-05/0.2992, allocations: 77.11 kB / 0.5188 GB, free: 34.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.282e-05/0.2993, allocations: 7.172 kB / 0.5188 GB, free: 34.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.077e-06/0.2993, allocations: 0 / 0.5188 GB, free: 34.39 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.727e-05/0.2993, allocations: 10.94 kB / 0.5188 GB, free: 34.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.235e-06/0.2993, allocations: 4.031 kB / 0.5188 GB, free: 34.38 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.291e-05/0.2993, allocations: 75.28 kB / 0.5189 GB, free: 34.31 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2993, allocations: 0 / 0.5189 GB, free: 34.31 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000268/0.2996, allocations: 32.98 kB / 0.5189 GB, free: 34.3 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.0006202/0.3002, allocations: 0.8005 MB / 0.5197 GB, free: 33.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.624e-05/0.3003, allocations: 57.28 kB / 0.5197 GB, free: 33.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3003, allocations: 4.062 kB / 0.5197 GB, free: 33.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.814e-05/0.3003, allocations: 58.31 kB / 0.5198 GB, free: 33.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001234/0.3005, allocations: 6.781 kB / 0.5198 GB, free: 33.47 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000268/0.3007, allocations: 151.9 kB / 0.52 GB, free: 33.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.112e-05/0.3008, allocations: 0.6721 MB / 0.5206 GB, free: 32.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.073e-05/0.3009, allocations: 7.438 kB / 0.5206 GB, free: 32.59 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3009, allocations: 0 / 0.5206 GB, free: 32.59 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.797/3.098, allocations: 1.285 MB / 0.5219 GB, free: 32.46 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStreams_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestStreams_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins1/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