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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9464/0.9464, allocations: 177.1 MB / 204.3 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2495/0.2495, allocations: 32.79 MB / 293.5 MB, free: 1.227 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.304e-06/2.304e-06, allocations: 0 / 439.5 MB, free: 4.309 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.665e-05/3.895e-05, allocations: 4.812 kB / 439.5 MB, free: 4.305 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001294/0.001333, allocations: 497 kB / 440 MB, free: 3.82 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005798/0.001913, allocations: 303.2 kB / 440.3 MB, free: 3.523 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.185e-05/0.001935, allocations: 0 / 440.3 MB, free: 3.523 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.812e-05/0.001953, allocations: 0 / 440.3 MB, free: 3.523 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 7.364e-06/0.001961, allocations: 0 / 440.3 MB, free: 3.523 MB / 410.7 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.0008966/0.002857, allocations: 101 kB / 440.4 MB, free: 3.43 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 6.404e-05/0.002921, allocations: 4 kB / 440.4 MB, free: 3.426 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.691e-05/0.002968, allocations: 0 / 440.4 MB, free: 3.426 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.243e-05/0.003001, allocations: 4 kB / 440.4 MB, free: 3.422 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.368e-05/0.003024, allocations: 0 / 440.4 MB, free: 3.422 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.274e-06/0.003032, allocations: 4 kB / 440.4 MB, free: 3.418 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001722/0.003204, allocations: 111.8 kB / 440.5 MB, free: 3.309 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.105e-06/0.003212, allocations: 0 / 440.5 MB, free: 3.309 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.042e-05/0.003232, allocations: 0 / 440.5 MB, free: 3.309 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002022/0.003434, allocations: 111.7 kB / 440.7 MB, free: 3.199 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.756e-06/0.003437, allocations: 0 / 440.7 MB, free: 3.199 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.003439, allocations: 0 / 440.7 MB, free: 3.199 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.003443, allocations: 3.938 kB / 440.7 MB, free: 3.195 MB / 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.0002801/0.003723, allocations: 284 kB / 440.9 MB, free: 2.879 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.003764, allocations: 8.031 kB / 440.9 MB, free: 2.871 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.653e-05/0.003791, allocations: 34.75 kB / 441 MB, free: 2.828 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.569e-05/0.003816, allocations: 4.938 kB / 441 MB, free: 2.824 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.88e-05/0.003885, allocations: 105.7 kB / 441.1 MB, free: 2.695 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.179e-05/0.003897, allocations: 384 / 441.1 MB, free: 2.695 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.824e-05/0.003915, allocations: 384 / 441.1 MB, free: 2.695 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.69e-05/0.004012, allocations: 59.95 kB / 441.1 MB, free: 2.625 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.004021, allocations: 192 / 441.1 MB, free: 2.625 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.637e-06/0.00403, allocations: 384 / 441.1 MB, free: 2.625 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-06/0.004037, allocations: 12.05 kB / 441.2 MB, free: 2.613 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.699e-05/0.004064, allocations: 29.7 kB / 441.2 MB, free: 2.578 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001064/0.00417, allocations: 116.8 kB / 441.3 MB, free: 2.422 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.095e-05/0.004221, allocations: 52.25 kB / 441.4 MB, free: 2.355 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.191e-05/0.004243, allocations: 34.55 kB / 441.4 MB, free: 2.312 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.737e-06/0.004252, allocations: 4.062 kB / 441.4 MB, free: 2.309 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.968e-05/0.004291, allocations: 56.27 kB / 441.4 MB, free: 2.238 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 7.01e-07/0.004292, allocations: 0 / 441.4 MB, free: 2.238 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001861/0.004478, allocations: 118.8 kB / 441.6 MB, free: 2.098 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.221e-05/0.00452, allocations: 81.05 kB / 441.6 MB, free: 2 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.509e-05/0.004556, allocations: 93.81 kB / 441.7 MB, free: 1.898 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.031e-05/0.004566, allocations: 29.7 kB / 441.8 MB, free: 1.863 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.088e-05/0.004587, allocations: 80.14 kB / 441.8 MB, free: 1.781 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.776e-05/0.004604, allocations: 8.062 kB / 441.8 MB, free: 1.773 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.409e-05/0.004629, allocations: 17.66 kB / 441.9 MB, free: 1.75 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.389e-05/0.004712, allocations: 314.8 kB / 442.2 MB, free: 1.434 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.106e-05/0.004733, allocations: 25.7 kB / 442.2 MB, free: 1.402 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.372e-05/0.004747, allocations: 25.7 kB / 442.2 MB, free: 1.371 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.382e-05/0.004791, allocations: 68.25 kB / 442.3 MB, free: 1.289 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.004793, allocations: 0 / 442.3 MB, free: 1.289 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.945e-05/0.004862, allocations: 89.11 kB / 442.4 MB, free: 1.184 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.053e-05/0.004893, allocations: 33.7 kB / 442.4 MB, free: 1.145 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.004898, allocations: 4.094 kB / 442.4 MB, free: 1.141 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.004912, allocations: 3.984 kB / 442.4 MB, free: 1.137 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.002e-06/0.004913, allocations: 0 / 442.4 MB, free: 1.137 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.00492, allocations: 7.875 kB / 442.4 MB, free: 1.129 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.297e-05/0.004933, allocations: 0 / 442.4 MB, free: 1.129 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-06/0.004939, allocations: 0 / 442.4 MB, free: 1.129 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 6.544e-05/0.005004, allocations: 136.2 kB / 442.6 MB, free: 0.9805 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.148e-06/0.005009, allocations: 0 / 442.6 MB, free: 0.9805 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.191e-05/0.005021, allocations: 7 kB / 442.6 MB, free: 0.9688 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/0.005024, allocations: 4 kB / 442.6 MB, free: 0.9648 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.005029, allocations: 7.938 kB / 442.6 MB, free: 0.957 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.005031, allocations: 0 / 442.6 MB, free: 0.957 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.947e-05/0.005091, allocations: 116.8 kB / 442.7 MB, free: 0.8008 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.5e-07/0.005091, allocations: 0 / 442.7 MB, free: 0.8008 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.2e-07/0.005092, allocations: 0 / 442.7 MB, free: 0.8008 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.005094, allocations: 4 kB / 442.7 MB, free: 0.7969 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.141e-06/0.0051, allocations: 0 / 442.7 MB, free: 0.7969 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.005101, allocations: 0 / 442.7 MB, free: 0.7969 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.005103, allocations: 3.938 kB / 442.7 MB, free: 0.793 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.03e-05/0.005183, allocations: 116.5 kB / 442.8 MB, free: 0.6484 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.085e-06/0.005187, allocations: 3.938 kB / 442.8 MB, free: 0.6445 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.949e-06/0.005196, allocations: 8.031 kB / 442.8 MB, free: 0.6367 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.741e-06/0.005202, allocations: 0 / 442.8 MB, free: 0.6367 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.32e-05/0.005215, allocations: 7.875 kB / 442.8 MB, free: 0.6289 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.944e-06/0.005217, allocations: 0 / 442.8 MB, free: 0.6289 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.015e-05/0.005237, allocations: 75.28 kB / 442.9 MB, free: 0.5547 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005238, allocations: 0 / 442.9 MB, free: 0.5547 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001744/0.005412, allocations: 43.8 kB / 442.9 MB, free: 0.5117 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.2021/0.2075, allocations: 0.821 MB / 443.8 MB, free: 45.86 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001322/0.2076, allocations: 114.1 kB / 443.9 MB, free: 45.74 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2076, allocations: 1.406 kB / 443.9 MB, free: 45.74 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.586e-05/0.2076, allocations: 86.3 kB / 444 MB, free: 45.64 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001125/0.2077, allocations: 6.688 kB / 444 MB, free: 45.64 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002846/0.208, allocations: 154.6 kB / 444.1 MB, free: 45.49 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.255e-05/0.208, allocations: 54.2 kB / 444.2 MB, free: 45.42 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 5.41e-06/0.208, allocations: 0 / 444.2 MB, free: 45.42 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.672e-05/0.2081, allocations: 8.5 kB / 444.2 MB, free: 45.41 MB / 410.7 MB Notification: Performance of SimCode: time 1.372e-06/0.2081, allocations: 0 / 444.2 MB, free: 45.41 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01632/0.2244, allocations: 2.515 MB / 446.7 MB, free: 44.45 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.806/7.031, allocations: 6.969 kB / 446.7 MB, free: 44.45 MB / 410.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_res.csv: Error: Error opening file: ModelicaTest_4.0.0_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.14328688569367]