Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001565/0.001565, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.001696/0.001696, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.451/1.451, allocations: 230.6 MB / 258.3 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2272/0.2272, allocations: 44.9 MB / 359.6 MB, free: 6.297 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002098/0.002098, allocations: 71.89 kB / 0.4943 GB, free: 10.25 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.303/0.3051, allocations: 65.46 MB / 0.5582 GB, free: 7.715 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001651/0.3067, allocations: 495.7 kB / 0.5587 GB, free: 7.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007619/0.3075, allocations: 313.3 kB / 0.559 GB, free: 6.965 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.211e-05/0.3075, allocations: 0 / 0.559 GB, free: 6.965 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.1e-05/0.3075, allocations: 0 / 0.559 GB, free: 6.965 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.59e-06/0.3075, allocations: 0 / 0.559 GB, free: 6.965 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:222:3-288: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.0008333/0.3084, allocations: 95.72 kB / 0.5591 GB, free: 6.871 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.49e-05/0.3084, allocations: 4 kB / 0.5591 GB, free: 6.867 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.101e-05/0.3085, allocations: 3.984 kB / 0.5591 GB, free: 6.863 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.348e-05/0.3085, allocations: 0 / 0.5591 GB, free: 6.863 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.854e-05/0.3085, allocations: 7.938 kB / 0.5591 GB, free: 6.855 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.75e-06/0.3085, allocations: 0 / 0.5591 GB, free: 6.855 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002048/0.3087, allocations: 115.9 kB / 0.5592 GB, free: 6.742 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.345e-06/0.3087, allocations: 3.984 kB / 0.5592 GB, free: 6.738 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.981e-05/0.3087, allocations: 4 kB / 0.5592 GB, free: 6.734 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001756/0.3089, allocations: 91.55 kB / 0.5593 GB, free: 6.648 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.3089, allocations: 0 / 0.5593 GB, free: 6.648 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3089, allocations: 0 / 0.5593 GB, free: 6.648 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.3089, allocations: 0 / 0.5593 GB, free: 6.648 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.0003431/0.3093, allocations: 286.5 kB / 0.5596 GB, free: 6.336 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.3093, allocations: 8.031 kB / 0.5596 GB, free: 6.328 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.178e-05/0.3093, allocations: 4.938 kB / 0.5596 GB, free: 6.324 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.881e-05/0.3094, allocations: 106.5 kB / 0.5597 GB, free: 6.195 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.544e-06/0.3094, allocations: 384 / 0.5597 GB, free: 6.195 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.04e-05/0.3094, allocations: 384 / 0.5597 GB, free: 6.195 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.352e-05/0.3095, allocations: 34.25 kB / 0.5597 GB, free: 6.156 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.3095, allocations: 192 / 0.5597 GB, free: 6.156 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.335e-05/0.3095, allocations: 3.938 kB / 0.5597 GB, free: 6.152 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.537e-06/0.3095, allocations: 0 / 0.5597 GB, free: 6.152 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.739e-05/0.3096, allocations: 3.938 kB / 0.5597 GB, free: 6.148 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001401/0.3097, allocations: 124.8 kB / 0.5599 GB, free: 5.984 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.035e-05/0.3097, allocations: 14.58 kB / 0.5599 GB, free: 5.961 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.591e-05/0.3098, allocations: 8.844 kB / 0.5599 GB, free: 5.949 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.841e-06/0.3098, allocations: 3.984 kB / 0.5599 GB, free: 5.945 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.061e-05/0.3098, allocations: 64.3 kB / 0.5599 GB, free: 5.867 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.3098, allocations: 0 / 0.5599 GB, free: 5.867 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001725/0.31, allocations: 71.28 kB / 0.56 GB, free: 5.785 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.328e-05/0.31, allocations: 81.23 kB / 0.5601 GB, free: 5.688 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.11e-05/0.3101, allocations: 97.8 kB / 0.5602 GB, free: 5.582 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.385e-05/0.3101, allocations: 25.7 kB / 0.5602 GB, free: 5.551 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.864e-05/0.3101, allocations: 80.14 kB / 0.5603 GB, free: 5.469 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.901e-05/0.3102, allocations: 0 / 0.5603 GB, free: 5.469 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.793e-05/0.3102, allocations: 13.72 kB / 0.5603 GB, free: 5.449 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.3103, allocations: 310.8 kB / 0.5606 GB, free: 5.137 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.167e-06/0.3103, allocations: 0 / 0.5606 GB, free: 5.137 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.403e-06/0.3103, allocations: 8 kB / 0.5606 GB, free: 5.129 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.972e-05/0.3104, allocations: 60.27 kB / 0.5607 GB, free: 5.055 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.3104, allocations: 0 / 0.5607 GB, free: 5.055 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.364e-05/0.3105, allocations: 67.33 kB / 0.5607 GB, free: 4.977 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.478e-05/0.3105, allocations: 33.7 kB / 0.5608 GB, free: 4.938 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.3105, allocations: 3.984 kB / 0.5608 GB, free: 4.934 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.3105, allocations: 3.938 kB / 0.5608 GB, free: 4.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-07/0.3105, allocations: 3.938 kB / 0.5608 GB, free: 4.926 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.917e-06/0.3105, allocations: 0 / 0.5608 GB, free: 4.926 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.41e-05/0.3106, allocations: 4.094 kB / 0.5608 GB, free: 4.922 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.12e-06/0.3106, allocations: 0 / 0.5608 GB, free: 4.922 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.877e-05/0.3107, allocations: 147.5 kB / 0.5609 GB, free: 4.762 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.675e-06/0.3107, allocations: 0 / 0.5609 GB, free: 4.762 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.165e-05/0.3107, allocations: 6.938 kB / 0.5609 GB, free: 4.754 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.3107, allocations: 0 / 0.5609 GB, free: 4.754 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.3107, allocations: 4 kB / 0.5609 GB, free: 4.75 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.694e-06/0.3107, allocations: 0 / 0.5609 GB, free: 4.75 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.145e-05/0.3108, allocations: 116.8 kB / 0.561 GB, free: 4.594 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.3108, allocations: 7.984 kB / 0.561 GB, free: 4.586 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.3108, allocations: 0 / 0.561 GB, free: 4.586 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.3108, allocations: 0 / 0.561 GB, free: 4.586 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.006e-06/0.3108, allocations: 7.938 kB / 0.561 GB, free: 4.578 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.3108, allocations: 4 kB / 0.561 GB, free: 4.574 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3108, allocations: 0 / 0.561 GB, free: 4.574 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001029/0.3109, allocations: 94.77 kB / 0.5611 GB, free: 4.457 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.888e-06/0.3109, allocations: 3.938 kB / 0.5611 GB, free: 4.453 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.316e-05/0.3109, allocations: 7.969 kB / 0.5612 GB, free: 4.445 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.366e-06/0.3109, allocations: 0 / 0.5612 GB, free: 4.445 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.343e-05/0.3109, allocations: 4 kB / 0.5612 GB, free: 4.441 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-06/0.3109, allocations: 0 / 0.5612 GB, free: 4.441 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.526e-05/0.311, allocations: 75.28 kB / 0.5612 GB, free: 4.367 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.311, allocations: 0 / 0.5612 GB, free: 4.367 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002491/0.3112, allocations: 39.86 kB / 0.5613 GB, free: 4.328 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.0006662/0.3119, allocations: 271.1 kB / 0.5615 GB, free: 4.109 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001056/0.312, allocations: 63.39 kB / 0.5616 GB, free: 4.035 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.312, allocations: 0 / 0.5616 GB, free: 4.035 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.866e-05/0.312, allocations: 55.34 kB / 0.5616 GB, free: 3.969 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000123/0.3122, allocations: 4.125 kB / 0.5616 GB, free: 3.965 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002746/0.3124, allocations: 114.7 kB / 0.5617 GB, free: 3.82 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003695/0.3128, allocations: 0.6729 MB / 0.5624 GB, free: 3.121 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.628e-05/0.3128, allocations: 7.438 kB / 0.5624 GB, free: 3.113 MB / 398.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3128, allocations: 0 / 0.5624 GB, free: 3.113 MB / 398.1 MB Notification: Performance of Templates: time 0.003279/0.3161, allocations: 1.148 MB / 0.5635 GB, free: 1.965 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 7.839957353193313]