Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 102.4 kB / 15.98 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 194.5 kB / 16.91 MB, free: 6.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.452/1.452, allocations: 205.1 MB / 222.8 MB, free: 4.711 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3232/0.3232, allocations: 43.5 MB / 313.6 MB, free: 8.539 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 67.89 kB / 382.3 MB, free: 8.539 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.129, allocations: 57.78 MB / 440.1 MB, free: 14.66 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001867/0.1309, allocations: 0.5503 MB / 440.6 MB, free: 14.11 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006966/0.1316, allocations: 298.6 kB / 440.9 MB, free: 13.82 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.948e-05/0.1316, allocations: 0 / 440.9 MB, free: 13.82 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.404e-05/0.1317, allocations: 0 / 440.9 MB, free: 13.82 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.632e-06/0.1317, allocations: 0 / 440.9 MB, free: 13.82 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008127/0.1325, allocations: 79.66 kB / 441 MB, free: 13.75 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.461e-05/0.1326, allocations: 4 kB / 441 MB, free: 13.74 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.818e-05/0.1326, allocations: 7.984 kB / 441 MB, free: 13.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.653e-05/0.1327, allocations: 11.92 kB / 441 MB, free: 13.72 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.919e-05/0.1327, allocations: 0 / 441 MB, free: 13.72 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.15e-06/0.1327, allocations: 0 / 441 MB, free: 13.72 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001756/0.1329, allocations: 95.91 kB / 441.1 MB, free: 13.63 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.05e-05/0.1329, allocations: 3.938 kB / 441.1 MB, free: 13.62 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.24e-05/0.1329, allocations: 8 kB / 441.1 MB, free: 13.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001486/0.1331, allocations: 79.81 kB / 441.2 MB, free: 13.54 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.1331, allocations: 0 / 441.2 MB, free: 13.54 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.896e-06/0.1331, allocations: 4 kB / 441.2 MB, free: 13.54 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.744e-06/0.1331, allocations: 0 / 441.2 MB, free: 13.54 MB / 382.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.0003168/0.1334, allocations: 361.3 kB / 441.6 MB, free: 13.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.1335, allocations: 19.83 kB / 441.6 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.588e-05/0.1335, allocations: 30.75 kB / 441.6 MB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.322e-05/0.1335, allocations: 4.844 kB / 441.6 MB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001046/0.1336, allocations: 168.4 kB / 441.8 MB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.524e-06/0.1337, allocations: 384 / 441.8 MB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.003e-05/0.1337, allocations: 4.375 kB / 441.8 MB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.018e-05/0.1337, allocations: 26.27 kB / 441.8 MB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.1338, allocations: 7.938 kB / 441.8 MB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.903e-06/0.1338, allocations: 0 / 441.8 MB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.156e-06/0.1338, allocations: 0 / 441.8 MB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.895e-05/0.1338, allocations: 7.938 kB / 441.8 MB, free: 12.81 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000123/0.1339, allocations: 157.7 kB / 442 MB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.19e-05/0.134, allocations: 18.61 kB / 442 MB, free: 12.58 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.973e-05/0.134, allocations: 4.859 kB / 442 MB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.928e-06/0.134, allocations: 0 / 442 MB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.045e-05/0.134, allocations: 60.27 kB / 442.1 MB, free: 12.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.1341, allocations: 0 / 442.1 MB, free: 12.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.000155/0.1342, allocations: 75.33 kB / 442.2 MB, free: 12.41 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.578e-05/0.1343, allocations: 77.11 kB / 442.2 MB, free: 12.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.611e-05/0.1343, allocations: 93.86 kB / 442.3 MB, free: 12.21 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.077e-05/0.1343, allocations: 25.7 kB / 442.3 MB, free: 12.18 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.954e-05/0.1344, allocations: 80.14 kB / 442.4 MB, free: 12.1 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.861e-05/0.1344, allocations: 0 / 442.4 MB, free: 12.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.129e-05/0.1344, allocations: 13.84 kB / 442.4 MB, free: 12.08 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.1345, allocations: 318.8 kB / 442.7 MB, free: 11.76 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.629e-06/0.1345, allocations: 0 / 442.7 MB, free: 11.76 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.21e-06/0.1346, allocations: 0 / 442.7 MB, free: 11.76 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.516e-05/0.1346, allocations: 64.25 kB / 442.8 MB, free: 11.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1346, allocations: 0 / 442.8 MB, free: 11.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.991e-05/0.1347, allocations: 63.34 kB / 442.9 MB, free: 11.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.76e-05/0.1347, allocations: 37.23 kB / 442.9 MB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.1347, allocations: 7.875 kB / 442.9 MB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.1348, allocations: 0 / 442.9 MB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-07/0.1348, allocations: 0 / 442.9 MB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.1348, allocations: 7.984 kB / 442.9 MB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.728e-05/0.1348, allocations: 4.281 kB / 442.9 MB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.3e-06/0.1348, allocations: 3.938 kB / 442.9 MB, free: 11.55 MB / 382.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 7.008e-05/0.1349, allocations: 135.5 kB / 443.1 MB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.125e-06/0.1349, allocations: 0 / 443.1 MB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.126e-05/0.1349, allocations: 11.06 kB / 443.1 MB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.1349, allocations: 0 / 443.1 MB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.1349, allocations: 0 / 443.1 MB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.1349, allocations: 0 / 443.1 MB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.358e-05/0.135, allocations: 153.6 kB / 443.2 MB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.135, allocations: 0 / 443.2 MB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.8e-07/0.135, allocations: 0 / 443.2 MB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.135, allocations: 0 / 443.2 MB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.075e-06/0.135, allocations: 3.938 kB / 443.2 MB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.135, allocations: 0 / 443.2 MB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.1351, allocations: 0 / 443.2 MB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.724e-05/0.1351, allocations: 98.77 kB / 443.3 MB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.686e-05/0.1352, allocations: 77.11 kB / 443.4 MB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.236e-05/0.1352, allocations: 3.938 kB / 443.4 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.756e-06/0.1352, allocations: 4 kB / 443.4 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.086e-05/0.1352, allocations: 4 kB / 443.4 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-06/0.1352, allocations: 4 kB / 443.4 MB, free: 10.95 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.532e-05/0.1353, allocations: 75.28 kB / 443.5 MB, free: 10.88 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1353, allocations: 4.031 kB / 443.5 MB, free: 10.88 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000251/0.1355, allocations: 31.98 kB / 443.5 MB, free: 10.84 MB / 382.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.0007141/0.1362, allocations: 0.8067 MB / 444.3 MB, free: 10.02 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.932e-05/0.1364, allocations: 63.33 kB / 444.4 MB, free: 9.945 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.1364, allocations: 0 / 444.4 MB, free: 9.945 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.012e-05/0.1364, allocations: 55.41 kB / 444.4 MB, free: 9.879 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000127/0.1365, allocations: 8 kB / 444.5 MB, free: 9.871 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002778/0.1368, allocations: 126.6 kB / 444.6 MB, free: 9.707 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002035/0.137, allocations: 0.6728 MB / 445.3 MB, free: 9.008 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.763e-06/0.137, allocations: 0 / 445.3 MB, free: 9.008 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.164e-05/0.1371, allocations: 11.56 kB / 445.3 MB, free: 8.996 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1371, allocations: 0 / 445.3 MB, free: 8.996 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01162/0.1487, allocations: 1.702 MB / 447 MB, free: 7.301 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000234/0.149, allocations: 236.3 kB / 447.2 MB, free: 7.035 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.788/1.937, allocations: 0 / 447.2 MB, free: 7.035 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Utilities_TestStreams_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestStreams/TestStreams.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches