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.001257/0.001258, allocations: 103.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001366/0.001366, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2323/0.2323, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001573, allocations: 70.91 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1188, allocations: 62.44 MB / 480.1 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.002325/0.1212, allocations: 487.7 kB / 480.6 MB, free: 4.711 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008586/0.1221, allocations: 297.8 kB / 480.9 MB, free: 4.422 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.958e-05/0.1221, allocations: 0 / 480.9 MB, free: 4.422 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.278e-05/0.1222, allocations: 0 / 480.9 MB, free: 4.422 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.28e-06/0.1222, allocations: 0 / 480.9 MB, free: 4.422 MB / 350.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.0009286/0.1231, allocations: 101.1 kB / 481 MB, free: 4.328 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.221e-05/0.1232, allocations: 7.922 kB / 481 MB, free: 4.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.244e-05/0.1232, allocations: 7.984 kB / 481 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.789e-05/0.1232, allocations: 0 / 481 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.598e-05/0.1233, allocations: 0 / 481 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.412e-06/0.1233, allocations: 0 / 481 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002082/0.1235, allocations: 99.91 kB / 481.1 MB, free: 4.215 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.747e-06/0.1235, allocations: 4 kB / 481.1 MB, free: 4.211 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.558e-05/0.1236, allocations: 0 / 481.1 MB, free: 4.211 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002004/0.1238, allocations: 87.81 kB / 481.2 MB, free: 4.125 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.1238, allocations: 0 / 481.2 MB, free: 4.125 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.108e-06/0.1238, allocations: 4 kB / 481.2 MB, free: 4.121 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.1238, allocations: 3.938 kB / 481.2 MB, free: 4.117 MB / 350.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.0004772/0.1243, allocations: 361.3 kB / 481.5 MB, free: 3.707 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.461e-05/0.1243, allocations: 8.031 kB / 481.6 MB, free: 3.699 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.177e-05/0.1244, allocations: 34.75 kB / 481.6 MB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.587e-05/0.1244, allocations: 0.9375 kB / 481.6 MB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00016/0.1246, allocations: 164.4 kB / 481.7 MB, free: 3.457 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.591e-05/0.1246, allocations: 4.375 kB / 481.7 MB, free: 3.453 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.221e-05/0.1246, allocations: 384 / 481.8 MB, free: 3.453 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000114/0.1248, allocations: 34.25 kB / 481.8 MB, free: 3.414 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.1248, allocations: 3.938 kB / 481.8 MB, free: 3.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.185e-05/0.1248, allocations: 4 kB / 481.8 MB, free: 3.406 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.1248, allocations: 0 / 481.8 MB, free: 3.406 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.487e-05/0.1248, allocations: 3.938 kB / 481.8 MB, free: 3.402 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001768/0.125, allocations: 145.7 kB / 481.9 MB, free: 3.211 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.571e-05/0.1251, allocations: 22.61 kB / 482 MB, free: 3.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.919e-05/0.1251, allocations: 4.859 kB / 482 MB, free: 3.172 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.269e-05/0.1251, allocations: 4 kB / 482 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001712/0.1253, allocations: 56.33 kB / 482 MB, free: 3.098 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.233e-06/0.1253, allocations: 4 kB / 482 MB, free: 3.094 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002227/0.1256, allocations: 71.2 kB / 482.1 MB, free: 3.012 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001502/0.1257, allocations: 81.11 kB / 482.2 MB, free: 2.914 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.055e-05/0.1258, allocations: 93.86 kB / 482.3 MB, free: 2.812 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.949e-05/0.1258, allocations: 25.7 kB / 482.3 MB, free: 2.781 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.19e-05/0.1259, allocations: 84.27 kB / 482.4 MB, free: 2.695 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.762e-05/0.1259, allocations: 0 / 482.4 MB, free: 2.695 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001665/0.1261, allocations: 17.66 kB / 482.4 MB, free: 2.672 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002542/0.1263, allocations: 310.8 kB / 482.7 MB, free: 2.359 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.079e-05/0.1263, allocations: 0 / 482.7 MB, free: 2.359 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.895e-06/0.1264, allocations: 0 / 482.7 MB, free: 2.359 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.345e-05/0.1264, allocations: 68.25 kB / 482.8 MB, free: 2.277 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1264, allocations: 64 / 482.8 MB, free: 2.277 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.466e-05/0.1265, allocations: 67.34 kB / 482.8 MB, free: 2.199 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.257e-05/0.1266, allocations: 29.7 kB / 482.9 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.1266, allocations: 3.938 kB / 482.9 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.1266, allocations: 4 kB / 482.9 MB, free: 2.156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.227e-06/0.1266, allocations: 3.984 kB / 482.9 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.1266, allocations: 0 / 482.9 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.941e-05/0.1267, allocations: 0 / 482.9 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.136e-05/0.1267, allocations: 4 kB / 482.9 MB, free: 2.148 MB / 350.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.0001092/0.1268, allocations: 139.6 kB / 483 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.118e-06/0.1268, allocations: 0 / 483 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.501e-05/0.1268, allocations: 7.062 kB / 483 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.1268, allocations: 0 / 483 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1268, allocations: 0 / 483 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.1268, allocations: 0 / 483 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001251/0.127, allocations: 153.7 kB / 483.2 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.127, allocations: 0 / 483.2 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.127, allocations: 0 / 483.2 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.362e-06/0.127, allocations: 0 / 483.2 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.127, allocations: 3.938 kB / 483.2 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.127, allocations: 4 kB / 483.2 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.127, allocations: 4 kB / 483.2 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001193/0.1271, allocations: 94.77 kB / 483.3 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.279e-05/0.1272, allocations: 77.39 kB / 483.3 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.84e-05/0.1272, allocations: 7.938 kB / 483.4 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.037e-05/0.1272, allocations: 0 / 483.4 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.672e-05/0.1273, allocations: 0 / 483.4 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.125e-06/0.1273, allocations: 4.031 kB / 483.4 MB, free: 1.559 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.822e-05/0.1273, allocations: 75.28 kB / 483.4 MB, free: 1.484 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1273, allocations: 0 / 483.4 MB, free: 1.484 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002915/0.1276, allocations: 39.92 kB / 483.5 MB, free: 1.445 MB / 350.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.000882/0.1285, allocations: 0.7982 MB / 484.3 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001125/0.1286, allocations: 67.39 kB / 484.3 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1286, allocations: 64 / 484.3 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.866e-05/0.1287, allocations: 63.34 kB / 484.4 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001266/0.1288, allocations: 3.938 kB / 484.4 MB, free: 0.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003258/0.1292, allocations: 122.7 kB / 484.5 MB, free: 348 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004233/0.1296, allocations: 0.6729 MB / 485.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.821e-06/0.1296, allocations: 0 / 485.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.247e-05/0.1296, allocations: 7.438 kB / 485.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1296, allocations: 0 / 485.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01942/0.149, allocations: 1.792 MB / 487 MB, free: 13.9 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.656/7.805, allocations: 8 kB / 487 MB, free: 13.89 MB / 366.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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_res.csv","/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