Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001799/0.001799, allocations: 107.5 kB / 21.22 MB, free: 0.6289 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.002411/0.002411, allocations: 212.3 kB / 24.51 MB, free: 3.914 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.461/1.461, allocations: 230.6 MB / 258.3 MB, free: 7.734 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2278/0.2278, allocations: 46.97 MB / 361.7 MB, free: 4.012 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Utilities_TestStreams",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStreams",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001957/0.001957, allocations: 63.91 kB / 0.4969 GB, free: 7.723 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3022/0.3041, allocations: 66.02 MB / 0.5613 GB, free: 4.238 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001766/0.3059, allocations: 492 kB / 0.5618 GB, free: 3.758 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007725/0.3066, allocations: 309.4 kB / 0.5621 GB, free: 3.457 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.888e-05/0.3067, allocations: 0 / 0.5621 GB, free: 3.457 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.629e-05/0.3067, allocations: 0 / 0.5621 GB, free: 3.457 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.372e-06/0.3067, allocations: 0 / 0.5621 GB, free: 3.457 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:221:3-287: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.0009709/0.3077, allocations: 106.2 kB / 0.5622 GB, free: 3.355 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.651e-05/0.3077, allocations: 4 kB / 0.5622 GB, free: 3.352 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.188e-05/0.3078, allocations: 3.984 kB / 0.5622 GB, free: 3.348 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.787e-05/0.3078, allocations: 0 / 0.5622 GB, free: 3.348 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.015e-05/0.3078, allocations: 0 / 0.5622 GB, free: 3.348 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.372e-06/0.3078, allocations: 0 / 0.5622 GB, free: 3.348 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002325/0.308, allocations: 115.9 kB / 0.5623 GB, free: 3.234 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.616e-06/0.308, allocations: 4 kB / 0.5623 GB, free: 3.23 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.56e-05/0.3081, allocations: 3.984 kB / 0.5623 GB, free: 3.227 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00019/0.3083, allocations: 85.58 kB / 0.5624 GB, free: 3.148 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.3083, allocations: 4 kB / 0.5624 GB, free: 3.145 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3083, allocations: 0 / 0.5624 GB, free: 3.145 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.3083, allocations: 0 / 0.5624 GB, free: 3.145 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.0003492/0.3086, allocations: 284 kB / 0.5627 GB, free: 2.828 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.3087, allocations: 8.031 kB / 0.5627 GB, free: 2.82 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.779e-05/0.3087, allocations: 192 / 0.5627 GB, free: 2.82 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.477e-05/0.3087, allocations: 30.75 kB / 0.5627 GB, free: 2.781 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.31e-05/0.3087, allocations: 8.938 kB / 0.5627 GB, free: 2.773 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.021e-05/0.3088, allocations: 106.5 kB / 0.5628 GB, free: 2.645 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.267e-06/0.3088, allocations: 384 / 0.5628 GB, free: 2.645 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.588e-06/0.3088, allocations: 4.375 kB / 0.5628 GB, free: 2.641 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.436e-05/0.3089, allocations: 63.7 kB / 0.5629 GB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.3089, allocations: 4 kB / 0.5629 GB, free: 2.562 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.376e-06/0.3089, allocations: 3.984 kB / 0.5629 GB, free: 2.559 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.3089, allocations: 0 / 0.5629 GB, free: 2.559 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.002e-05/0.309, allocations: 29.7 kB / 0.5629 GB, free: 2.523 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001195/0.3091, allocations: 112.8 kB / 0.563 GB, free: 2.371 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.276e-05/0.3091, allocations: 56.23 kB / 0.5631 GB, free: 2.301 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.824e-05/0.3092, allocations: 34.56 kB / 0.5631 GB, free: 2.258 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.416e-06/0.3092, allocations: 0 / 0.5631 GB, free: 2.258 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.473e-05/0.3092, allocations: 64.27 kB / 0.5632 GB, free: 2.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.3092, allocations: 0 / 0.5632 GB, free: 2.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001841/0.3094, allocations: 122.7 kB / 0.5633 GB, free: 2.035 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.811e-05/0.3095, allocations: 77.11 kB / 0.5634 GB, free: 1.941 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.39e-05/0.3095, allocations: 93.81 kB / 0.5635 GB, free: 1.84 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.492e-05/0.3095, allocations: 25.7 kB / 0.5635 GB, free: 1.809 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.964e-05/0.3096, allocations: 84.14 kB / 0.5636 GB, free: 1.723 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.932e-05/0.3096, allocations: 8 kB / 0.5636 GB, free: 1.715 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.551e-05/0.3096, allocations: 13.72 kB / 0.5636 GB, free: 1.695 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.3098, allocations: 314.8 kB / 0.5639 GB, free: 1.379 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.589e-05/0.3098, allocations: 29.7 kB / 0.5639 GB, free: 1.344 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.044e-05/0.3098, allocations: 33.62 kB / 0.5639 GB, free: 1.305 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.312e-05/0.3099, allocations: 60.27 kB / 0.564 GB, free: 1.23 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.3099, allocations: 0 / 0.564 GB, free: 1.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.449e-05/0.3099, allocations: 89.11 kB / 0.5641 GB, free: 1.125 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.732e-05/0.31, allocations: 37.62 kB / 0.5641 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.31, allocations: 4.094 kB / 0.5641 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.07e-05/0.31, allocations: 4 kB / 0.5641 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.92e-07/0.31, allocations: 0 / 0.5641 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.31, allocations: 3.938 kB / 0.5641 GB, free: 1.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.413e-05/0.31, allocations: 0 / 0.5641 GB, free: 1.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-06/0.31, allocations: 0 / 0.5641 GB, free: 1.07 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.508e-05/0.3101, allocations: 135.5 kB / 0.5643 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.829e-06/0.3101, allocations: 3.938 kB / 0.5643 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.698e-06/0.3101, allocations: 3 kB / 0.5643 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.3101, allocations: 0 / 0.5643 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.269e-06/0.3101, allocations: 4 kB / 0.5643 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.3101, allocations: 7.984 kB / 0.5643 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.273e-05/0.3102, allocations: 112.8 kB / 0.5644 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.3102, allocations: 0 / 0.5644 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.3102, allocations: 0 / 0.5644 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.3102, allocations: 3.938 kB / 0.5644 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.734e-06/0.3102, allocations: 4 kB / 0.5644 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.3103, allocations: 0 / 0.5644 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3103, allocations: 0 / 0.5644 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000114/0.3104, allocations: 120.5 kB / 0.5645 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.717e-06/0.3104, allocations: 0 / 0.5645 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.466e-05/0.3104, allocations: 7.969 kB / 0.5645 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.051e-05/0.3104, allocations: 11.94 kB / 0.5645 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.091e-05/0.3104, allocations: 7.922 kB / 0.5645 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.514e-06/0.3104, allocations: 0 / 0.5645 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.289e-05/0.3104, allocations: 75.28 kB / 0.5646 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3104, allocations: 0 / 0.5646 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002569/0.3107, allocations: 31.94 kB / 0.5646 GB, free: 472 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.0009461/0.3116, allocations: 0.8294 MB / 0.5654 GB, free: 15.66 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001198/0.3118, allocations: 114.8 kB / 0.5656 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.3118, allocations: 3.938 kB / 0.5656 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.114e-05/0.3118, allocations: 85.09 kB / 0.5656 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001221/0.3119, allocations: 0 / 0.5656 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003306/0.3123, allocations: 152.3 kB / 0.5658 GB, free: 15.22 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.908e-05/0.3123, allocations: 55.48 kB / 0.5658 GB, free: 15.14 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.659e-06/0.3123, allocations: 7.938 kB / 0.5658 GB, free: 15.14 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.253e-05/0.3123, allocations: 7.438 kB / 0.5659 GB, free: 15.13 MB / 414.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3123, allocations: 0 / 0.5659 GB, free: 15.13 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02088/0.3332, allocations: 2.015 MB / 0.5678 GB, free: 13.25 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/11.93, allocations: 19.69 kB / 0.5678 GB, free: 13.24 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStreams_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams_res.mat","/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_4.1.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.801361535093747]