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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001666/0.001666, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001923/0.001923, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2227/0.2227, allocations: 46.12 MB / 344.4 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002312/0.002312, allocations: 83.84 kB / 480.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2951/0.2974, allocations: 62.44 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001455/0.2989, allocations: 484 kB / 0.5311 GB, free: 13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006907/0.2996, allocations: 308.7 kB / 0.5313 GB, free: 12.78 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.869e-05/0.2997, allocations: 1.156 kB / 0.5314 GB, free: 12.78 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.11e-05/0.2997, allocations: 0 / 0.5314 GB, free: 12.78 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.69e-06/0.2997, allocations: 4 kB / 0.5314 GB, free: 12.78 MB / 398.1 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.0007948/0.3005, allocations: 94.22 kB / 0.5314 GB, free: 12.72 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.293e-05/0.3006, allocations: 0 / 0.5314 GB, free: 12.72 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.092e-05/0.3006, allocations: 2.656 kB / 0.5314 GB, free: 12.72 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.704e-05/0.3006, allocations: 7.984 kB / 0.5315 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.775e-05/0.3006, allocations: 3.188 kB / 0.5315 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.959e-06/0.3007, allocations: 0 / 0.5315 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000173/0.3008, allocations: 108.2 kB / 0.5316 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.611e-06/0.3008, allocations: 0 / 0.5316 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.448e-05/0.3009, allocations: 0 / 0.5316 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000158/0.301, allocations: 88.02 kB / 0.5316 GB, free: 12.61 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.301, allocations: 4 kB / 0.5316 GB, free: 12.6 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.301, allocations: 0 / 0.5316 GB, free: 12.6 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.3011, allocations: 0 / 0.5316 GB, free: 12.6 MB / 398.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.000368/0.3014, allocations: 360.1 kB / 0.532 GB, free: 12.21 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.3015, allocations: 9.906 kB / 0.532 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.368e-05/0.3015, allocations: 34.69 kB / 0.532 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.061e-05/0.3015, allocations: 2.25 kB / 0.532 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001117/0.3016, allocations: 160.4 kB / 0.5322 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.327e-06/0.3017, allocations: 384 / 0.5322 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.63e-06/0.3017, allocations: 5.688 kB / 0.5322 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.296e-05/0.3018, allocations: 33.06 kB / 0.5322 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.3018, allocations: 3.938 kB / 0.5322 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.122e-06/0.3018, allocations: 0 / 0.5322 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.3018, allocations: 1.406 kB / 0.5322 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.442e-05/0.3018, allocations: 1.312 kB / 0.5322 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001448/0.302, allocations: 146.9 kB / 0.5324 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.908e-05/0.302, allocations: 23.41 kB / 0.5324 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.84e-05/0.302, allocations: 14.19 kB / 0.5324 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.316e-06/0.302, allocations: 1.156 kB / 0.5324 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.007e-05/0.3021, allocations: 65.78 kB / 0.5325 GB, free: 11.61 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 2.945e-06/0.3021, allocations: 0 / 0.5325 GB, free: 11.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.00016/0.3023, allocations: 75.06 kB / 0.5325 GB, free: 11.53 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.081e-05/0.3023, allocations: 81.09 kB / 0.5326 GB, free: 11.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.528e-05/0.3024, allocations: 94.97 kB / 0.5327 GB, free: 11.33 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.581e-05/0.3024, allocations: 29.83 kB / 0.5327 GB, free: 11.3 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.348e-05/0.3025, allocations: 80.14 kB / 0.5328 GB, free: 11.21 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.701e-05/0.3025, allocations: 5.156 kB / 0.5328 GB, free: 11.21 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.623e-05/0.3025, allocations: 11.53 kB / 0.5328 GB, free: 11.2 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.3027, allocations: 312.1 kB / 0.5331 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.137e-06/0.3027, allocations: 3.938 kB / 0.5331 GB, free: 10.88 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.791e-06/0.3027, allocations: 2.188 kB / 0.5331 GB, free: 10.88 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.499e-05/0.3027, allocations: 66.8 kB / 0.5332 GB, free: 10.8 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-06/0.3028, allocations: 0 / 0.5332 GB, free: 10.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.475e-05/0.3028, allocations: 67.05 kB / 0.5333 GB, free: 10.73 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.219e-05/0.3029, allocations: 31.77 kB / 0.5333 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.3029, allocations: 3.938 kB / 0.5333 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.006e-05/0.3029, allocations: 0 / 0.5333 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.51e-07/0.3029, allocations: 0 / 0.5333 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.3029, allocations: 1.312 kB / 0.5333 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.323e-05/0.3029, allocations: 0 / 0.5333 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.012e-06/0.3029, allocations: 1.312 kB / 0.5333 GB, free: 10.7 MB / 398.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 0.0001036/0.3031, allocations: 145.5 kB / 0.5334 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.356e-06/0.3031, allocations: 1.281 kB / 0.5334 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.786e-06/0.3031, allocations: 7.062 kB / 0.5334 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.3031, allocations: 1.281 kB / 0.5334 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.3031, allocations: 0 / 0.5334 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.3031, allocations: 0 / 0.5334 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000113/0.3032, allocations: 148.3 kB / 0.5336 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-06/0.3032, allocations: 0 / 0.5336 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.3032, allocations: 0 / 0.5336 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.3032, allocations: 0 / 0.5336 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.3032, allocations: 9.219 kB / 0.5336 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.3033, allocations: 0 / 0.5336 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.3033, allocations: 1.406 kB / 0.5336 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000103/0.3034, allocations: 93.14 kB / 0.5337 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.198e-05/0.3034, allocations: 78.17 kB / 0.5338 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.468e-05/0.3034, allocations: 5.031 kB / 0.5338 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.506e-06/0.3035, allocations: 3.938 kB / 0.5338 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.836e-06/0.3035, allocations: 5.312 kB / 0.5338 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.156e-06/0.3035, allocations: 0.9375 kB / 0.5338 GB, free: 10.12 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.213e-05/0.3035, allocations: 75.28 kB / 0.5338 GB, free: 10.05 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3035, allocations: 0 / 0.5338 GB, free: 10.05 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002345/0.3038, allocations: 36.67 kB / 0.5339 GB, free: 10.04 MB / 398.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.0009632/0.3047, allocations: 0.7922 MB / 0.5347 GB, free: 9.328 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.181e-05/0.3048, allocations: 68.39 kB / 0.5347 GB, free: 9.254 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3048, allocations: 0 / 0.5347 GB, free: 9.254 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.686e-05/0.3049, allocations: 55.69 kB / 0.5348 GB, free: 9.191 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001194/0.305, allocations: 4.578 kB / 0.5348 GB, free: 9.191 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003003/0.3053, allocations: 126.7 kB / 0.5349 GB, free: 9.043 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003099/0.3057, allocations: 0.669 MB / 0.5356 GB, free: 8.348 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.921e-06/0.3057, allocations: 5.375 kB / 0.5356 GB, free: 8.344 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.328e-05/0.3057, allocations: 11.38 kB / 0.5356 GB, free: 8.332 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3057, allocations: 0 / 0.5356 GB, free: 8.332 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02652/0.3322, allocations: 1.81 MB / 0.5373 GB, free: 7.277 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.143/8.475, allocations: 14.05 kB / 0.5374 GB, free: 7.27 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches