Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001417/0.001417, allocations: 109.1 kB / 21.22 MB, free: 0.7539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001534/0.001534, allocations: 216.9 kB / 24.53 MB, free: 4.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 230.5 MB / 258.2 MB, free: 8.047 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2382/0.2382, allocations: 46.93 MB / 361.6 MB, free: 4.195 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002371/0.002371, allocations: 83.86 kB / 0.4969 GB, free: 7.797 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/0.2984, allocations: 66.09 MB / 0.5615 GB, free: 4.301 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001594/0.3, allocations: 477.1 kB / 0.5619 GB, free: 3.836 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007454/0.3008, allocations: 313.3 kB / 0.5622 GB, free: 3.531 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.002e-05/0.3008, allocations: 4 kB / 0.5622 GB, free: 3.527 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.533e-05/0.3008, allocations: 0 / 0.5622 GB, free: 3.527 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.751e-06/0.3008, allocations: 0 / 0.5622 GB, free: 3.527 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:232:3-298: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.0008816/0.3017, allocations: 107.8 kB / 0.5623 GB, free: 3.426 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.569e-05/0.3017, allocations: 0 / 0.5623 GB, free: 3.426 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.211e-05/0.3018, allocations: 0 / 0.5623 GB, free: 3.426 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.709e-05/0.3018, allocations: 8 kB / 0.5623 GB, free: 3.418 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.66e-05/0.3018, allocations: 0 / 0.5623 GB, free: 3.418 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.229e-06/0.3018, allocations: 0 / 0.5623 GB, free: 3.418 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002141/0.302, allocations: 115.9 kB / 0.5625 GB, free: 3.305 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.322e-06/0.302, allocations: 0 / 0.5625 GB, free: 3.305 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.087e-05/0.302, allocations: 3.984 kB / 0.5625 GB, free: 3.301 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000175/0.3022, allocations: 93.56 kB / 0.5626 GB, free: 3.215 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3022, allocations: 0 / 0.5626 GB, free: 3.215 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3022, allocations: 0 / 0.5626 GB, free: 3.215 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.3022, allocations: 0 / 0.5626 GB, free: 3.215 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.0003335/0.3026, allocations: 288 kB / 0.5628 GB, free: 2.895 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.3026, allocations: 8.031 kB / 0.5628 GB, free: 2.887 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.34e-05/0.3026, allocations: 4.188 kB / 0.5628 GB, free: 2.883 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.671e-05/0.3026, allocations: 34.69 kB / 0.5629 GB, free: 2.84 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.193e-05/0.3027, allocations: 0.9375 kB / 0.5629 GB, free: 2.84 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.283e-05/0.3028, allocations: 102.5 kB / 0.563 GB, free: 2.715 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.247e-06/0.3028, allocations: 384 / 0.563 GB, free: 2.715 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.114e-05/0.3028, allocations: 4.375 kB / 0.563 GB, free: 2.711 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.142e-05/0.3029, allocations: 30.02 kB / 0.563 GB, free: 2.676 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.643e-06/0.3029, allocations: 7.938 kB / 0.563 GB, free: 2.668 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.416e-06/0.3029, allocations: 3.984 kB / 0.563 GB, free: 2.664 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.3029, allocations: 0 / 0.563 GB, free: 2.664 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.672e-05/0.3029, allocations: 4 kB / 0.563 GB, free: 2.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001361/0.303, allocations: 116.8 kB / 0.5631 GB, free: 2.504 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.505e-05/0.3031, allocations: 22.55 kB / 0.5632 GB, free: 2.473 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.378e-05/0.3031, allocations: 4.859 kB / 0.5632 GB, free: 2.465 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.022e-05/0.3031, allocations: 7.938 kB / 0.5632 GB, free: 2.457 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.263e-05/0.3031, allocations: 60.2 kB / 0.5632 GB, free: 2.383 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.3031, allocations: 0 / 0.5632 GB, free: 2.383 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001684/0.3033, allocations: 67.45 kB / 0.5633 GB, free: 2.305 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.78e-05/0.3034, allocations: 85.05 kB / 0.5634 GB, free: 2.203 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.42e-05/0.3034, allocations: 93.81 kB / 0.5635 GB, free: 2.102 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.636e-05/0.3034, allocations: 25.7 kB / 0.5635 GB, free: 2.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.424e-05/0.3035, allocations: 80.14 kB / 0.5636 GB, free: 1.988 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.44e-05/0.3035, allocations: 8.062 kB / 0.5636 GB, free: 1.98 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.956e-05/0.3035, allocations: 13.72 kB / 0.5636 GB, free: 1.961 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.3037, allocations: 318.8 kB / 0.5639 GB, free: 1.641 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.638e-06/0.3037, allocations: 0 / 0.5639 GB, free: 1.641 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.791e-06/0.3037, allocations: 0 / 0.5639 GB, free: 1.641 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.926e-05/0.3037, allocations: 60.27 kB / 0.5639 GB, free: 1.566 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.3037, allocations: 0 / 0.5639 GB, free: 1.566 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.057e-05/0.3038, allocations: 71.39 kB / 0.564 GB, free: 1.484 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.535e-05/0.3039, allocations: 33.64 kB / 0.564 GB, free: 1.445 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.3039, allocations: 3.984 kB / 0.564 GB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.3039, allocations: 0 / 0.564 GB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.494e-06/0.3039, allocations: 8 kB / 0.5641 GB, free: 1.434 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.3039, allocations: 0 / 0.5641 GB, free: 1.434 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.425e-05/0.3039, allocations: 0 / 0.5641 GB, free: 1.434 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.049e-06/0.3039, allocations: 0 / 0.5641 GB, free: 1.434 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.0001008/0.304, allocations: 140.9 kB / 0.5642 GB, free: 1.281 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.144e-05/0.304, allocations: 3.969 kB / 0.5642 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.171e-05/0.304, allocations: 10.98 kB / 0.5642 GB, free: 1.266 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.304, allocations: 0 / 0.5642 GB, free: 1.266 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.304, allocations: 0 / 0.5642 GB, free: 1.266 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.304, allocations: 0 / 0.5642 GB, free: 1.266 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.872e-05/0.3041, allocations: 120.7 kB / 0.5643 GB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.3041, allocations: 0 / 0.5643 GB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.3041, allocations: 0 / 0.5643 GB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.3041, allocations: 3.938 kB / 0.5643 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.32e-06/0.3041, allocations: 0 / 0.5643 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.3041, allocations: 0 / 0.5643 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.3041, allocations: 8 kB / 0.5643 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001025/0.3042, allocations: 90.77 kB / 0.5644 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.112e-06/0.3042, allocations: 4 kB / 0.5644 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.281e-05/0.3043, allocations: 3.938 kB / 0.5644 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.122e-05/0.3043, allocations: 3.984 kB / 0.5644 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.683e-05/0.3043, allocations: 7.984 kB / 0.5644 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-06/0.3043, allocations: 0 / 0.5644 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.436e-05/0.3043, allocations: 83.25 kB / 0.5645 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3043, allocations: 4 kB / 0.5645 GB, free: 0.875 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002516/0.3046, allocations: 27.94 kB / 0.5645 GB, free: 0.8477 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.001003/0.3056, allocations: 0.7874 MB / 0.5653 GB, free: 68 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001117/0.3057, allocations: 59.34 kB / 0.5654 GB, free: 16 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.3057, allocations: 0 / 0.5654 GB, free: 16 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.577e-05/0.3057, allocations: 59.41 kB / 0.5654 GB, free: 15.93 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001205/0.3059, allocations: 0 / 0.5654 GB, free: 15.93 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003/0.3062, allocations: 130.7 kB / 0.5655 GB, free: 15.76 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002853/0.3065, allocations: 0.6729 MB / 0.5662 GB, free: 15.06 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.739e-06/0.3065, allocations: 0 / 0.5662 GB, free: 15.06 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.295e-05/0.3065, allocations: 7.438 kB / 0.5662 GB, free: 15.05 MB / 414.1 MB Notification: Performance of SimCode: time 4e-07/0.3065, allocations: 0 / 0.5662 GB, free: 15.05 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02145/0.3279, allocations: 1.974 MB / 0.5681 GB, free: 13.18 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.87, allocations: 13.91 kB / 0.5682 GB, free: 13.18 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.785818440956064]