Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001847/0.001847, allocations: 118.9 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002174/0.002174, allocations: 214.6 kB / 20.75 MB, free: 2.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 230.4 MB / 254 MB, free: 15.04 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2328/0.2328, allocations: 46.92 MB / 357 MB, free: 10.21 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002289/0.002289, allocations: 79.86 kB / 0.4909 GB, free: 7.762 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1274, allocations: 66.04 MB / 0.5554 GB, free: 5.59 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001562/0.1289, allocations: 492.9 kB / 0.5559 GB, free: 5.102 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008239/0.1298, allocations: 295.8 kB / 0.5562 GB, free: 4.812 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.702e-05/0.1298, allocations: 3.938 kB / 0.5562 GB, free: 4.809 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.633e-05/0.1298, allocations: 4 kB / 0.5562 GB, free: 4.805 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.951e-06/0.1298, allocations: 0 / 0.5562 GB, free: 4.805 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:232:3-298: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.0008618/0.1307, allocations: 96.95 kB / 0.5563 GB, free: 4.715 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.524e-05/0.1307, allocations: 4 kB / 0.5563 GB, free: 4.711 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.677e-05/0.1308, allocations: 0 / 0.5563 GB, free: 4.711 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.768e-05/0.1308, allocations: 3.938 kB / 0.5563 GB, free: 4.707 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.056e-05/0.1308, allocations: 0 / 0.5563 GB, free: 4.707 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.582e-06/0.1308, allocations: 0 / 0.5563 GB, free: 4.707 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002428/0.131, allocations: 115.9 kB / 0.5564 GB, free: 4.594 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.033e-06/0.131, allocations: 0 / 0.5564 GB, free: 4.594 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.247e-05/0.1311, allocations: 0 / 0.5564 GB, free: 4.594 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001972/0.1313, allocations: 95.73 kB / 0.5565 GB, free: 4.5 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1313, allocations: 0 / 0.5565 GB, free: 4.5 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1313, allocations: 3.938 kB / 0.5565 GB, free: 4.496 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.1313, allocations: 0 / 0.5565 GB, free: 4.496 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.0004106/0.1317, allocations: 361.1 kB / 0.5569 GB, free: 4.086 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.1317, allocations: 8.031 kB / 0.5569 GB, free: 4.078 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.861e-05/0.1318, allocations: 34.75 kB / 0.5569 GB, free: 4.035 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.285e-05/0.1318, allocations: 0.9375 kB / 0.5569 GB, free: 4.035 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001124/0.1319, allocations: 160.4 kB / 0.557 GB, free: 3.84 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.969e-06/0.1319, allocations: 4.375 kB / 0.5571 GB, free: 3.836 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.838e-06/0.1319, allocations: 4.312 kB / 0.5571 GB, free: 3.832 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.713e-05/0.132, allocations: 34.25 kB / 0.5571 GB, free: 3.793 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.132, allocations: 3.938 kB / 0.5571 GB, free: 3.789 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.174e-06/0.132, allocations: 0 / 0.5571 GB, free: 3.789 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.132, allocations: 3.938 kB / 0.5571 GB, free: 3.785 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.527e-05/0.1321, allocations: 0 / 0.5571 GB, free: 3.785 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002061/0.1323, allocations: 149.7 kB / 0.5572 GB, free: 3.59 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.393e-05/0.1323, allocations: 22.56 kB / 0.5573 GB, free: 3.559 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.949e-05/0.1323, allocations: 14.55 kB / 0.5573 GB, free: 3.543 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.392e-06/0.1323, allocations: 0 / 0.5573 GB, free: 3.543 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.05e-05/0.1324, allocations: 56.27 kB / 0.5573 GB, free: 3.473 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.1324, allocations: 0 / 0.5573 GB, free: 3.473 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001677/0.1325, allocations: 67.34 kB / 0.5574 GB, free: 3.395 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001184/0.1327, allocations: 81.09 kB / 0.5575 GB, free: 3.297 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.634e-05/0.1327, allocations: 97.94 kB / 0.5576 GB, free: 3.191 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.028e-05/0.1327, allocations: 25.7 kB / 0.5576 GB, free: 3.16 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.198e-05/0.1328, allocations: 80.14 kB / 0.5577 GB, free: 3.078 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.699e-05/0.1328, allocations: 4 kB / 0.5577 GB, free: 3.074 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.736e-05/0.1328, allocations: 9.719 kB / 0.5577 GB, free: 3.059 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.133, allocations: 310.8 kB / 0.558 GB, free: 2.746 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.531e-05/0.133, allocations: 7.938 kB / 0.558 GB, free: 2.738 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.27e-06/0.133, allocations: 0 / 0.558 GB, free: 2.738 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.434e-05/0.1331, allocations: 68.33 kB / 0.558 GB, free: 2.656 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1331, allocations: 0 / 0.558 GB, free: 2.656 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.53e-05/0.1331, allocations: 59.39 kB / 0.5581 GB, free: 2.586 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.467e-05/0.1332, allocations: 33.7 kB / 0.5581 GB, free: 2.547 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.1332, allocations: 3.938 kB / 0.5581 GB, free: 2.543 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.1332, allocations: 0 / 0.5581 GB, free: 2.543 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.52e-07/0.1332, allocations: 0 / 0.5581 GB, free: 2.543 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.1332, allocations: 0 / 0.5581 GB, free: 2.543 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.413e-05/0.1332, allocations: 0 / 0.5581 GB, free: 2.543 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.908e-06/0.1332, allocations: 4 kB / 0.5581 GB, free: 2.539 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 0.0001132/0.1334, allocations: 147.5 kB / 0.5583 GB, free: 2.379 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.714e-06/0.1334, allocations: 0 / 0.5583 GB, free: 2.379 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.101e-05/0.1334, allocations: 15 kB / 0.5583 GB, free: 2.367 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.1334, allocations: 0 / 0.5583 GB, free: 2.367 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1334, allocations: 0 / 0.5583 GB, free: 2.367 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.1334, allocations: 3.984 kB / 0.5583 GB, free: 2.363 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001181/0.1335, allocations: 149.6 kB / 0.5584 GB, free: 2.168 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.1335, allocations: 0 / 0.5584 GB, free: 2.168 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.315e-06/0.1335, allocations: 7.938 kB / 0.5584 GB, free: 2.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.203e-06/0.1335, allocations: 8 kB / 0.5585 GB, free: 2.152 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.799e-06/0.1335, allocations: 3.938 kB / 0.5585 GB, free: 2.148 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.1335, allocations: 0 / 0.5585 GB, free: 2.148 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-07/0.1335, allocations: 0 / 0.5585 GB, free: 2.148 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001038/0.1336, allocations: 90.83 kB / 0.5585 GB, free: 2.035 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.296e-05/0.1337, allocations: 77.11 kB / 0.5586 GB, free: 1.941 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.37e-05/0.1337, allocations: 3.938 kB / 0.5586 GB, free: 1.938 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.04e-05/0.1337, allocations: 4.031 kB / 0.5586 GB, free: 1.934 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.492e-05/0.1337, allocations: 4 kB / 0.5586 GB, free: 1.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-06/0.1337, allocations: 0 / 0.5586 GB, free: 1.93 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.236e-05/0.1337, allocations: 79.22 kB / 0.5587 GB, free: 1.852 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1337, allocations: 0 / 0.5587 GB, free: 1.852 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002408/0.134, allocations: 35.92 kB / 0.5587 GB, free: 1.816 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.0009363/0.1349, allocations: 0.778 MB / 0.5595 GB, free: 1.043 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001033/0.135, allocations: 59.39 kB / 0.5596 GB, free: 0.9727 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.135, allocations: 0 / 0.5596 GB, free: 0.9727 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.72e-05/0.1351, allocations: 67.39 kB / 0.5596 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001275/0.1352, allocations: 0 / 0.5596 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000322/0.1355, allocations: 126.6 kB / 0.5597 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003352/0.1359, allocations: 0.6729 MB / 0.5604 GB, free: 32 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.344e-06/0.1359, allocations: 0 / 0.5604 GB, free: 32 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.316e-05/0.1359, allocations: 7.438 kB / 0.5604 GB, free: 24 kB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1359, allocations: 0 / 0.5604 GB, free: 24 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02355/0.1594, allocations: 1.837 MB / 0.5622 GB, free: 14.25 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.095/8.254, allocations: 4.062 kB / 0.5622 GB, free: 14.25 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_res.csv","/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_trunk_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.169097776990384]