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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009157/0.0009157, allocations: 80.34 kB / 20.67 MB, free: 3.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001552/0.001552, allocations: 156.9 kB / 23.95 MB, free: 0.6055 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9343/0.9343, allocations: 177 MB / 204.1 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2675/0.2675, allocations: 34.24 MB / 294.8 MB, free: 0.6914 MB / 266.7 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.265e-06/2.265e-06, allocations: 0 / 442.1 MB, free: 1.59 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.803e-05/3.03e-05, allocations: 2.281 kB / 442.1 MB, free: 1.586 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001535/0.001565, allocations: 489 kB / 442.6 MB, free: 1.109 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006313/0.002196, allocations: 303.2 kB / 442.9 MB, free: 0.8125 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.275e-05/0.002219, allocations: 0 / 442.9 MB, free: 0.8125 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.848e-05/0.002237, allocations: 0 / 442.9 MB, free: 0.8125 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 8.817e-06/0.002246, allocations: 0 / 442.9 MB, free: 0.8125 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:232:3-298: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.00103/0.003276, allocations: 101.5 kB / 443 MB, free: 0.7148 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 7.721e-05/0.003353, allocations: 4 kB / 443 MB, free: 0.7109 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.574e-05/0.003399, allocations: 3.938 kB / 443 MB, free: 0.707 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.51e-05/0.003434, allocations: 0 / 443 MB, free: 0.707 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.559e-05/0.00346, allocations: 11.98 kB / 443 MB, free: 0.6953 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.876e-06/0.003469, allocations: 0 / 443 MB, free: 0.6953 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001845/0.003653, allocations: 107.8 kB / 443.1 MB, free: 0.5898 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.545e-06/0.003661, allocations: 0 / 443.1 MB, free: 0.5898 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.038e-05/0.003681, allocations: 4 kB / 443.1 MB, free: 0.5859 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001911/0.003872, allocations: 107.7 kB / 443.2 MB, free: 492 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.003875, allocations: 0 / 443.2 MB, free: 492 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.003876, allocations: 0 / 443.2 MB, free: 492 kB / 410.7 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.003882, allocations: 0 / 443.2 MB, free: 492 kB / 410.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.0002918/0.004174, allocations: 287.9 kB / 443.5 MB, free: 164 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.004215, allocations: 12.03 kB / 443.5 MB, free: 152 kB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.577e-05/0.004241, allocations: 38.73 kB / 443.6 MB, free: 104 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.981e-05/0.00427, allocations: 0.9375 kB / 443.6 MB, free: 104 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1892/0.1935, allocations: 101.8 kB / 443.7 MB, free: 44.12 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.512e-05/0.1935, allocations: 384 / 443.7 MB, free: 44.12 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.279e-05/0.1935, allocations: 4.656 kB / 443.7 MB, free: 44.12 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.837e-05/0.1936, allocations: 58.11 kB / 443.7 MB, free: 44.05 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.072e-06/0.1936, allocations: 192 / 443.7 MB, free: 44.05 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.783e-06/0.1936, allocations: 384 / 443.7 MB, free: 44.05 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.1936, allocations: 1.125 kB / 443.7 MB, free: 44.05 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.756e-05/0.1936, allocations: 32.48 kB / 443.8 MB, free: 44.02 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.838e-05/0.1937, allocations: 121.6 kB / 443.9 MB, free: 43.87 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.515e-05/0.1937, allocations: 47.42 kB / 443.9 MB, free: 43.81 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.474e-05/0.1938, allocations: 34.97 kB / 444 MB, free: 43.77 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.51e-06/0.1938, allocations: 0 / 444 MB, free: 43.77 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.22e-05/0.1938, allocations: 59.17 kB / 444 MB, free: 43.7 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 6.21e-07/0.1938, allocations: 0 / 444 MB, free: 43.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001346/0.1939, allocations: 119.9 kB / 444.1 MB, free: 43.58 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.362e-05/0.1939, allocations: 77.77 kB / 444.2 MB, free: 43.48 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.49e-05/0.194, allocations: 93.12 kB / 444.3 MB, free: 43.39 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.749e-06/0.194, allocations: 26.27 kB / 444.3 MB, free: 43.36 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.474e-06/0.194, allocations: 81.52 kB / 444.4 MB, free: 43.27 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.385e-05/0.194, allocations: 5.719 kB / 444.4 MB, free: 43.27 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.303e-05/0.194, allocations: 19.27 kB / 444.4 MB, free: 43.26 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.078e-05/0.194, allocations: 315.4 kB / 444.7 MB, free: 42.94 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.087e-05/0.1941, allocations: 29.14 kB / 444.8 MB, free: 42.91 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.865e-06/0.1941, allocations: 28.58 kB / 444.8 MB, free: 42.88 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.465e-05/0.1941, allocations: 62.89 kB / 444.9 MB, free: 42.81 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.1941, allocations: 2.719 kB / 444.9 MB, free: 42.81 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.288e-05/0.1941, allocations: 91.52 kB / 444.9 MB, free: 42.71 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.393e-05/0.1942, allocations: 37.72 kB / 445 MB, free: 42.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.339e-06/0.1942, allocations: 0 / 445 MB, free: 42.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.1942, allocations: 0 / 445 MB, free: 42.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.92e-07/0.1942, allocations: 0 / 445 MB, free: 42.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.1942, allocations: 3.281 kB / 445 MB, free: 42.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.259e-05/0.1942, allocations: 3.812 kB / 445 MB, free: 42.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.911e-06/0.1942, allocations: 4.219 kB / 445 MB, free: 42.68 MB / 410.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 3.743e-05/0.1942, allocations: 138.4 kB / 445.1 MB, free: 42.54 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.36e-06/0.1942, allocations: 1.438 kB / 445.1 MB, free: 42.54 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.548e-06/0.1942, allocations: 3 kB / 445.1 MB, free: 42.53 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-06/0.1942, allocations: 0 / 445.1 MB, free: 42.53 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.1943, allocations: 1.219 kB / 445.1 MB, free: 42.53 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.1943, allocations: 2.906 kB / 445.1 MB, free: 42.53 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.534e-05/0.1943, allocations: 123.5 kB / 445.3 MB, free: 42.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.1943, allocations: 0 / 445.3 MB, free: 42.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.82e-07/0.1943, allocations: 6.688 kB / 445.3 MB, free: 42.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.233e-06/0.1943, allocations: 0 / 445.3 MB, free: 42.38 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.019e-06/0.1943, allocations: 0 / 445.3 MB, free: 42.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.81e-07/0.1943, allocations: 2.688 kB / 445.3 MB, free: 42.38 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1943, allocations: 0 / 445.3 MB, free: 42.38 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.431e-05/0.1944, allocations: 125.3 kB / 445.4 MB, free: 42.25 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.438e-06/0.1944, allocations: 6.156 kB / 445.4 MB, free: 42.25 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.756e-06/0.1944, allocations: 0 / 445.4 MB, free: 42.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.01e-06/0.1944, allocations: 0 / 445.4 MB, free: 42.25 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.003e-05/0.1944, allocations: 3.625 kB / 445.4 MB, free: 42.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.343e-06/0.1944, allocations: 0 / 445.4 MB, free: 42.25 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.084e-06/0.1944, allocations: 75.91 kB / 445.5 MB, free: 42.17 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1944, allocations: 2.625 kB / 445.5 MB, free: 42.17 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001812/0.1946, allocations: 42.28 kB / 445.5 MB, free: 42.17 MB / 410.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 (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.0004452/0.195, allocations: 0.8256 MB / 446.3 MB, free: 41.51 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.617e-05/0.1951, allocations: 113.7 kB / 446.5 MB, free: 41.38 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.1951, allocations: 0 / 446.5 MB, free: 41.38 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.282e-05/0.1951, allocations: 83.89 kB / 446.5 MB, free: 41.29 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.258e-05/0.1952, allocations: 0 / 446.5 MB, free: 41.29 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002296/0.1954, allocations: 158.3 kB / 446.7 MB, free: 41.13 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.504e-05/0.1955, allocations: 54.3 kB / 446.7 MB, free: 41.06 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 5.32e-06/0.1955, allocations: 0 / 446.7 MB, free: 41.06 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.187e-05/0.1955, allocations: 8.5 kB / 446.8 MB, free: 41.05 MB / 410.7 MB Notification: Performance of SimCode: time 4.01e-07/0.1955, allocations: 8.062 kB / 446.8 MB, free: 41.05 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01353/0.209, allocations: 2.499 MB / 449.3 MB, free: 40.05 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.838/7.047, allocations: 4.938 kB / 449.3 MB, free: 40.04 MB / 410.7 MB " [Timeout remaining time 653] (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) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_res.csv: Error: Error opening file: ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_res.csv " [Timeout remaining time 660] "" Variables in the reference:time,result Variables in the result: [Calling sys.exit(0), Time elapsed: 9.147732578217983]