Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001815/0.001815, allocations: 120.1 kB / 18.49 MB, free: 4.562 MB / 14.72 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.00216/0.00216, allocations: 215.1 kB / 21.45 MB, free: 1.617 MB / 14.72 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 1.522/1.522, allocations: 230.6 MB / 254.8 MB, free: 15.27 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2455/0.2455, allocations: 46.93 MB / 357.8 MB, free: 10.37 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Utilities_TestStreams",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStreams",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002025/0.002025, allocations: 59.91 kB / 0.4916 GB, free: 8.066 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1281, allocations: 66 MB / 0.556 GB, free: 5.938 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001558/0.1297, allocations: 482.9 kB / 0.5565 GB, free: 5.465 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007901/0.1305, allocations: 299.7 kB / 0.5568 GB, free: 5.172 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.929e-05/0.1305, allocations: 0 / 0.5568 GB, free: 5.172 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.1e-05/0.1305, allocations: 4 kB / 0.5568 GB, free: 5.168 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.31e-06/0.1305, allocations: 0 / 0.5568 GB, free: 5.168 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/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.0008585/0.1314, allocations: 103.7 kB / 0.5569 GB, free: 5.07 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.684e-05/0.1314, allocations: 0 / 0.5569 GB, free: 5.07 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.314e-05/0.1314, allocations: 3.938 kB / 0.5569 GB, free: 5.066 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.365e-05/0.1314, allocations: 0 / 0.5569 GB, free: 5.066 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.456e-05/0.1315, allocations: 11.98 kB / 0.5569 GB, free: 5.055 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.019e-06/0.1315, allocations: 0 / 0.5569 GB, free: 5.055 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002065/0.1317, allocations: 107.9 kB / 0.557 GB, free: 4.949 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.352e-06/0.1317, allocations: 0 / 0.557 GB, free: 4.949 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.975e-05/0.1317, allocations: 4 kB / 0.557 GB, free: 4.945 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001667/0.1319, allocations: 87.73 kB / 0.5571 GB, free: 4.859 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.1319, allocations: 0 / 0.5571 GB, free: 4.859 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1319, allocations: 4 kB / 0.5571 GB, free: 4.855 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.1319, allocations: 0 / 0.5571 GB, free: 4.855 MB / 414.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.0003936/0.1323, allocations: 357.1 kB / 0.5574 GB, free: 4.449 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.509e-05/0.1323, allocations: 16.03 kB / 0.5575 GB, free: 4.434 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.478e-05/0.1323, allocations: 192 / 0.5575 GB, free: 4.434 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.565e-05/0.1324, allocations: 30.75 kB / 0.5575 GB, free: 4.395 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.193e-05/0.1324, allocations: 0.9375 kB / 0.5575 GB, free: 4.395 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001161/0.1325, allocations: 160.4 kB / 0.5576 GB, free: 4.199 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.165e-05/0.1325, allocations: 8.312 kB / 0.5576 GB, free: 4.191 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.071e-06/0.1325, allocations: 384 / 0.5576 GB, free: 4.191 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.162e-05/0.1326, allocations: 34 kB / 0.5577 GB, free: 4.152 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.1326, allocations: 0 / 0.5577 GB, free: 4.152 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.286e-06/0.1326, allocations: 11.94 kB / 0.5577 GB, free: 4.141 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.306e-06/0.1326, allocations: 0 / 0.5577 GB, free: 4.141 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.717e-05/0.1326, allocations: 0 / 0.5577 GB, free: 4.141 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001495/0.1328, allocations: 145.7 kB / 0.5578 GB, free: 3.949 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.559e-05/0.1328, allocations: 22.55 kB / 0.5578 GB, free: 3.918 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.567e-05/0.1328, allocations: 6.516 kB / 0.5579 GB, free: 3.91 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.697e-06/0.1328, allocations: 0 / 0.5579 GB, free: 3.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.514e-05/0.1329, allocations: 68.19 kB / 0.5579 GB, free: 3.828 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.81e-07/0.1329, allocations: 64 / 0.5579 GB, free: 3.828 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001723/0.1331, allocations: 63.41 kB / 0.558 GB, free: 3.754 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.594e-05/0.1331, allocations: 81.11 kB / 0.5581 GB, free: 3.656 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.561e-05/0.1332, allocations: 93.81 kB / 0.5581 GB, free: 3.555 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.483e-05/0.1332, allocations: 25.7 kB / 0.5582 GB, free: 3.523 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.568e-05/0.1332, allocations: 80.14 kB / 0.5582 GB, free: 3.441 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.69e-05/0.1333, allocations: 0 / 0.5582 GB, free: 3.441 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.491e-05/0.1333, allocations: 21.83 kB / 0.5583 GB, free: 3.414 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.1334, allocations: 322.7 kB / 0.5586 GB, free: 3.09 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.437e-06/0.1334, allocations: 0 / 0.5586 GB, free: 3.09 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.47e-06/0.1334, allocations: 0 / 0.5586 GB, free: 3.09 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.812e-05/0.1335, allocations: 60.27 kB / 0.5586 GB, free: 3.016 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1335, allocations: 0 / 0.5586 GB, free: 3.016 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.552e-05/0.1336, allocations: 63.39 kB / 0.5587 GB, free: 2.941 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.75e-05/0.1336, allocations: 33.64 kB / 0.5587 GB, free: 2.902 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.1336, allocations: 4.094 kB / 0.5587 GB, free: 2.898 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.1336, allocations: 4 kB / 0.5587 GB, free: 2.895 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.21e-07/0.1336, allocations: 0 / 0.5587 GB, free: 2.895 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.078e-06/0.1336, allocations: 0 / 0.5587 GB, free: 2.895 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.439e-05/0.1337, allocations: 0 / 0.5587 GB, free: 2.895 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.641e-06/0.1337, allocations: 3.938 kB / 0.5587 GB, free: 2.891 MB / 414.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 9.95e-05/0.1338, allocations: 141.7 kB / 0.5589 GB, free: 2.738 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.403e-05/0.1338, allocations: 7.922 kB / 0.5589 GB, free: 2.73 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.414e-06/0.1338, allocations: 3.125 kB / 0.5589 GB, free: 2.73 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.1338, allocations: 4 kB / 0.5589 GB, free: 2.727 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.1338, allocations: 0 / 0.5589 GB, free: 2.727 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.834e-06/0.1338, allocations: 0 / 0.5589 GB, free: 2.727 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000119/0.1339, allocations: 153.6 kB / 0.559 GB, free: 2.527 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.1339, allocations: 7.938 kB / 0.559 GB, free: 2.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.4e-07/0.1339, allocations: 0 / 0.559 GB, free: 2.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.059e-06/0.1339, allocations: 7.922 kB / 0.5591 GB, free: 2.512 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.61e-06/0.1339, allocations: 0 / 0.5591 GB, free: 2.512 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.82e-07/0.1339, allocations: 0 / 0.5591 GB, free: 2.512 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.1339, allocations: 0 / 0.5591 GB, free: 2.512 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001025/0.134, allocations: 90.84 kB / 0.5591 GB, free: 2.398 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.991e-05/0.1341, allocations: 81.09 kB / 0.5592 GB, free: 2.301 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.596e-05/0.1341, allocations: 7.938 kB / 0.5592 GB, free: 2.293 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.158e-06/0.1341, allocations: 0 / 0.5592 GB, free: 2.293 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.103e-05/0.1341, allocations: 3.938 kB / 0.5592 GB, free: 2.289 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-06/0.1341, allocations: 0 / 0.5592 GB, free: 2.289 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.469e-05/0.1342, allocations: 79.28 kB / 0.5593 GB, free: 2.211 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1342, allocations: 0 / 0.5593 GB, free: 2.211 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002721/0.1344, allocations: 35.95 kB / 0.5593 GB, free: 2.176 MB / 414.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.0009771/0.1354, allocations: 0.7863 MB / 0.5601 GB, free: 1.406 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000112/0.1355, allocations: 59.41 kB / 0.5602 GB, free: 1.336 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.1355, allocations: 0 / 0.5602 GB, free: 1.336 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.154e-05/0.1356, allocations: 59.33 kB / 0.5602 GB, free: 1.266 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001424/0.1357, allocations: 4 kB / 0.5602 GB, free: 1.262 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000376/0.1361, allocations: 130.6 kB / 0.5603 GB, free: 1.094 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003099/0.1364, allocations: 0.673 MB / 0.561 GB, free: 404 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.081e-06/0.1364, allocations: 0 / 0.561 GB, free: 404 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.48e-05/0.1364, allocations: 7.438 kB / 0.561 GB, free: 396 kB / 414.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1364, allocations: 3.938 kB / 0.561 GB, free: 392 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0172/0.1536, allocations: 1.87 MB / 0.5628 GB, free: 14.61 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.488/8.641, allocations: 4.062 kB / 0.5628 GB, free: 14.6 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStreams_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.687057472008746]