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.001599/0.001599, allocations: 117.6 kB / 17.78 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.001944/0.001944, allocations: 200.7 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.359/1.359, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2092/0.2092, allocations: 46.09 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001492, allocations: 71.88 kB / 480.8 MB, free: 4.621 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2965/0.2981, allocations: 62.44 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001469/0.2996, allocations: 488 kB / 0.5309 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006924/0.3003, allocations: 308.3 kB / 0.5312 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.797e-05/0.3003, allocations: 1.125 kB / 0.5312 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.488e-05/0.3003, allocations: 0 / 0.5312 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.31e-06/0.3003, allocations: 0 / 0.5312 GB, free: 12.82 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.0007763/0.3011, allocations: 92.73 kB / 0.5313 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.583e-05/0.3012, allocations: 5.078 kB / 0.5313 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.369e-05/0.3012, allocations: 6.188 kB / 0.5313 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.406e-05/0.3013, allocations: 0 / 0.5313 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.123e-05/0.3013, allocations: 5.234 kB / 0.5313 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.761e-06/0.3013, allocations: 0 / 0.5313 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001965/0.3015, allocations: 109.8 kB / 0.5315 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.043e-06/0.3015, allocations: 0 / 0.5315 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.998e-05/0.3015, allocations: 1.281 kB / 0.5315 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000173/0.3017, allocations: 87.89 kB / 0.5315 GB, free: 12.65 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.3017, allocations: 0 / 0.5315 GB, free: 12.65 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3017, allocations: 4 kB / 0.5315 GB, free: 12.64 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.458e-06/0.3017, allocations: 0 / 0.5315 GB, free: 12.64 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.0003505/0.3021, allocations: 360.4 kB / 0.5319 GB, free: 12.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.3021, allocations: 9.469 kB / 0.5319 GB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.662e-05/0.3022, allocations: 30.75 kB / 0.5319 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.246e-05/0.3022, allocations: 0.9375 kB / 0.5319 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.668e-05/0.3023, allocations: 165.8 kB / 0.5321 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.187e-05/0.3023, allocations: 384 / 0.5321 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.528e-06/0.3023, allocations: 5.875 kB / 0.5321 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.349e-05/0.3024, allocations: 32.05 kB / 0.5321 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.413e-06/0.3024, allocations: 3.938 kB / 0.5321 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.903e-06/0.3024, allocations: 1.188 kB / 0.5321 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.216e-06/0.3024, allocations: 0 / 0.5321 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.514e-05/0.3024, allocations: 0.9375 kB / 0.5321 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001226/0.3026, allocations: 152 kB / 0.5323 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.991e-05/0.3026, allocations: 20.17 kB / 0.5323 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.268e-05/0.3026, allocations: 10.02 kB / 0.5323 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.873e-06/0.3027, allocations: 4 kB / 0.5323 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.273e-05/0.3027, allocations: 57.3 kB / 0.5324 GB, free: 11.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 3.457e-06/0.3027, allocations: 5.391 kB / 0.5324 GB, free: 11.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001403/0.3029, allocations: 70.89 kB / 0.5324 GB, free: 11.58 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.742e-05/0.3029, allocations: 81.11 kB / 0.5325 GB, free: 11.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.447e-05/0.303, allocations: 93.81 kB / 0.5326 GB, free: 11.38 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.23e-05/0.303, allocations: 27.27 kB / 0.5326 GB, free: 11.35 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.635e-05/0.303, allocations: 88.25 kB / 0.5327 GB, free: 11.26 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.682e-05/0.303, allocations: 3.938 kB / 0.5327 GB, free: 11.26 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.583e-05/0.3031, allocations: 12.84 kB / 0.5327 GB, free: 11.24 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.656e-05/0.3032, allocations: 310.8 kB / 0.533 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.127e-05/0.3032, allocations: 5.406 kB / 0.533 GB, free: 10.93 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.911e-06/0.3032, allocations: 1.469 kB / 0.533 GB, free: 10.93 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.502e-05/0.3032, allocations: 67.34 kB / 0.5331 GB, free: 10.85 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3033, allocations: 64 / 0.5331 GB, free: 10.85 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.976e-05/0.3033, allocations: 62.12 kB / 0.5332 GB, free: 10.78 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.689e-05/0.3034, allocations: 31.02 kB / 0.5332 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.3034, allocations: 3.938 kB / 0.5332 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.769e-06/0.3034, allocations: 1.5 kB / 0.5332 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.284e-06/0.3034, allocations: 3.984 kB / 0.5332 GB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.557e-06/0.3034, allocations: 0 / 0.5332 GB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.386e-05/0.3034, allocations: 1.281 kB / 0.5332 GB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.672e-06/0.3034, allocations: 1.75 kB / 0.5332 GB, free: 10.74 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 8.556e-05/0.3035, allocations: 145.1 kB / 0.5333 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.704e-06/0.3035, allocations: 1.375 kB / 0.5333 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.025e-06/0.3036, allocations: 7.062 kB / 0.5333 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.3036, allocations: 0 / 0.5333 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.3036, allocations: 0 / 0.5333 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.3036, allocations: 1.219 kB / 0.5333 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.276e-05/0.3037, allocations: 150.9 kB / 0.5335 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.3037, allocations: 0 / 0.5335 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.032e-06/0.3037, allocations: 1.531 kB / 0.5335 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-06/0.3037, allocations: 0 / 0.5335 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.484e-06/0.3037, allocations: 3.938 kB / 0.5335 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.3037, allocations: 5.25 kB / 0.5335 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3037, allocations: 0 / 0.5335 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.232e-05/0.3038, allocations: 89.67 kB / 0.5336 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.224e-05/0.3038, allocations: 78.73 kB / 0.5337 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.38e-05/0.3039, allocations: 3.938 kB / 0.5337 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.966e-06/0.3039, allocations: 9.375 kB / 0.5337 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.17e-05/0.3039, allocations: 0 / 0.5337 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.698e-06/0.3039, allocations: 5.125 kB / 0.5337 GB, free: 10.17 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.222e-05/0.3039, allocations: 79.22 kB / 0.5337 GB, free: 10.09 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3039, allocations: 1.344 kB / 0.5337 GB, free: 10.09 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002325/0.3042, allocations: 35.11 kB / 0.5338 GB, free: 10.08 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.0007401/0.3049, allocations: 0.7908 MB / 0.5346 GB, free: 9.367 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.646e-05/0.305, allocations: 60.77 kB / 0.5346 GB, free: 9.301 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.305, allocations: 4.062 kB / 0.5346 GB, free: 9.297 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.495e-05/0.3051, allocations: 58.94 kB / 0.5347 GB, free: 9.23 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001243/0.3052, allocations: 4.438 kB / 0.5347 GB, free: 9.23 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003/0.3055, allocations: 126 kB / 0.5348 GB, free: 9.082 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002583/0.3058, allocations: 0.6703 MB / 0.5355 GB, free: 8.387 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.733e-06/0.3058, allocations: 5.25 kB / 0.5355 GB, free: 8.383 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.473e-05/0.3058, allocations: 7.438 kB / 0.5355 GB, free: 8.375 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3058, allocations: 0 / 0.5355 GB, free: 8.375 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01712/0.3229, allocations: 1.808 MB / 0.5372 GB, free: 7.324 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.35/7.673, allocations: 16.58 kB / 0.5372 GB, free: 7.312 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 & 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