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.001556/0.001556, allocations: 116.7 kB / 18.5 MB, free: 4.574 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.001837/0.001837, allocations: 193.2 kB / 21.44 MB, free: 1.637 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.447/1.447, allocations: 225.6 MB / 249.8 MB, free: 3.727 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.2293/0.2293, allocations: 44.91 MB / 349.6 MB, free: 1.719 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.001952/0.001952, allocations: 59.3 kB / 491.7 MB, free: 30.07 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1042, allocations: 64.26 MB / 0.543 GB, free: 4.109 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001678/0.1059, allocations: 487.9 kB / 0.5434 GB, free: 3.629 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007613/0.1067, allocations: 307.5 kB / 0.5437 GB, free: 3.328 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.886e-05/0.1067, allocations: 0 / 0.5437 GB, free: 3.328 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.187e-05/0.1067, allocations: 0 / 0.5437 GB, free: 3.328 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.17e-06/0.1067, allocations: 0 / 0.5437 GB, free: 3.328 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.000796/0.1075, allocations: 95.66 kB / 0.5438 GB, free: 3.234 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.329e-05/0.1076, allocations: 4 kB / 0.5438 GB, free: 3.23 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.916e-05/0.1076, allocations: 0 / 0.5438 GB, free: 3.23 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.524e-05/0.1076, allocations: 0 / 0.5438 GB, free: 3.23 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.524e-05/0.1076, allocations: 7.922 kB / 0.5438 GB, free: 3.223 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.224e-06/0.1077, allocations: 0 / 0.5438 GB, free: 3.223 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002286/0.1079, allocations: 111.9 kB / 0.5439 GB, free: 3.113 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.09e-05/0.1079, allocations: 7.984 kB / 0.544 GB, free: 3.105 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.118e-05/0.1079, allocations: 0 / 0.544 GB, free: 3.105 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001616/0.1081, allocations: 80.09 kB / 0.544 GB, free: 3.027 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.1081, allocations: 3.938 kB / 0.544 GB, free: 3.023 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1081, allocations: 0 / 0.544 GB, free: 3.023 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.957e-06/0.1081, allocations: 0 / 0.544 GB, free: 3.023 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.0003602/0.1084, allocations: 365 kB / 0.5444 GB, free: 2.609 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.1085, allocations: 11.97 kB / 0.5444 GB, free: 2.598 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.056e-05/0.1085, allocations: 30.75 kB / 0.5444 GB, free: 2.559 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.458e-05/0.1085, allocations: 8.938 kB / 0.5444 GB, free: 2.551 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000108/0.1086, allocations: 164.4 kB / 0.5446 GB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.025e-05/0.1087, allocations: 384 / 0.5446 GB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.448e-06/0.1087, allocations: 384 / 0.5446 GB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.68e-05/0.1088, allocations: 34.27 kB / 0.5446 GB, free: 2.312 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.1088, allocations: 3.938 kB / 0.5446 GB, free: 2.309 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.831e-06/0.1088, allocations: 0 / 0.5446 GB, free: 2.309 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.1088, allocations: 3.984 kB / 0.5446 GB, free: 2.305 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.414e-05/0.1088, allocations: 0 / 0.5446 GB, free: 2.305 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001379/0.1089, allocations: 149.7 kB / 0.5448 GB, free: 2.109 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.987e-05/0.109, allocations: 22.5 kB / 0.5448 GB, free: 2.078 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.483e-05/0.109, allocations: 4.859 kB / 0.5448 GB, free: 2.07 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.594e-06/0.109, allocations: 0 / 0.5448 GB, free: 2.07 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.415e-05/0.1091, allocations: 64.36 kB / 0.5449 GB, free: 1.992 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.61e-07/0.1091, allocations: 0 / 0.5449 GB, free: 1.992 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001699/0.1092, allocations: 71.27 kB / 0.5449 GB, free: 1.91 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.247e-05/0.1093, allocations: 81.23 kB / 0.545 GB, free: 1.812 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.046e-05/0.1093, allocations: 89.86 kB / 0.5451 GB, free: 1.715 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.491e-05/0.1093, allocations: 25.7 kB / 0.5451 GB, free: 1.684 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.438e-05/0.1094, allocations: 84.08 kB / 0.5452 GB, free: 1.598 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.821e-05/0.1094, allocations: 0 / 0.5452 GB, free: 1.598 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.16e-05/0.1095, allocations: 17.72 kB / 0.5452 GB, free: 1.574 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.1096, allocations: 310.8 kB / 0.5455 GB, free: 1.262 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.849e-06/0.1096, allocations: 0 / 0.5455 GB, free: 1.262 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.704e-06/0.1096, allocations: 8 kB / 0.5455 GB, free: 1.254 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.67e-05/0.1097, allocations: 60.25 kB / 0.5456 GB, free: 1.18 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.1097, allocations: 0 / 0.5456 GB, free: 1.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.676e-05/0.1098, allocations: 67.34 kB / 0.5456 GB, free: 1.102 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.653e-05/0.1098, allocations: 33.7 kB / 0.5457 GB, free: 1.062 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.1098, allocations: 3.938 kB / 0.5457 GB, free: 1.059 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.1098, allocations: 3.938 kB / 0.5457 GB, free: 1.055 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.076e-06/0.1098, allocations: 4 kB / 0.5457 GB, free: 1.051 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.1098, allocations: 0 / 0.5457 GB, free: 1.051 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.569e-05/0.1098, allocations: 4.094 kB / 0.5457 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.856e-06/0.1098, allocations: 3.984 kB / 0.5457 GB, free: 1.043 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 9.332e-05/0.1099, allocations: 135.5 kB / 0.5458 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.958e-06/0.11, allocations: 3.953 kB / 0.5458 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.282e-05/0.11, allocations: 7.062 kB / 0.5458 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.11, allocations: 0 / 0.5458 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.299e-05/0.11, allocations: 4 kB / 0.5458 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.11, allocations: 0 / 0.5458 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001157/0.1101, allocations: 145.7 kB / 0.546 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1101, allocations: 4 kB / 0.546 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.2e-07/0.1101, allocations: 0 / 0.546 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.1101, allocations: 0 / 0.546 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.1101, allocations: 7.938 kB / 0.546 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.1101, allocations: 0 / 0.546 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.1101, allocations: 0 / 0.546 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001229/0.1102, allocations: 98.75 kB / 0.5461 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.696e-05/0.1103, allocations: 81.11 kB / 0.5462 GB, free: 468 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.468e-05/0.1103, allocations: 7.969 kB / 0.5462 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.095e-06/0.1103, allocations: 0 / 0.5462 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.678e-05/0.1103, allocations: 0 / 0.5462 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.534e-06/0.1103, allocations: 0 / 0.5462 GB, free: 460 kB / 398.1 MB Notification: Performance of sorting global known variables: time 4.69e-05/0.1104, allocations: 79.28 kB / 0.5462 GB, free: 380 kB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1104, allocations: 3.938 kB / 0.5462 GB, free: 376 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002595/0.1106, allocations: 35.86 kB / 0.5463 GB, free: 340 kB / 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.001079/0.1117, allocations: 0.7922 MB / 0.547 GB, free: 15.57 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001187/0.1118, allocations: 67.33 kB / 0.5471 GB, free: 15.49 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1118, allocations: 0 / 0.5471 GB, free: 15.49 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.989e-05/0.1119, allocations: 55.41 kB / 0.5472 GB, free: 15.42 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001298/0.112, allocations: 2.031 kB / 0.5472 GB, free: 15.42 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000343/0.1124, allocations: 130.4 kB / 0.5473 GB, free: 15.25 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003165/0.1127, allocations: 0.6727 MB / 0.5479 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.52e-06/0.1127, allocations: 4.062 kB / 0.548 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.44e-05/0.1127, allocations: 11.44 kB / 0.548 GB, free: 14.54 MB / 414.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1127, allocations: 0 / 0.548 GB, free: 14.54 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02269/0.1354, allocations: 1.829 MB / 0.5497 GB, free: 12.79 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.246/8.381, allocations: 17.22 kB / 0.5498 GB, free: 12.78 MB / 414.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 & /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) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_res.mat","/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.207082701846957]