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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 113.4 kB / 17.78 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001646/0.001646, allocations: 188.1 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2533/0.2533, allocations: 44.18 MB / 336.8 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 63.89 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2991/0.3005, allocations: 60.83 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.00147/0.302, allocations: 486 kB / 0.5189 GB, free: 2.996 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007273/0.3028, allocations: 305.7 kB / 0.5192 GB, free: 2.812 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.056e-05/0.3028, allocations: 0 / 0.5192 GB, free: 2.812 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.299e-05/0.3028, allocations: 0 / 0.5192 GB, free: 2.812 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.71e-06/0.3029, allocations: 0 / 0.5192 GB, free: 2.812 MB / 382.1 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.0008715/0.3037, allocations: 96.81 kB / 0.5192 GB, free: 2.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.614e-05/0.3038, allocations: 2.266 kB / 0.5192 GB, free: 2.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.67e-05/0.3038, allocations: 10.09 kB / 0.5193 GB, free: 2.762 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.779e-05/0.3039, allocations: 1.344 kB / 0.5193 GB, free: 2.762 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.229e-05/0.3039, allocations: 0 / 0.5193 GB, free: 2.762 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.292e-06/0.3039, allocations: 0 / 0.5193 GB, free: 2.762 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002164/0.3041, allocations: 112.3 kB / 0.5194 GB, free: 2.727 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.294e-06/0.3041, allocations: 1.188 kB / 0.5194 GB, free: 2.727 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.941e-05/0.3042, allocations: 3.984 kB / 0.5194 GB, free: 2.723 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001919/0.3044, allocations: 81.06 kB / 0.5194 GB, free: 2.695 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.3044, allocations: 1.969 kB / 0.5194 GB, free: 2.695 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3044, allocations: 3.938 kB / 0.5195 GB, free: 2.691 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.3044, allocations: 4 kB / 0.5195 GB, free: 2.688 MB / 382.1 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.0002824/0.3047, allocations: 360.2 kB / 0.5198 GB, free: 2.293 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.3047, allocations: 11.69 kB / 0.5198 GB, free: 2.293 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.532e-05/0.3048, allocations: 30.75 kB / 0.5198 GB, free: 2.254 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.251e-05/0.3048, allocations: 1.734 kB / 0.5198 GB, free: 2.254 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.585e-05/0.3049, allocations: 161 kB / 0.52 GB, free: 2.059 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.3049, allocations: 1.625 kB / 0.52 GB, free: 2.059 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.084e-05/0.3049, allocations: 1.781 kB / 0.52 GB, free: 2.059 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.267e-05/0.305, allocations: 37.34 kB / 0.52 GB, free: 2.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-06/0.305, allocations: 7.938 kB / 0.52 GB, free: 2.012 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.097e-06/0.305, allocations: 1.438 kB / 0.52 GB, free: 2.012 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.305, allocations: 0.8438 kB / 0.52 GB, free: 2.012 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.801e-05/0.305, allocations: 1.375 kB / 0.52 GB, free: 2.012 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000109/0.3052, allocations: 148.3 kB / 0.5202 GB, free: 1.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.422e-05/0.3052, allocations: 17.77 kB / 0.5202 GB, free: 1.797 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.36e-05/0.3052, allocations: 6.266 kB / 0.5202 GB, free: 1.789 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.466e-06/0.3052, allocations: 4 kB / 0.5202 GB, free: 1.785 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.211e-05/0.3053, allocations: 58.03 kB / 0.5203 GB, free: 1.715 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.3053, allocations: 3.938 kB / 0.5203 GB, free: 1.711 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001624/0.3054, allocations: 69.73 kB / 0.5203 GB, free: 1.641 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.746e-05/0.3055, allocations: 77.81 kB / 0.5204 GB, free: 1.547 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.245e-05/0.3055, allocations: 91.39 kB / 0.5205 GB, free: 1.449 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.736e-06/0.3055, allocations: 25.7 kB / 0.5205 GB, free: 1.418 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.6e-05/0.3055, allocations: 81.2 kB / 0.5206 GB, free: 1.336 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.867e-05/0.3056, allocations: 8.062 kB / 0.5206 GB, free: 1.328 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.48e-05/0.3056, allocations: 13.38 kB / 0.5206 GB, free: 1.312 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.724e-05/0.3056, allocations: 311.4 kB / 0.5209 GB, free: 1 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.085e-05/0.3057, allocations: 1.734 kB / 0.5209 GB, free: 1 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.873e-06/0.3057, allocations: 5.094 kB / 0.5209 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.465e-05/0.3057, allocations: 64.69 kB / 0.521 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3057, allocations: 1.031 kB / 0.521 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.888e-05/0.3058, allocations: 63.27 kB / 0.5211 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.942e-05/0.3058, allocations: 32.73 kB / 0.5211 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.3058, allocations: 3.938 kB / 0.5211 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.3058, allocations: 1.094 kB / 0.5211 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.312e-06/0.3059, allocations: 0.75 kB / 0.5211 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.3059, allocations: 4 kB / 0.5211 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.571e-05/0.3059, allocations: 1.188 kB / 0.5211 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.883e-06/0.3059, allocations: 1.188 kB / 0.5211 GB, free: 0.8164 MB / 382.1 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 6.42e-05/0.306, allocations: 139 kB / 0.5212 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.136e-05/0.306, allocations: 5.094 kB / 0.5212 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.127e-05/0.306, allocations: 11.91 kB / 0.5212 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.306, allocations: 1 kB / 0.5212 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.306, allocations: 0 / 0.5212 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.306, allocations: 1.359 kB / 0.5212 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.991e-05/0.3061, allocations: 147 kB / 0.5214 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3061, allocations: 0.9375 kB / 0.5214 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.074e-06/0.3061, allocations: 0.8438 kB / 0.5214 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.3061, allocations: 5.438 kB / 0.5214 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.3061, allocations: 3.938 kB / 0.5214 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.3061, allocations: 7.938 kB / 0.5214 GB, free: 460 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.3061, allocations: 2.125 kB / 0.5214 GB, free: 460 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.1e-05/0.3062, allocations: 88.28 kB / 0.5215 GB, free: 360 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.395e-05/0.3062, allocations: 78.05 kB / 0.5216 GB, free: 264 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.557e-05/0.3062, allocations: 5.531 kB / 0.5216 GB, free: 260 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.343e-05/0.3063, allocations: 0.8438 kB / 0.5216 GB, free: 260 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.801e-05/0.3063, allocations: 6.031 kB / 0.5216 GB, free: 256 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.386e-06/0.3063, allocations: 4.031 kB / 0.5216 GB, free: 252 kB / 382.1 MB Notification: Performance of sorting global known variables: time 1.096e-05/0.3063, allocations: 75.28 kB / 0.5217 GB, free: 176 kB / 382.1 MB Notification: Performance of sort global known variables: time 8.51e-07/0.3063, allocations: 1.125 kB / 0.5217 GB, free: 176 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003781/0.3067, allocations: 42.2 kB / 0.5217 GB, free: 160 kB / 382.1 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.0007194/0.3074, allocations: 0.8008 MB / 0.5225 GB, free: 15.46 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.799e-05/0.3075, allocations: 57.22 kB / 0.5225 GB, free: 15.4 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.3075, allocations: 4.062 kB / 0.5225 GB, free: 15.4 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.908e-05/0.3076, allocations: 56.7 kB / 0.5226 GB, free: 15.34 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001255/0.3077, allocations: 4.203 kB / 0.5226 GB, free: 15.34 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002821/0.308, allocations: 130.9 kB / 0.5227 GB, free: 15.19 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002034/0.3082, allocations: 0.6752 MB / 0.5234 GB, free: 14.49 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.019e-06/0.3082, allocations: 0 / 0.5234 GB, free: 14.49 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.149e-05/0.3082, allocations: 8.438 kB / 0.5234 GB, free: 14.48 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3082, allocations: 1.094 kB / 0.5234 GB, free: 14.48 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01813/0.3264, allocations: 1.814 MB / 0.5252 GB, free: 14 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.485/7.811, allocations: 12.78 kB / 0.5252 GB, free: 13.99 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches