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.0008089/0.0008088, allocations: 91.06 kB / 17.35 MB, free: 6 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.0008662/0.0008662, allocations: 177.9 kB / 18.26 MB, free: 5.391 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.191/1.191, allocations: 223.3 MB / 242.3 MB, free: 180 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1642/0.1642, allocations: 44.24 MB / 337.7 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002922/0.0002923, allocations: 8 kB / 410.4 MB, free: 27.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08744/0.08775, allocations: 61.92 MB / 472.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0004541/0.08824, allocations: 210.9 kB / 472.6 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005623/0.08881, allocations: 296.9 kB / 472.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.734e-06/0.08883, allocations: 0 / 472.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.041e-05/0.08885, allocations: 4 kB / 472.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.188e-06/0.08886, allocations: 4 kB / 472.9 MB, free: 12.76 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.0006347/0.0895, allocations: 74.52 kB / 472.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.521e-05/0.08953, allocations: 0 / 472.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.777e-05/0.08956, allocations: 0 / 472.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.581e-05/0.08958, allocations: 7.938 kB / 472.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.895e-05/0.08961, allocations: 3.984 kB / 472.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.46e-06/0.08962, allocations: 0 / 472.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001536/0.08978, allocations: 107.8 kB / 473 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.652e-06/0.08979, allocations: 0 / 473 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.659e-05/0.08982, allocations: 25.7 kB / 473.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001362/0.08997, allocations: 83.88 kB / 473.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.08998, allocations: 4 kB / 473.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.08999, allocations: 0 / 473.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.946e-06/0.09, allocations: 0 / 473.2 MB, free: 12.46 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.0002585/0.09026, allocations: 361.2 kB / 473.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.416e-05/0.0903, allocations: 8.031 kB / 473.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.524e-05/0.09033, allocations: 30.75 kB / 473.5 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.753e-05/0.09035, allocations: 0.9375 kB / 473.5 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.047e-05/0.09043, allocations: 160.4 kB / 473.7 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.176e-06/0.09044, allocations: 384 / 473.7 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.702e-06/0.09046, allocations: 12.31 kB / 473.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.538e-05/0.09053, allocations: 38.19 kB / 473.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.272e-06/0.09054, allocations: 3.938 kB / 473.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.24e-06/0.09055, allocations: 0 / 473.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.09056, allocations: 4 kB / 473.8 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.278e-05/0.09057, allocations: 0 / 473.8 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001011/0.09068, allocations: 141.7 kB / 473.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.977e-05/0.09072, allocations: 22.59 kB / 473.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.071e-05/0.09073, allocations: 8.859 kB / 473.9 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.97e-06/0.09074, allocations: 0 / 473.9 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.39e-05/0.09078, allocations: 64.2 kB / 474 MB, free: 11.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.41e-07/0.09079, allocations: 0 / 474 MB, free: 11.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001304/0.09092, allocations: 63.41 kB / 474.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.619e-05/0.09097, allocations: 85.09 kB / 474.1 MB, free: 11.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.207e-05/0.09101, allocations: 89.86 kB / 474.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.969e-06/0.09102, allocations: 29.83 kB / 474.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.116e-05/0.09105, allocations: 80.14 kB / 474.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.237e-05/0.09106, allocations: 0 / 474.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.929e-05/0.09109, allocations: 13.72 kB / 474.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.041e-05/0.09117, allocations: 310.8 kB / 474.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.805e-06/0.09118, allocations: 4 kB / 474.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.044e-06/0.0912, allocations: 0 / 474.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.9e-05/0.09124, allocations: 68.14 kB / 474.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.09125, allocations: 4.062 kB / 474.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.661e-05/0.09131, allocations: 63.39 kB / 474.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.09134, allocations: 33.7 kB / 474.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.09135, allocations: 3.938 kB / 474.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.157e-06/0.09137, allocations: 0 / 474.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.21e-07/0.09137, allocations: 0 / 474.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.446e-06/0.09138, allocations: 0 / 474.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.225e-05/0.09139, allocations: 0 / 474.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.16e-06/0.0914, allocations: 4 kB / 474.8 MB, free: 10.5 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 6.562e-05/0.09148, allocations: 139.6 kB / 475 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.801e-06/0.09149, allocations: 0 / 475 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.064e-05/0.0915, allocations: 19 kB / 475 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.09151, allocations: 0 / 475 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.065e-06/0.09152, allocations: 0 / 475 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.09152, allocations: 0 / 475 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.754e-05/0.0916, allocations: 153.6 kB / 475.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.09161, allocations: 3.984 kB / 475.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.3e-07/0.09162, allocations: 0 / 475.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.09162, allocations: 4 kB / 475.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.163e-06/0.09164, allocations: 11.88 kB / 475.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/0.09164, allocations: 0 / 475.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.09165, allocations: 0 / 475.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.617e-05/0.09173, allocations: 90.83 kB / 475.2 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.746e-05/0.09176, allocations: 81.3 kB / 475.3 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.117e-05/0.09178, allocations: 3.938 kB / 475.3 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.516e-06/0.09179, allocations: 4 kB / 475.3 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.333e-05/0.09181, allocations: 8.031 kB / 475.3 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-06/0.09182, allocations: 0 / 475.3 MB, free: 9.883 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.038e-05/0.09184, allocations: 75.28 kB / 475.4 MB, free: 9.809 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09185, allocations: 0 / 475.4 MB, free: 9.809 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002054/0.09205, allocations: 31.98 kB / 475.4 MB, free: 9.777 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.0006319/0.09269, allocations: 0.8152 MB / 476.3 MB, free: 8.996 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.096e-05/0.09276, allocations: 55.41 kB / 476.3 MB, free: 8.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.09278, allocations: 8.062 kB / 476.3 MB, free: 8.922 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.632e-05/0.09281, allocations: 59.39 kB / 476.4 MB, free: 8.852 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001093/0.09292, allocations: 4 kB / 476.4 MB, free: 8.848 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002356/0.09316, allocations: 120.3 kB / 476.5 MB, free: 8.688 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000181/0.09336, allocations: 0.6692 MB / 477.2 MB, free: 7.992 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.897e-06/0.09336, allocations: 3.938 kB / 477.2 MB, free: 7.988 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.336e-06/0.09338, allocations: 7.438 kB / 477.2 MB, free: 7.98 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.09338, allocations: 0 / 477.2 MB, free: 7.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07314/0.1665, allocations: 1.588 MB / 478.8 MB, free: 6.484 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002415/0.1668, allocations: 236.1 kB / 479 MB, free: 6.227 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.671/1.838, allocations: 0 / 479 MB, free: 6.227 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