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.001808/0.001808, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.002295/0.002295, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.426/1.426, allocations: 230.6 MB / 258.3 MB, free: 7.992 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.2323/0.2323, allocations: 46.92 MB / 361.6 MB, free: 4.281 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.00203/0.00203, allocations: 71.89 kB / 0.4969 GB, free: 7.926 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3157/0.3178, allocations: 66.03 MB / 0.5614 GB, free: 4.453 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.00164/0.3194, allocations: 488.9 kB / 0.5619 GB, free: 3.973 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007743/0.3202, allocations: 309.5 kB / 0.5622 GB, free: 3.672 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.821e-05/0.3202, allocations: 4 kB / 0.5622 GB, free: 3.668 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.262e-05/0.3202, allocations: 0 / 0.5622 GB, free: 3.668 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.63e-06/0.3202, allocations: 0 / 0.5622 GB, free: 3.668 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.0008597/0.3211, allocations: 98.38 kB / 0.5623 GB, free: 3.574 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.513e-05/0.3211, allocations: 0 / 0.5623 GB, free: 3.574 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.721e-05/0.3211, allocations: 0 / 0.5623 GB, free: 3.574 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.345e-05/0.3212, allocations: 4 kB / 0.5623 GB, free: 3.57 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.765e-05/0.3212, allocations: 7.922 kB / 0.5623 GB, free: 3.562 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.791e-06/0.3212, allocations: 0 / 0.5623 GB, free: 3.562 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002195/0.3214, allocations: 115.9 kB / 0.5624 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.601e-06/0.3214, allocations: 0 / 0.5624 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.954e-05/0.3214, allocations: 4 kB / 0.5624 GB, free: 3.445 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001719/0.3216, allocations: 93.66 kB / 0.5625 GB, free: 3.359 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.3216, allocations: 0 / 0.5625 GB, free: 3.359 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3216, allocations: 0 / 0.5625 GB, free: 3.359 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.3216, allocations: 0 / 0.5625 GB, free: 3.359 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.0003455/0.322, allocations: 288 kB / 0.5627 GB, free: 3.039 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.322, allocations: 12.03 kB / 0.5628 GB, free: 3.027 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.849e-05/0.322, allocations: 4.172 kB / 0.5628 GB, free: 3.023 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.496e-05/0.322, allocations: 30.75 kB / 0.5628 GB, free: 2.984 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.384e-05/0.3221, allocations: 4.938 kB / 0.5628 GB, free: 2.98 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.25e-05/0.3221, allocations: 102.5 kB / 0.5629 GB, free: 2.855 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.925e-06/0.3221, allocations: 384 / 0.5629 GB, free: 2.855 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.566e-06/0.3222, allocations: 4.375 kB / 0.5629 GB, free: 2.852 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.494e-05/0.3222, allocations: 30.02 kB / 0.5629 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.425e-06/0.3223, allocations: 0 / 0.5629 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.813e-06/0.3223, allocations: 0 / 0.5629 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.534e-05/0.3223, allocations: 4 kB / 0.5629 GB, free: 2.812 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.822e-05/0.3223, allocations: 3.938 kB / 0.5629 GB, free: 2.809 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001287/0.3224, allocations: 124.8 kB / 0.5631 GB, free: 2.645 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.667e-05/0.3225, allocations: 22.55 kB / 0.5631 GB, free: 2.613 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.343e-05/0.3225, allocations: 4.859 kB / 0.5631 GB, free: 2.605 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.007e-06/0.3225, allocations: 0 / 0.5631 GB, free: 2.605 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.005e-05/0.3225, allocations: 60.2 kB / 0.5631 GB, free: 2.531 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.61e-07/0.3225, allocations: 64 / 0.5631 GB, free: 2.531 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001681/0.3227, allocations: 71.45 kB / 0.5632 GB, free: 2.449 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.189e-05/0.3228, allocations: 85.11 kB / 0.5633 GB, free: 2.348 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.93e-05/0.3228, allocations: 93.81 kB / 0.5634 GB, free: 2.246 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.522e-05/0.3228, allocations: 25.7 kB / 0.5634 GB, free: 2.215 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.338e-05/0.3229, allocations: 80.14 kB / 0.5635 GB, free: 2.133 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.002e-05/0.3229, allocations: 3.938 kB / 0.5635 GB, free: 2.129 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.049e-05/0.3229, allocations: 17.72 kB / 0.5635 GB, free: 2.105 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.3231, allocations: 310.8 kB / 0.5638 GB, free: 1.793 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.041e-05/0.3231, allocations: 0 / 0.5638 GB, free: 1.793 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.105e-06/0.3231, allocations: 7.984 kB / 0.5638 GB, free: 1.785 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.669e-05/0.3231, allocations: 64.27 kB / 0.5639 GB, free: 1.707 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3231, allocations: 0 / 0.5639 GB, free: 1.707 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.496e-05/0.3232, allocations: 67.34 kB / 0.5639 GB, free: 1.629 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.641e-05/0.3233, allocations: 33.64 kB / 0.564 GB, free: 1.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.3233, allocations: 7.922 kB / 0.564 GB, free: 1.582 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.3233, allocations: 4 kB / 0.564 GB, free: 1.578 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.01e-07/0.3233, allocations: 0 / 0.564 GB, free: 1.578 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.3233, allocations: 4.094 kB / 0.564 GB, free: 1.574 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.54e-05/0.3233, allocations: 0 / 0.564 GB, free: 1.574 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.259e-06/0.3233, allocations: 0 / 0.564 GB, free: 1.574 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.282e-05/0.3234, allocations: 135.5 kB / 0.5641 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.738e-06/0.3234, allocations: 3.938 kB / 0.5641 GB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.237e-05/0.3234, allocations: 3 kB / 0.5641 GB, free: 1.418 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.3234, allocations: 0 / 0.5641 GB, free: 1.418 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.3234, allocations: 3.984 kB / 0.5641 GB, free: 1.414 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.3234, allocations: 0 / 0.5641 GB, free: 1.414 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001026/0.3235, allocations: 124.8 kB / 0.5642 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.3235, allocations: 0 / 0.5642 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.3235, allocations: 0 / 0.5642 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.3235, allocations: 3.938 kB / 0.5642 GB, free: 1.246 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.573e-06/0.3236, allocations: 0 / 0.5642 GB, free: 1.246 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.51e-07/0.3236, allocations: 3.938 kB / 0.5642 GB, free: 1.242 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.3236, allocations: 4 kB / 0.5642 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001128/0.3237, allocations: 94.77 kB / 0.5643 GB, free: 1.121 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.59e-06/0.3237, allocations: 8.031 kB / 0.5643 GB, free: 1.113 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.308e-05/0.3237, allocations: 3.938 kB / 0.5643 GB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.546e-06/0.3237, allocations: 0 / 0.5643 GB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.556e-06/0.3237, allocations: 0 / 0.5643 GB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.474e-06/0.3237, allocations: 0 / 0.5643 GB, free: 1.109 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.447e-05/0.3237, allocations: 79.28 kB / 0.5644 GB, free: 1.031 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3237, allocations: 0 / 0.5644 GB, free: 1.031 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002443/0.324, allocations: 31.92 kB / 0.5645 GB, free: 1 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.0009609/0.3249, allocations: 0.7948 MB / 0.5652 GB, free: 228 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001008/0.325, allocations: 63.41 kB / 0.5653 GB, free: 152 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.353e-06/0.325, allocations: 0 / 0.5653 GB, free: 152 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.74e-05/0.3251, allocations: 55.41 kB / 0.5653 GB, free: 84 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001159/0.3252, allocations: 0 / 0.5653 GB, free: 84 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003363/0.3255, allocations: 126.6 kB / 0.5655 GB, free: 15.92 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002991/0.3258, allocations: 0.669 MB / 0.5661 GB, free: 15.22 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.869e-06/0.3258, allocations: 0 / 0.5661 GB, free: 15.22 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.755e-05/0.3259, allocations: 15.42 kB / 0.5661 GB, free: 15.21 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3259, allocations: 4.125 kB / 0.5661 GB, free: 15.2 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02111/0.347, allocations: 1.983 MB / 0.5681 GB, free: 13.36 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.71, allocations: 17.56 kB / 0.5681 GB, free: 13.35 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.577288436004892]