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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00156/0.00156, allocations: 211.9 kB / 24.51 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.483/1.483, allocations: 230.6 MB / 258.3 MB, free: 7.789 MB / 206.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.2242/0.2242, allocations: 44.93 MB / 359.6 MB, free: 6.062 MB / 286.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002061/0.002061, allocations: 69.31 kB / 0.4938 GB, free: 10.57 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3088/0.3109, allocations: 65.47 MB / 0.5577 GB, free: 7.355 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001684/0.3126, allocations: 493.6 kB / 0.5582 GB, free: 6.992 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008193/0.3134, allocations: 298.7 kB / 0.5585 GB, free: 6.789 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.145e-05/0.3134, allocations: 0 / 0.5585 GB, free: 6.789 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.78e-05/0.3134, allocations: 0 / 0.5585 GB, free: 6.789 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.072e-06/0.3134, allocations: 0 / 0.5585 GB, free: 6.789 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.0009357/0.3144, allocations: 99.7 kB / 0.5586 GB, free: 6.691 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.18e-05/0.3144, allocations: 4 kB / 0.5586 GB, free: 6.688 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.596e-05/0.3144, allocations: 0 / 0.5586 GB, free: 6.688 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.849e-05/0.3145, allocations: 3.984 kB / 0.5586 GB, free: 6.684 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.136e-05/0.3145, allocations: 7.922 kB / 0.5586 GB, free: 6.676 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.022e-06/0.3145, allocations: 4 kB / 0.5586 GB, free: 6.672 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002266/0.3147, allocations: 115.8 kB / 0.5587 GB, free: 6.559 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.864e-06/0.3147, allocations: 0 / 0.5587 GB, free: 6.559 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.208e-05/0.3147, allocations: 4 kB / 0.5587 GB, free: 6.555 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001926/0.3149, allocations: 93.56 kB / 0.5588 GB, free: 6.469 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3149, allocations: 4 kB / 0.5588 GB, free: 6.465 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3149, allocations: 0 / 0.5588 GB, free: 6.465 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.315, allocations: 0 / 0.5588 GB, free: 6.465 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.0003634/0.3153, allocations: 280 kB / 0.559 GB, free: 6.152 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.3154, allocations: 8.031 kB / 0.5591 GB, free: 6.145 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.86e-05/0.3154, allocations: 192 / 0.5591 GB, free: 6.145 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.729e-05/0.3154, allocations: 34.75 kB / 0.5591 GB, free: 6.102 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.781e-05/0.3154, allocations: 4.938 kB / 0.5591 GB, free: 6.098 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.501e-05/0.3155, allocations: 102.5 kB / 0.5592 GB, free: 5.973 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.013e-05/0.3155, allocations: 384 / 0.5592 GB, free: 5.973 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.893e-06/0.3155, allocations: 384 / 0.5592 GB, free: 5.973 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.972e-05/0.3156, allocations: 67.7 kB / 0.5593 GB, free: 5.895 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.3156, allocations: 3.938 kB / 0.5593 GB, free: 5.891 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.735e-06/0.3156, allocations: 0 / 0.5593 GB, free: 5.891 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.3157, allocations: 0 / 0.5593 GB, free: 5.891 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.152e-05/0.3157, allocations: 29.7 kB / 0.5593 GB, free: 5.855 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001391/0.3158, allocations: 116.8 kB / 0.5594 GB, free: 5.699 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.422e-05/0.3159, allocations: 48.25 kB / 0.5594 GB, free: 5.637 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.51e-05/0.3159, allocations: 34.55 kB / 0.5595 GB, free: 5.594 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.002e-05/0.3159, allocations: 4.062 kB / 0.5595 GB, free: 5.59 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.649e-05/0.316, allocations: 60.2 kB / 0.5595 GB, free: 5.516 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.342e-06/0.316, allocations: 4 kB / 0.5595 GB, free: 5.512 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002068/0.3162, allocations: 122.7 kB / 0.5597 GB, free: 5.367 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/0.3163, allocations: 77.11 kB / 0.5597 GB, free: 5.273 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.955e-05/0.3163, allocations: 93.81 kB / 0.5598 GB, free: 5.172 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.722e-05/0.3163, allocations: 29.7 kB / 0.5599 GB, free: 5.137 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.844e-05/0.3164, allocations: 80.14 kB / 0.5599 GB, free: 5.055 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.335e-05/0.3164, allocations: 3.938 kB / 0.5599 GB, free: 5.051 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.782e-05/0.3164, allocations: 9.719 kB / 0.5599 GB, free: 5.035 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.3165, allocations: 318.8 kB / 0.5602 GB, free: 4.715 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.275e-05/0.3166, allocations: 25.7 kB / 0.5603 GB, free: 4.684 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.023e-05/0.3166, allocations: 29.83 kB / 0.5603 GB, free: 4.648 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.022e-05/0.3166, allocations: 68.19 kB / 0.5604 GB, free: 4.566 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.644e-06/0.3166, allocations: 0 / 0.5604 GB, free: 4.566 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.669e-05/0.3167, allocations: 97.09 kB / 0.5605 GB, free: 4.453 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.941e-05/0.3168, allocations: 37.64 kB / 0.5605 GB, free: 4.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.3168, allocations: 3.938 kB / 0.5605 GB, free: 4.406 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.3168, allocations: 3.984 kB / 0.5605 GB, free: 4.402 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-07/0.3168, allocations: 0 / 0.5605 GB, free: 4.402 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.588e-06/0.3168, allocations: 0 / 0.5605 GB, free: 4.402 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.495e-05/0.3168, allocations: 4.094 kB / 0.5605 GB, free: 4.398 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.311e-06/0.3168, allocations: 0 / 0.5605 GB, free: 4.398 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 0.0001162/0.3169, allocations: 135.5 kB / 0.5606 GB, free: 4.25 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.236e-05/0.317, allocations: 3.938 kB / 0.5606 GB, free: 4.246 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.42e-05/0.317, allocations: 3 kB / 0.5606 GB, free: 4.242 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.317, allocations: 4 kB / 0.5606 GB, free: 4.238 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.317, allocations: 0 / 0.5606 GB, free: 4.238 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-06/0.317, allocations: 0 / 0.5606 GB, free: 4.238 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001124/0.3171, allocations: 120.8 kB / 0.5608 GB, free: 4.078 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.3171, allocations: 0 / 0.5608 GB, free: 4.078 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.9e-07/0.3171, allocations: 0 / 0.5608 GB, free: 4.078 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.3171, allocations: 11.94 kB / 0.5608 GB, free: 4.066 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.222e-06/0.3171, allocations: 3.938 kB / 0.5608 GB, free: 4.062 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/0.3171, allocations: 3.938 kB / 0.5608 GB, free: 4.059 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3171, allocations: 0 / 0.5608 GB, free: 4.059 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001214/0.3172, allocations: 116.5 kB / 0.5609 GB, free: 3.914 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.178e-06/0.3172, allocations: 0 / 0.5609 GB, free: 3.914 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.48e-05/0.3172, allocations: 7.938 kB / 0.5609 GB, free: 3.906 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.456e-06/0.3173, allocations: 0 / 0.5609 GB, free: 3.906 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.258e-06/0.3173, allocations: 0 / 0.5609 GB, free: 3.906 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-06/0.3173, allocations: 0 / 0.5609 GB, free: 3.906 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.119e-05/0.3173, allocations: 79.31 kB / 0.561 GB, free: 3.828 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3173, allocations: 0 / 0.561 GB, free: 3.828 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002519/0.3176, allocations: 35.92 kB / 0.561 GB, free: 3.793 MB / 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.0009794/0.3185, allocations: 0.8421 MB / 0.5618 GB, free: 2.977 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001301/0.3187, allocations: 110.8 kB / 0.5619 GB, free: 2.844 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.3187, allocations: 0 / 0.5619 GB, free: 2.844 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.895e-05/0.3187, allocations: 85.09 kB / 0.562 GB, free: 2.742 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001275/0.3188, allocations: 0 / 0.562 GB, free: 2.742 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003626/0.3192, allocations: 156.3 kB / 0.5622 GB, free: 2.543 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.993e-05/0.3193, allocations: 59.3 kB / 0.5622 GB, free: 2.465 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.653e-06/0.3193, allocations: 3.984 kB / 0.5622 GB, free: 2.461 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.55e-05/0.3193, allocations: 7.438 kB / 0.5622 GB, free: 2.453 MB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3193, allocations: 128 / 0.5622 GB, free: 2.453 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02243/0.3417, allocations: 2.008 MB / 0.5642 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.85, allocations: 22.12 kB / 0.5642 GB, free: 0.5664 MB / 398.1 MB " [Timeout remaining time 648] (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/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.777133972966112]