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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 118.5 kB / 18.45 MB, free: 4.613 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 191.7 kB / 21.39 MB, free: 1.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 222.9 MB / 247.1 MB, free: 4.211 MB / 190.1 MB " [Timeout remaining time 178] 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.3554/0.3554, allocations: 44.23 MB / 343.5 MB, free: 7.629 MB / 270.1 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.002901/0.002901, allocations: 67.91 kB / 478.8 MB, free: 24.56 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1158, allocations: 60.83 MB / 0.527 GB, free: 13.72 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001511/0.1174, allocations: 479.9 kB / 0.5274 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006996/0.1181, allocations: 307.4 kB / 0.5277 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.04e-05/0.1181, allocations: 0 / 0.5277 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.067e-05/0.1182, allocations: 0 / 0.5277 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.29e-06/0.1182, allocations: 0 / 0.5277 GB, free: 12.95 MB / 398.1 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.0007597/0.1189, allocations: 101.4 kB / 0.5278 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.785e-05/0.119, allocations: 0 / 0.5278 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.847e-05/0.119, allocations: 4 kB / 0.5278 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.202e-05/0.119, allocations: 0 / 0.5278 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.735e-05/0.1191, allocations: 4 kB / 0.5278 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.481e-06/0.1191, allocations: 0 / 0.5278 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001952/0.1193, allocations: 111.9 kB / 0.5279 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.102e-06/0.1193, allocations: 0 / 0.5279 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.514e-05/0.1193, allocations: 0 / 0.5279 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001661/0.1195, allocations: 88.08 kB / 0.528 GB, free: 12.64 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.1195, allocations: 0 / 0.528 GB, free: 12.64 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1195, allocations: 3.938 kB / 0.528 GB, free: 12.64 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.1195, allocations: 0 / 0.528 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.0003698/0.1199, allocations: 365 kB / 0.5284 GB, free: 12.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.1199, allocations: 12.03 kB / 0.5284 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.164e-05/0.12, allocations: 30.75 kB / 0.5284 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.146e-05/0.12, allocations: 4.938 kB / 0.5284 GB, free: 12.17 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001109/0.1201, allocations: 164.3 kB / 0.5286 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.196e-05/0.1201, allocations: 4.375 kB / 0.5286 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.448e-06/0.1202, allocations: 384 / 0.5286 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.75e-05/0.1202, allocations: 26.27 kB / 0.5286 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.1203, allocations: 3.938 kB / 0.5286 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.656e-06/0.1203, allocations: 4 kB / 0.5286 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.1203, allocations: 0 / 0.5286 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.788e-05/0.1203, allocations: 7.984 kB / 0.5286 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001391/0.1204, allocations: 145.6 kB / 0.5288 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.69e-05/0.1205, allocations: 26.55 kB / 0.5288 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.329e-05/0.1205, allocations: 4.859 kB / 0.5288 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.764e-06/0.1205, allocations: 0 / 0.5288 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.575e-05/0.1206, allocations: 60.33 kB / 0.5288 GB, free: 11.61 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.1206, allocations: 4 kB / 0.5289 GB, free: 11.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001598/0.1208, allocations: 63.33 kB / 0.5289 GB, free: 11.54 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.1208, allocations: 81.11 kB / 0.529 GB, free: 11.44 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.744e-05/0.1209, allocations: 93.86 kB / 0.5291 GB, free: 11.34 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.1209, allocations: 29.64 kB / 0.5291 GB, free: 11.3 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.891e-05/0.121, allocations: 80.14 kB / 0.5292 GB, free: 11.22 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.238e-05/0.121, allocations: 3.938 kB / 0.5292 GB, free: 11.21 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.837e-05/0.121, allocations: 13.72 kB / 0.5292 GB, free: 11.2 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.1212, allocations: 319 kB / 0.5295 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.448e-06/0.1212, allocations: 0 / 0.5295 GB, free: 10.88 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.069e-06/0.1212, allocations: 0 / 0.5295 GB, free: 10.88 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.849e-05/0.1212, allocations: 64.27 kB / 0.5296 GB, free: 10.8 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.1213, allocations: 0 / 0.5296 GB, free: 10.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.023e-05/0.1213, allocations: 59.41 kB / 0.5296 GB, free: 10.73 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.042e-05/0.1214, allocations: 33.69 kB / 0.5297 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.1214, allocations: 7.938 kB / 0.5297 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.057e-05/0.1214, allocations: 96 / 0.5297 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.465e-06/0.1214, allocations: 7.938 kB / 0.5297 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.1214, allocations: 3.984 kB / 0.5297 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.508e-05/0.1214, allocations: 0 / 0.5297 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.282e-06/0.1215, allocations: 0 / 0.5297 GB, free: 10.67 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.882e-05/0.1215, allocations: 135.5 kB / 0.5298 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.408e-06/0.1216, allocations: 3.953 kB / 0.5298 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.061e-05/0.1216, allocations: 7.062 kB / 0.5298 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.1216, allocations: 3.984 kB / 0.5298 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.1216, allocations: 4 kB / 0.5298 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-06/0.1216, allocations: 0 / 0.5298 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001144/0.1217, allocations: 153.7 kB / 0.53 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.1217, allocations: 0 / 0.53 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.2e-07/0.1217, allocations: 0 / 0.53 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.91e-07/0.1217, allocations: 0 / 0.53 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.594e-06/0.1217, allocations: 3.938 kB / 0.53 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1218, allocations: 0 / 0.53 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.1218, allocations: 7.984 kB / 0.53 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001033/0.1219, allocations: 86.84 kB / 0.5301 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.182e-05/0.1219, allocations: 77.11 kB / 0.5301 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.397e-05/0.1219, allocations: 15.86 kB / 0.5302 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.799e-06/0.122, allocations: 7.922 kB / 0.5302 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.236e-05/0.122, allocations: 0 / 0.5302 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-06/0.122, allocations: 0 / 0.5302 GB, free: 10.06 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.185e-05/0.122, allocations: 75.28 kB / 0.5302 GB, free: 9.988 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.147e-06/0.122, allocations: 0 / 0.5302 GB, free: 9.988 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000233/0.1223, allocations: 39.81 kB / 0.5303 GB, free: 9.949 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.0009374/0.1232, allocations: 0.799 MB / 0.531 GB, free: 9.176 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.302e-05/0.1233, allocations: 63.34 kB / 0.5311 GB, free: 9.102 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1233, allocations: 0 / 0.5311 GB, free: 9.102 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.442e-05/0.1234, allocations: 55.41 kB / 0.5312 GB, free: 9.035 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001188/0.1235, allocations: 6.484 kB / 0.5312 GB, free: 9.031 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002804/0.1238, allocations: 122.8 kB / 0.5313 GB, free: 8.871 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003013/0.1241, allocations: 0.6805 MB / 0.532 GB, free: 8.164 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.388e-06/0.1241, allocations: 0 / 0.532 GB, free: 8.164 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.226e-05/0.1241, allocations: 7.438 kB / 0.532 GB, free: 8.156 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1241, allocations: 0 / 0.532 GB, free: 8.156 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02218/0.1463, allocations: 1.812 MB / 0.5337 GB, free: 6.422 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.172/8.318, allocations: 10.78 kB / 0.5337 GB, free: 6.414 MB / 398.1 MB " [Timeout remaining time 652] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.421478964039125]