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) 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001555/0.001555, allocations: 114.4 kB / 17.33 MB, free: 6.012 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.001883/0.001883, allocations: 193.3 kB / 18.25 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.224/0.224, allocations: 44.17 MB / 336.2 MB, free: 2.973 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002239/0.002239, allocations: 69.05 kB / 408 MB, free: 27.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1389, allocations: 60.83 MB / 468.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001887/0.1408, allocations: 0.5409 MB / 469.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007068/0.1416, allocations: 297.7 kB / 469.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.583e-05/0.1416, allocations: 3.938 kB / 469.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.36e-05/0.1416, allocations: 0 / 469.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.62e-06/0.1417, allocations: 0 / 469.6 MB, free: 13.82 MB / 350.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.0008844/0.1425, allocations: 90.44 kB / 469.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.279e-05/0.1426, allocations: 4 kB / 469.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.881e-05/0.1427, allocations: 4 kB / 469.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.711e-05/0.1427, allocations: 3.938 kB / 469.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.25e-05/0.1427, allocations: 0 / 469.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.133e-06/0.1427, allocations: 0 / 469.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001908/0.1429, allocations: 99.91 kB / 469.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.626e-06/0.1429, allocations: 4 kB / 469.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.2e-05/0.143, allocations: 7.984 kB / 469.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001703/0.1431, allocations: 75.88 kB / 469.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.1431, allocations: 4 kB / 469.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1432, allocations: 0 / 469.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.1432, allocations: 0 / 469.9 MB, free: 13.54 MB / 350.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.0003545/0.1435, allocations: 361.2 kB / 470.3 MB, free: 13.13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.1436, allocations: 19.95 kB / 470.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.217e-05/0.1436, allocations: 30.75 kB / 470.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.408e-05/0.1437, allocations: 0.9375 kB / 470.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.927e-05/0.1438, allocations: 164.4 kB / 470.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.1438, allocations: 384 / 470.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.446e-06/0.1438, allocations: 4.375 kB / 470.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.006e-05/0.1439, allocations: 26.27 kB / 470.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.1439, allocations: 3.938 kB / 470.5 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.865e-06/0.1439, allocations: 0 / 470.5 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.1439, allocations: 4 kB / 470.5 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.835e-05/0.144, allocations: 0 / 470.5 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001333/0.1441, allocations: 153.7 kB / 470.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.788e-05/0.1442, allocations: 22.55 kB / 470.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.874e-05/0.1442, allocations: 4.859 kB / 470.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.421e-06/0.1442, allocations: 0 / 470.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.27e-05/0.1443, allocations: 56.27 kB / 470.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.153e-06/0.1443, allocations: 0 / 470.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002001/0.1445, allocations: 79.31 kB / 470.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.684e-05/0.1445, allocations: 85.23 kB / 470.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.875e-05/0.1446, allocations: 89.86 kB / 471 MB, free: 12.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.343e-05/0.1446, allocations: 29.64 kB / 471 MB, free: 12.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.929e-05/0.1447, allocations: 80.14 kB / 471.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.218e-05/0.1447, allocations: 0 / 471.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.237e-05/0.1447, allocations: 17.72 kB / 471.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.1449, allocations: 314.8 kB / 471.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.262e-05/0.1449, allocations: 0 / 471.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.105e-06/0.1449, allocations: 7.938 kB / 471.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.741e-05/0.145, allocations: 60.27 kB / 471.5 MB, free: 11.69 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.145, allocations: 0 / 471.5 MB, free: 11.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.877e-05/0.1451, allocations: 63.34 kB / 471.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.38e-05/0.1451, allocations: 37.69 kB / 471.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.1451, allocations: 3.938 kB / 471.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.1451, allocations: 0 / 471.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.42e-07/0.1452, allocations: 4 kB / 471.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.1452, allocations: 0 / 471.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.649e-05/0.1452, allocations: 4.094 kB / 471.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.696e-06/0.1452, allocations: 4 kB / 471.6 MB, free: 11.56 MB / 350.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.81e-05/0.1453, allocations: 135.5 kB / 471.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.646e-06/0.1453, allocations: 0 / 471.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.467e-05/0.1453, allocations: 11.02 kB / 471.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.1453, allocations: 0 / 471.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.1453, allocations: 0 / 471.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.1454, allocations: 3.984 kB / 471.8 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.73e-05/0.1455, allocations: 145.7 kB / 471.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1455, allocations: 4 kB / 471.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.52e-07/0.1455, allocations: 0 / 471.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1455, allocations: 0 / 471.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.714e-06/0.1455, allocations: 3.938 kB / 471.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.1455, allocations: 0 / 471.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1455, allocations: 0 / 471.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001125/0.1456, allocations: 94.77 kB / 472 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.684e-05/0.1457, allocations: 81.3 kB / 472.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.412e-05/0.1457, allocations: 11.97 kB / 472.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.096e-05/0.1457, allocations: 4 kB / 472.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.649e-05/0.1457, allocations: 3.984 kB / 472.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.915e-06/0.1457, allocations: 0 / 472.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.73e-05/0.1458, allocations: 75.28 kB / 472.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1458, allocations: 0 / 472.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000256/0.146, allocations: 28 kB / 472.2 MB, free: 10.86 MB / 350.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.001004/0.147, allocations: 0.8262 MB / 473 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001369/0.1472, allocations: 59.34 kB / 473.1 MB, free: 9.996 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1472, allocations: 0 / 473.1 MB, free: 9.996 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.621e-05/0.1473, allocations: 59.41 kB / 473.2 MB, free: 9.926 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001306/0.1474, allocations: 0 / 473.2 MB, free: 9.926 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003234/0.1477, allocations: 122.6 kB / 473.3 MB, free: 9.766 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002863/0.148, allocations: 0.6768 MB / 474 MB, free: 9.062 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.075e-06/0.148, allocations: 128 / 474 MB, free: 9.062 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.85e-05/0.1481, allocations: 11.44 kB / 474 MB, free: 9.051 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1481, allocations: 0 / 474 MB, free: 9.051 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01561/0.1637, allocations: 1.698 MB / 475.7 MB, free: 7.445 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002018/0.1639, allocations: 240.1 kB / 475.9 MB, free: 7.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.871/2.035, allocations: 3.625 kB / 475.9 MB, free: 7.18 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches