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.002009/0.002009, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002341/0.002341, allocations: 211 kB / 23.73 MB, free: 4.387 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.553/1.553, allocations: 230.6 MB / 257.5 MB, free: 7.762 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.2355/0.2355, allocations: 46.96 MB / 360.9 MB, free: 4.02 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.00262/0.00262, allocations: 71.88 kB / 0.4961 GB, free: 7.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3719/0.3745, allocations: 66.03 MB / 0.5606 GB, free: 4.242 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.002476/0.377, allocations: 491.7 kB / 0.561 GB, free: 3.762 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001172/0.3781, allocations: 301.5 kB / 0.5613 GB, free: 3.469 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.017e-05/0.3782, allocations: 0 / 0.5613 GB, free: 3.469 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.616e-05/0.3782, allocations: 3.938 kB / 0.5613 GB, free: 3.465 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.879e-06/0.3782, allocations: 0 / 0.5613 GB, free: 3.465 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.00149/0.3797, allocations: 93.95 kB / 0.5614 GB, free: 3.375 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 8.6e-05/0.3798, allocations: 0 / 0.5614 GB, free: 3.375 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.386e-05/0.3799, allocations: 4 kB / 0.5614 GB, free: 3.371 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.346e-05/0.3799, allocations: 7.938 kB / 0.5614 GB, free: 3.363 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.77e-05/0.3799, allocations: 3.984 kB / 0.5614 GB, free: 3.359 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.594e-06/0.3799, allocations: 0 / 0.5614 GB, free: 3.359 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003074/0.3802, allocations: 111.8 kB / 0.5615 GB, free: 3.25 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.094e-05/0.3802, allocations: 3.938 kB / 0.5615 GB, free: 3.246 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.154e-05/0.3803, allocations: 4 kB / 0.5615 GB, free: 3.242 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002746/0.3805, allocations: 81.64 kB / 0.5616 GB, free: 3.168 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.3805, allocations: 0 / 0.5616 GB, free: 3.168 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3805, allocations: 0 / 0.5616 GB, free: 3.168 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.3806, allocations: 0 / 0.5616 GB, free: 3.168 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.0004574/0.381, allocations: 291.9 kB / 0.5619 GB, free: 2.844 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.3811, allocations: 12.03 kB / 0.5619 GB, free: 2.832 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.12e-05/0.3811, allocations: 30.75 kB / 0.5619 GB, free: 2.793 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.794e-05/0.3811, allocations: 0.9375 kB / 0.5619 GB, free: 2.793 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001306/0.3813, allocations: 106.5 kB / 0.562 GB, free: 2.664 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.494e-05/0.3813, allocations: 4.375 kB / 0.5621 GB, free: 2.66 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.304e-06/0.3813, allocations: 384 / 0.5621 GB, free: 2.66 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000134/0.3814, allocations: 59.91 kB / 0.5621 GB, free: 2.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.3814, allocations: 3.938 kB / 0.5621 GB, free: 2.586 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.3814, allocations: 4 kB / 0.5621 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.3814, allocations: 0 / 0.5621 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.805e-05/0.3815, allocations: 29.7 kB / 0.5621 GB, free: 2.547 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002017/0.3817, allocations: 124.7 kB / 0.5623 GB, free: 2.383 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.457e-05/0.3818, allocations: 40.28 kB / 0.5623 GB, free: 2.328 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.605e-05/0.3818, allocations: 38.66 kB / 0.5623 GB, free: 2.281 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.632e-06/0.3818, allocations: 0 / 0.5623 GB, free: 2.281 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.749e-05/0.3819, allocations: 60.2 kB / 0.5624 GB, free: 2.207 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.222e-06/0.3819, allocations: 0 / 0.5624 GB, free: 2.207 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0003143/0.3822, allocations: 118.7 kB / 0.5625 GB, free: 2.066 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.332e-05/0.3823, allocations: 81.11 kB / 0.5626 GB, free: 1.969 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.453e-05/0.3824, allocations: 97.94 kB / 0.5627 GB, free: 1.863 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.3824, allocations: 29.7 kB / 0.5627 GB, free: 1.828 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.896e-05/0.3825, allocations: 80.14 kB / 0.5628 GB, free: 1.746 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.859e-05/0.3825, allocations: 3.938 kB / 0.5628 GB, free: 1.742 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.303e-05/0.3825, allocations: 13.72 kB / 0.5628 GB, free: 1.723 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002218/0.3828, allocations: 314.8 kB / 0.5631 GB, free: 1.406 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.554e-05/0.3828, allocations: 25.7 kB / 0.5631 GB, free: 1.375 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.219e-05/0.3828, allocations: 29.7 kB / 0.5632 GB, free: 1.34 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.882e-05/0.3829, allocations: 76.14 kB / 0.5632 GB, free: 1.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.3829, allocations: 0 / 0.5632 GB, free: 1.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001545/0.3831, allocations: 93.16 kB / 0.5633 GB, free: 1.141 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.605e-05/0.3831, allocations: 29.7 kB / 0.5633 GB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.3831, allocations: 3.938 kB / 0.5633 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.496e-05/0.3832, allocations: 3.984 kB / 0.5634 GB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.094e-06/0.3832, allocations: 0 / 0.5634 GB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.3832, allocations: 0 / 0.5634 GB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.728e-05/0.3832, allocations: 7.938 kB / 0.5634 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.849e-06/0.3832, allocations: 0 / 0.5634 GB, free: 1.09 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.0001557/0.3834, allocations: 135.5 kB / 0.5635 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.09e-05/0.3834, allocations: 4 kB / 0.5635 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.186e-05/0.3834, allocations: 14.95 kB / 0.5635 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.3834, allocations: 0 / 0.5635 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.3834, allocations: 0 / 0.5635 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.3834, allocations: 3.938 kB / 0.5635 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001541/0.3836, allocations: 116.8 kB / 0.5636 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.81e-07/0.3836, allocations: 0 / 0.5636 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.11e-07/0.3836, allocations: 0 / 0.5636 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.3836, allocations: 0 / 0.5636 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.3836, allocations: 3.938 kB / 0.5636 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.3836, allocations: 0 / 0.5636 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.627e-05/0.3836, allocations: 3.984 kB / 0.5636 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002052/0.3838, allocations: 116.5 kB / 0.5637 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.578e-06/0.3838, allocations: 4 kB / 0.5637 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.166e-05/0.3838, allocations: 7.922 kB / 0.5638 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.389e-05/0.3838, allocations: 0 / 0.5638 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.845e-05/0.3839, allocations: 4 kB / 0.5638 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.321e-06/0.3839, allocations: 4 kB / 0.5638 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.598e-05/0.3839, allocations: 75.28 kB / 0.5638 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3839, allocations: 0 / 0.5638 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004345/0.3844, allocations: 27.94 kB / 0.5639 GB, free: 500 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.001422/0.3858, allocations: 0.843 MB / 0.5647 GB, free: 15.67 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001875/0.386, allocations: 114.8 kB / 0.5648 GB, free: 15.53 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.386, allocations: 0 / 0.5648 GB, free: 15.53 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.829e-05/0.386, allocations: 81.17 kB / 0.5649 GB, free: 15.43 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002152/0.3862, allocations: 10.88 kB / 0.5649 GB, free: 15.43 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004865/0.3867, allocations: 148.3 kB / 0.565 GB, free: 15.23 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.3e-05/0.3868, allocations: 55.36 kB / 0.5651 GB, free: 15.16 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.605e-06/0.3868, allocations: 0 / 0.5651 GB, free: 15.16 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.088e-05/0.3868, allocations: 7.438 kB / 0.5651 GB, free: 15.15 MB / 414.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3868, allocations: 0 / 0.5651 GB, free: 15.15 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0312/0.418, allocations: 2.35 MB / 0.5674 GB, free: 12.93 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.6, allocations: 15 kB / 0.5674 GB, free: 12.91 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.548078188207]