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.001795/0.001795, allocations: 119.9 kB / 20.44 MB, free: 1.297 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.0023/0.0023, allocations: 214.5 kB / 23.74 MB, free: 4.527 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.446/1.446, allocations: 230.6 MB / 257.5 MB, free: 8.016 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.2284/0.2284, allocations: 46.93 MB / 360.9 MB, free: 4.285 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002111/0.002111, allocations: 67.89 kB / 0.4961 GB, free: 7.934 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3028/0.3049, allocations: 66.03 MB / 0.5606 GB, free: 4.477 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001638/0.3066, allocations: 485.1 kB / 0.5611 GB, free: 4 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007434/0.3073, allocations: 321.3 kB / 0.5614 GB, free: 3.688 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.701e-05/0.3073, allocations: 0 / 0.5614 GB, free: 3.688 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.039e-05/0.3073, allocations: 0 / 0.5614 GB, free: 3.688 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.821e-06/0.3073, allocations: 3.938 kB / 0.5614 GB, free: 3.684 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.0008221/0.3081, allocations: 89.25 kB / 0.5615 GB, free: 3.602 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.138e-05/0.3082, allocations: 4 kB / 0.5615 GB, free: 3.598 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.252e-05/0.3082, allocations: 11.98 kB / 0.5615 GB, free: 3.586 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.786e-05/0.3083, allocations: 0 / 0.5615 GB, free: 3.586 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.576e-05/0.3083, allocations: 0 / 0.5615 GB, free: 3.586 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.37e-06/0.3083, allocations: 0 / 0.5615 GB, free: 3.586 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000208/0.3085, allocations: 115.8 kB / 0.5616 GB, free: 3.473 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.007e-06/0.3085, allocations: 3.984 kB / 0.5616 GB, free: 3.469 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.671e-05/0.3085, allocations: 0 / 0.5616 GB, free: 3.469 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001778/0.3087, allocations: 89.58 kB / 0.5617 GB, free: 3.387 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3087, allocations: 0 / 0.5617 GB, free: 3.387 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3087, allocations: 0 / 0.5617 GB, free: 3.387 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.578e-06/0.3087, allocations: 0 / 0.5617 GB, free: 3.387 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.0003495/0.309, allocations: 288 kB / 0.562 GB, free: 3.066 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.3091, allocations: 12.03 kB / 0.562 GB, free: 3.055 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.398e-05/0.3091, allocations: 30.75 kB / 0.562 GB, free: 3.016 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.65e-05/0.3091, allocations: 0.9375 kB / 0.562 GB, free: 3.016 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001012/0.3092, allocations: 106.5 kB / 0.5621 GB, free: 2.887 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.253e-05/0.3093, allocations: 4.375 kB / 0.5621 GB, free: 2.883 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.636e-06/0.3093, allocations: 4.359 kB / 0.5621 GB, free: 2.879 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.896e-05/0.3094, allocations: 34.2 kB / 0.5622 GB, free: 2.84 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.3094, allocations: 3.938 kB / 0.5622 GB, free: 2.836 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.457e-06/0.3094, allocations: 8 kB / 0.5622 GB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.3094, allocations: 0 / 0.5622 GB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.689e-05/0.3094, allocations: 0 / 0.5622 GB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001408/0.3095, allocations: 112.8 kB / 0.5623 GB, free: 2.676 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.691e-05/0.3096, allocations: 22.59 kB / 0.5623 GB, free: 2.645 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.369e-05/0.3096, allocations: 4.859 kB / 0.5623 GB, free: 2.637 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.235e-06/0.3096, allocations: 3.938 kB / 0.5623 GB, free: 2.633 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.655e-05/0.3097, allocations: 72.27 kB / 0.5624 GB, free: 2.547 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.3097, allocations: 0 / 0.5624 GB, free: 2.547 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001797/0.3099, allocations: 59.34 kB / 0.5624 GB, free: 2.477 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.862e-05/0.3099, allocations: 85.09 kB / 0.5625 GB, free: 2.375 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.711e-05/0.31, allocations: 93.81 kB / 0.5626 GB, free: 2.273 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.587e-05/0.31, allocations: 25.7 kB / 0.5626 GB, free: 2.242 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.451e-05/0.31, allocations: 80.14 kB / 0.5627 GB, free: 2.16 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.035e-05/0.31, allocations: 3.938 kB / 0.5627 GB, free: 2.156 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.215e-05/0.3101, allocations: 21.84 kB / 0.5627 GB, free: 2.129 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.3102, allocations: 310.8 kB / 0.563 GB, free: 1.816 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.568e-06/0.3102, allocations: 0 / 0.563 GB, free: 1.816 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.264e-06/0.3102, allocations: 3.938 kB / 0.563 GB, free: 1.812 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.325e-05/0.3103, allocations: 60.27 kB / 0.5631 GB, free: 1.738 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/0.3103, allocations: 4 kB / 0.5631 GB, free: 1.734 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.541e-05/0.3104, allocations: 67.39 kB / 0.5632 GB, free: 1.656 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.478e-05/0.3104, allocations: 29.8 kB / 0.5632 GB, free: 1.621 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.874e-06/0.3104, allocations: 11.94 kB / 0.5632 GB, free: 1.609 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.3104, allocations: 0 / 0.5632 GB, free: 1.609 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.91e-07/0.3104, allocations: 0 / 0.5632 GB, free: 1.609 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.3104, allocations: 0 / 0.5632 GB, free: 1.609 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.72e-05/0.3104, allocations: 3.984 kB / 0.5632 GB, free: 1.605 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.511e-06/0.3105, allocations: 0 / 0.5632 GB, free: 1.605 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.0001014/0.3106, allocations: 139.5 kB / 0.5633 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.113e-06/0.3106, allocations: 0 / 0.5633 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.391e-05/0.3106, allocations: 6.938 kB / 0.5633 GB, free: 1.445 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.3106, allocations: 4 kB / 0.5633 GB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.3106, allocations: 3.938 kB / 0.5633 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-06/0.3106, allocations: 0 / 0.5633 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001042/0.3107, allocations: 128.7 kB / 0.5635 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.3107, allocations: 0 / 0.5635 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.3107, allocations: 3.938 kB / 0.5635 GB, free: 1.266 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.002e-06/0.3107, allocations: 0 / 0.5635 GB, free: 1.266 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.889e-06/0.3107, allocations: 7.938 kB / 0.5635 GB, free: 1.258 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.3107, allocations: 0 / 0.5635 GB, free: 1.258 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.3107, allocations: 0 / 0.5635 GB, free: 1.258 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001002/0.3108, allocations: 94.77 kB / 0.5636 GB, free: 1.141 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.731e-06/0.3108, allocations: 4 kB / 0.5636 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.335e-05/0.3108, allocations: 3.938 kB / 0.5636 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.456e-06/0.3108, allocations: 0 / 0.5636 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.197e-06/0.3108, allocations: 0 / 0.5636 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.03e-06/0.3108, allocations: 4 kB / 0.5636 GB, free: 1.129 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.266e-05/0.3109, allocations: 75.28 kB / 0.5637 GB, free: 1.055 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3109, allocations: 4.031 kB / 0.5637 GB, free: 1.051 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002353/0.3111, allocations: 35.92 kB / 0.5637 GB, free: 1.016 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.0009196/0.312, allocations: 0.7862 MB / 0.5645 GB, free: 252 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001018/0.3121, allocations: 63.39 kB / 0.5645 GB, free: 176 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.3121, allocations: 0 / 0.5645 GB, free: 176 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.683e-05/0.3122, allocations: 55.41 kB / 0.5646 GB, free: 108 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001209/0.3123, allocations: 7.938 kB / 0.5646 GB, free: 100 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003197/0.3126, allocations: 126.7 kB / 0.5647 GB, free: 15.93 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003194/0.313, allocations: 0.6768 MB / 0.5654 GB, free: 15.23 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.101e-06/0.313, allocations: 0 / 0.5654 GB, free: 15.23 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.558e-05/0.313, allocations: 7.438 kB / 0.5654 GB, free: 15.22 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.313, allocations: 0 / 0.5654 GB, free: 15.22 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02715/0.3401, allocations: 1.947 MB / 0.5673 GB, free: 13.41 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.42, allocations: 10.52 kB / 0.5673 GB, free: 13.4 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.245816349983215]