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.0009293/0.0009293, allocations: 200.2 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.283/1.283, allocations: 226.5 MB / 243.1 MB, free: 12.56 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007563/0.0007564, allocations: 99.03 kB / 295.1 MB, free: 4.332 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1897/0.1897, allocations: 44.83 MB / 392 MB, free: 11.37 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002172/0.0002172, allocations: 4 kB / 464.7 MB, free: 68.06 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07787/0.0781, allocations: 62.95 MB / 0.5153 GB, free: 5.102 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0004313/0.07857, allocations: 204.6 kB / 0.5155 GB, free: 4.898 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.000457/0.07904, allocations: 280.8 kB / 0.5158 GB, free: 4.625 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.321e-05/0.07906, allocations: 0 / 0.5158 GB, free: 4.625 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 8.656e-06/0.07908, allocations: 0 / 0.5158 GB, free: 4.625 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.469e-06/0.07909, allocations: 0 / 0.5158 GB, free: 4.625 MB / 346.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.000366/0.07946, allocations: 75.84 kB / 0.5159 GB, free: 4.551 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 2.467e-05/0.0795, allocations: 3.938 kB / 0.5159 GB, free: 4.547 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.977e-05/0.07953, allocations: 0 / 0.5159 GB, free: 4.547 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.27e-05/0.07955, allocations: 0 / 0.5159 GB, free: 4.547 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.795e-05/0.07957, allocations: 3.984 kB / 0.5159 GB, free: 4.543 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.499e-06/0.07958, allocations: 4 kB / 0.5159 GB, free: 4.539 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001203/0.07971, allocations: 103.8 kB / 0.516 GB, free: 4.438 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.2e-06/0.07972, allocations: 4 kB / 0.516 GB, free: 4.434 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.708e-05/0.07974, allocations: 25.7 kB / 0.516 GB, free: 4.402 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 8.333e-05/0.07983, allocations: 51.91 kB / 0.516 GB, free: 4.352 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.07984, allocations: 4 kB / 0.516 GB, free: 4.348 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.07985, allocations: 0 / 0.516 GB, free: 4.348 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.775e-06/0.07986, allocations: 0 / 0.516 GB, free: 4.348 MB / 346.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.0001879/0.08005, allocations: 353.1 kB / 0.5164 GB, free: 3.949 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.982e-05/0.08008, allocations: 8.031 kB / 0.5164 GB, free: 3.941 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.419e-05/0.08011, allocations: 11.92 kB / 0.5164 GB, free: 3.93 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.702e-05/0.08017, allocations: 167 kB / 0.5166 GB, free: 3.727 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.038e-05/0.08018, allocations: 0 / 0.5166 GB, free: 3.727 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.536e-06/0.0802, allocations: 0 / 0.5166 GB, free: 3.727 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.168e-05/0.08026, allocations: 37.62 kB / 0.5166 GB, free: 3.684 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.191e-06/0.08027, allocations: 0 / 0.5166 GB, free: 3.684 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.691e-06/0.08028, allocations: 0 / 0.5166 GB, free: 3.684 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.377e-06/0.08029, allocations: 0 / 0.5166 GB, free: 3.684 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.433e-05/0.08031, allocations: 7.938 kB / 0.5166 GB, free: 3.676 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.306e-05/0.08039, allocations: 149.7 kB / 0.5167 GB, free: 3.48 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.739e-05/0.08042, allocations: 18.58 kB / 0.5168 GB, free: 3.453 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.077e-06/0.08044, allocations: 4.859 kB / 0.5168 GB, free: 3.445 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.891e-06/0.08045, allocations: 0 / 0.5168 GB, free: 3.445 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.515e-05/0.08048, allocations: 68.31 kB / 0.5168 GB, free: 3.363 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 6.91e-07/0.08048, allocations: 0 / 0.5168 GB, free: 3.363 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001174/0.0806, allocations: 67.33 kB / 0.5169 GB, free: 3.285 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.108e-05/0.08063, allocations: 77.23 kB / 0.517 GB, free: 3.191 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.504e-05/0.08065, allocations: 93.86 kB / 0.5171 GB, free: 3.09 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.04e-06/0.08066, allocations: 25.7 kB / 0.5171 GB, free: 3.059 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.997e-06/0.08068, allocations: 80.14 kB / 0.5172 GB, free: 2.977 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.189e-05/0.0807, allocations: 0 / 0.5172 GB, free: 2.977 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.024e-06/0.08071, allocations: 0 / 0.5172 GB, free: 2.977 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.178e-05/0.08076, allocations: 322.8 kB / 0.5175 GB, free: 2.652 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.033e-06/0.08077, allocations: 0 / 0.5175 GB, free: 2.652 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.037e-06/0.08078, allocations: 0 / 0.5175 GB, free: 2.652 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.036e-05/0.08081, allocations: 33.77 kB / 0.5175 GB, free: 2.613 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.08082, allocations: 0 / 0.5175 GB, free: 2.613 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.574e-05/0.08087, allocations: 63.3 kB / 0.5176 GB, free: 2.539 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.08089, allocations: 37.69 kB / 0.5176 GB, free: 2.496 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.586e-06/0.0809, allocations: 0 / 0.5176 GB, free: 2.496 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.166e-06/0.08091, allocations: 0 / 0.5176 GB, free: 2.496 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.232e-06/0.08092, allocations: 4 kB / 0.5176 GB, free: 2.492 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.937e-06/0.08093, allocations: 0 / 0.5176 GB, free: 2.492 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.312e-05/0.08094, allocations: 0 / 0.5176 GB, free: 2.492 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.24e-06/0.08095, allocations: 0 / 0.5176 GB, free: 2.492 MB / 346.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.193e-05/0.081, allocations: 143.6 kB / 0.5177 GB, free: 2.336 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.542e-06/0.08101, allocations: 7.891 kB / 0.5177 GB, free: 2.328 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.061e-06/0.08102, allocations: 7.078 kB / 0.5178 GB, free: 2.324 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.08103, allocations: 4 kB / 0.5178 GB, free: 2.32 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.08103, allocations: 0 / 0.5178 GB, free: 2.32 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.08104, allocations: 3.984 kB / 0.5178 GB, free: 2.316 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.156e-05/0.08109, allocations: 141.7 kB / 0.5179 GB, free: 2.129 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.41e-07/0.08109, allocations: 0 / 0.5179 GB, free: 2.129 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.0811, allocations: 0 / 0.5179 GB, free: 2.129 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.0811, allocations: 7.953 kB / 0.5179 GB, free: 2.121 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-06/0.08111, allocations: 4 kB / 0.5179 GB, free: 2.117 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.08112, allocations: 3.938 kB / 0.5179 GB, free: 2.113 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.08112, allocations: 0 / 0.5179 GB, free: 2.113 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.706e-05/0.08118, allocations: 94.77 kB / 0.518 GB, free: 1.996 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.144e-05/0.0812, allocations: 77.11 kB / 0.5181 GB, free: 1.902 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.006e-05/0.08122, allocations: 3.953 kB / 0.5181 GB, free: 1.898 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.285e-06/0.08123, allocations: 0 / 0.5181 GB, free: 1.898 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.267e-05/0.08125, allocations: 8.016 kB / 0.5181 GB, free: 1.891 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-06/0.08126, allocations: 4 kB / 0.5181 GB, free: 1.887 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.137e-06/0.08127, allocations: 75.28 kB / 0.5182 GB, free: 1.812 MB / 346.7 MB Notification: Performance of sort global known variables: time 1e-07/0.08127, allocations: 0 / 0.5182 GB, free: 1.812 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002226/0.0815, allocations: 32 kB / 0.5182 GB, free: 1.781 MB / 346.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.000395/0.0819, allocations: 278.9 kB / 0.5185 GB, free: 1.551 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 5.784e-05/0.08197, allocations: 59.41 kB / 0.5185 GB, free: 1.48 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.08198, allocations: 0 / 0.5185 GB, free: 1.48 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.501e-05/0.082, allocations: 63.28 kB / 0.5186 GB, free: 1.406 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001073/0.08211, allocations: 4.125 kB / 0.5186 GB, free: 1.402 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001192/0.08223, allocations: 104.4 kB / 0.5187 GB, free: 1.266 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.252e-05/0.08232, allocations: 0.6692 MB / 0.5193 GB, free: 0.5703 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.163e-06/0.08233, allocations: 11.44 kB / 0.5193 GB, free: 0.5586 MB / 346.7 MB Notification: Performance of SimCode: time 2.11e-07/0.08233, allocations: 0 / 0.5193 GB, free: 0.5586 MB / 346.7 MB Notification: Performance of Templates: time 0.002047/0.08439, allocations: 1.148 MB / 0.5205 GB, free: 15.41 MB / 362.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