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.0019/0.0019, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.002492/0.002492, allocations: 210.9 kB / 24.52 MB, free: 3.941 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.481/1.481, allocations: 230.5 MB / 258.2 MB, free: 7.809 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.2273/0.2273, allocations: 46.94 MB / 361.6 MB, free: 3.949 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.002378/0.002378, allocations: 71.89 kB / 0.4969 GB, free: 7.605 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3004/0.3028, allocations: 66.08 MB / 0.5614 GB, free: 4.09 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001601/0.3044, allocations: 479.2 kB / 0.5619 GB, free: 3.625 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007598/0.3052, allocations: 309.4 kB / 0.5622 GB, free: 3.324 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.166e-05/0.3052, allocations: 0 / 0.5622 GB, free: 3.324 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.135e-05/0.3052, allocations: 3.938 kB / 0.5622 GB, free: 3.32 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.29e-06/0.3052, allocations: 8 kB / 0.5622 GB, free: 3.312 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.0009557/0.3062, allocations: 93.81 kB / 0.5623 GB, free: 3.223 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.445e-05/0.3062, allocations: 0 / 0.5623 GB, free: 3.223 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.154e-05/0.3063, allocations: 7.984 kB / 0.5623 GB, free: 3.215 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.365e-05/0.3063, allocations: 0 / 0.5623 GB, free: 3.215 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.115e-05/0.3063, allocations: 4 kB / 0.5623 GB, free: 3.211 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.883e-06/0.3063, allocations: 0 / 0.5623 GB, free: 3.211 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000245/0.3066, allocations: 107.9 kB / 0.5624 GB, free: 3.105 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.138e-05/0.3066, allocations: 0 / 0.5624 GB, free: 3.105 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.377e-05/0.3066, allocations: 7.984 kB / 0.5624 GB, free: 3.098 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002159/0.3068, allocations: 89.58 kB / 0.5625 GB, free: 3.016 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3068, allocations: 4 kB / 0.5625 GB, free: 3.012 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3068, allocations: 0 / 0.5625 GB, free: 3.012 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.709e-06/0.3068, allocations: 0 / 0.5625 GB, free: 3.012 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.0003586/0.3072, allocations: 280 kB / 0.5627 GB, free: 2.699 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.3072, allocations: 8.031 kB / 0.5628 GB, free: 2.691 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.593e-05/0.3072, allocations: 8.188 kB / 0.5628 GB, free: 2.684 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.04e-05/0.3073, allocations: 34.75 kB / 0.5628 GB, free: 2.641 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.61e-05/0.3073, allocations: 0.9375 kB / 0.5628 GB, free: 2.641 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.547e-05/0.3074, allocations: 110.5 kB / 0.5629 GB, free: 2.508 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.487e-06/0.3074, allocations: 384 / 0.5629 GB, free: 2.508 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.159e-05/0.3074, allocations: 4.375 kB / 0.5629 GB, free: 2.504 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001045/0.3075, allocations: 63.7 kB / 0.563 GB, free: 2.43 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.3075, allocations: 3.938 kB / 0.563 GB, free: 2.426 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.957e-06/0.3075, allocations: 4 kB / 0.563 GB, free: 2.422 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.3075, allocations: 0 / 0.563 GB, free: 2.422 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.001e-05/0.3076, allocations: 25.7 kB / 0.563 GB, free: 2.391 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001296/0.3077, allocations: 120.8 kB / 0.5631 GB, free: 2.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.581e-05/0.3077, allocations: 48.2 kB / 0.5632 GB, free: 2.168 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.999e-05/0.3078, allocations: 34.66 kB / 0.5632 GB, free: 2.125 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.085e-06/0.3078, allocations: 0 / 0.5632 GB, free: 2.125 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.293e-05/0.3078, allocations: 64.2 kB / 0.5633 GB, free: 2.047 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.31e-07/0.3078, allocations: 0 / 0.5633 GB, free: 2.047 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001987/0.308, allocations: 118.8 kB / 0.5634 GB, free: 1.906 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.978e-05/0.3081, allocations: 81.11 kB / 0.5634 GB, free: 1.809 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.502e-05/0.3081, allocations: 97.75 kB / 0.5635 GB, free: 1.703 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.682e-05/0.3082, allocations: 25.7 kB / 0.5636 GB, free: 1.672 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.58e-05/0.3082, allocations: 80.14 kB / 0.5636 GB, free: 1.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.038e-05/0.3082, allocations: 7.875 kB / 0.5636 GB, free: 1.582 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.256e-05/0.3082, allocations: 17.72 kB / 0.5637 GB, free: 1.559 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.3084, allocations: 310.8 kB / 0.564 GB, free: 1.246 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.356e-05/0.3084, allocations: 25.83 kB / 0.564 GB, free: 1.215 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.525e-05/0.3084, allocations: 37.69 kB / 0.564 GB, free: 1.172 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.545e-05/0.3085, allocations: 56.27 kB / 0.5641 GB, free: 1.102 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.3085, allocations: 4 kB / 0.5641 GB, free: 1.098 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.063e-05/0.3086, allocations: 85.11 kB / 0.5642 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.187e-05/0.3086, allocations: 41.62 kB / 0.5642 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.3086, allocations: 0 / 0.5642 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.3086, allocations: 0 / 0.5642 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-07/0.3086, allocations: 0 / 0.5642 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.231e-06/0.3086, allocations: 3.938 kB / 0.5642 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.513e-05/0.3087, allocations: 4.094 kB / 0.5642 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.997e-06/0.3087, allocations: 4 kB / 0.5642 GB, free: 0.9375 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.309e-05/0.3088, allocations: 132.9 kB / 0.5643 GB, free: 0.793 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.372e-05/0.3088, allocations: 7.938 kB / 0.5643 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.083e-05/0.3088, allocations: 3 kB / 0.5643 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.3088, allocations: 0 / 0.5643 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.3088, allocations: 3.984 kB / 0.5643 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-06/0.3088, allocations: 0 / 0.5643 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.683e-05/0.3089, allocations: 116.8 kB / 0.5645 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.3089, allocations: 4 kB / 0.5645 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-07/0.3089, allocations: 4 kB / 0.5645 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.3089, allocations: 3.938 kB / 0.5645 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.031e-06/0.3089, allocations: 0 / 0.5645 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.3089, allocations: 4 kB / 0.5645 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3089, allocations: 3.938 kB / 0.5645 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001187/0.309, allocations: 116.5 kB / 0.5646 GB, free: 468 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.028e-06/0.309, allocations: 0 / 0.5646 GB, free: 468 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.309, allocations: 7.938 kB / 0.5646 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.056e-06/0.3091, allocations: 0 / 0.5646 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.633e-05/0.3091, allocations: 7.922 kB / 0.5646 GB, free: 452 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.337e-06/0.3091, allocations: 7.969 kB / 0.5646 GB, free: 444 kB / 398.1 MB Notification: Performance of sorting global known variables: time 3.712e-05/0.3091, allocations: 79.28 kB / 0.5647 GB, free: 364 kB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3091, allocations: 0 / 0.5647 GB, free: 364 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002651/0.3094, allocations: 31.94 kB / 0.5647 GB, free: 332 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.001047/0.3104, allocations: 0.8227 MB / 0.5655 GB, free: 15.5 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001329/0.3106, allocations: 110.8 kB / 0.5656 GB, free: 15.37 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3106, allocations: 3.938 kB / 0.5656 GB, free: 15.37 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.197e-05/0.3106, allocations: 85.09 kB / 0.5657 GB, free: 15.27 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001305/0.3107, allocations: 3.938 kB / 0.5657 GB, free: 15.26 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000344/0.3111, allocations: 152.3 kB / 0.5659 GB, free: 15.07 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.618e-05/0.3111, allocations: 59.3 kB / 0.5659 GB, free: 14.99 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.51e-06/0.3111, allocations: 0 / 0.5659 GB, free: 14.99 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.012e-05/0.3112, allocations: 7.562 kB / 0.5659 GB, free: 14.98 MB / 414.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3112, allocations: 7.938 kB / 0.5659 GB, free: 14.97 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0216/0.3327, allocations: 2.001 MB / 0.5679 GB, free: 13.09 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.88, allocations: 11.94 kB / 0.5679 GB, free: 13.07 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.781165951048024]