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.001832/0.001832, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.00272/0.00272, allocations: 217.2 kB / 23.75 MB, free: 4.668 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.753/1.753, allocations: 230.6 MB / 257.5 MB, free: 7.984 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.2483/0.2483, allocations: 46.93 MB / 360.8 MB, free: 4.273 MB / 286.1 MB " [Timeout remaining time 179] 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: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002168/0.002168, allocations: 67.89 kB / 0.4966 GB, free: 7.438 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.409/0.4112, allocations: 66.04 MB / 0.5611 GB, free: 4.414 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.003081/0.4143, allocations: 485 kB / 0.5616 GB, free: 3.938 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00127/0.4155, allocations: 321.2 kB / 0.5619 GB, free: 3.625 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.204e-05/0.4155, allocations: 8 kB / 0.5619 GB, free: 3.617 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.306e-05/0.4156, allocations: 0 / 0.5619 GB, free: 3.617 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.228e-06/0.4156, allocations: 0 / 0.5619 GB, free: 3.617 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.001339/0.4169, allocations: 101.2 kB / 0.562 GB, free: 3.523 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.846e-05/0.417, allocations: 0 / 0.562 GB, free: 3.523 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.767e-05/0.417, allocations: 0 / 0.562 GB, free: 3.523 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.444e-05/0.417, allocations: 4 kB / 0.562 GB, free: 3.52 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.651e-05/0.4171, allocations: 3.984 kB / 0.562 GB, free: 3.516 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.726e-06/0.4171, allocations: 0 / 0.562 GB, free: 3.516 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005508/0.4176, allocations: 111.9 kB / 0.5621 GB, free: 3.406 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.319e-05/0.4176, allocations: 4 kB / 0.5621 GB, free: 3.402 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.928e-05/0.4177, allocations: 4 kB / 0.5621 GB, free: 3.398 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002737/0.418, allocations: 91.59 kB / 0.5622 GB, free: 3.312 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.418, allocations: 0 / 0.5622 GB, free: 3.312 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.418, allocations: 0 / 0.5622 GB, free: 3.312 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.418, allocations: 0 / 0.5622 GB, free: 3.312 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.0004525/0.4184, allocations: 286.5 kB / 0.5625 GB, free: 3 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.4185, allocations: 11.97 kB / 0.5625 GB, free: 2.988 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.639e-05/0.4185, allocations: 0.9375 kB / 0.5625 GB, free: 2.988 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001015/0.4186, allocations: 110.5 kB / 0.5626 GB, free: 2.855 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.746e-05/0.4186, allocations: 4.312 kB / 0.5626 GB, free: 2.852 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.384e-05/0.4186, allocations: 4.375 kB / 0.5626 GB, free: 2.848 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000108/0.4187, allocations: 30.27 kB / 0.5626 GB, free: 2.812 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.4187, allocations: 192 / 0.5626 GB, free: 2.812 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.366e-05/0.4188, allocations: 3.938 kB / 0.5626 GB, free: 2.809 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.4188, allocations: 0 / 0.5626 GB, free: 2.809 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.189e-05/0.4188, allocations: 0 / 0.5626 GB, free: 2.809 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001644/0.419, allocations: 120.8 kB / 0.5627 GB, free: 2.648 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.423e-05/0.419, allocations: 26.52 kB / 0.5628 GB, free: 2.613 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.035e-05/0.419, allocations: 8.953 kB / 0.5628 GB, free: 2.602 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.044e-05/0.4191, allocations: 0 / 0.5628 GB, free: 2.602 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.242e-05/0.4191, allocations: 56.27 kB / 0.5628 GB, free: 2.531 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.242e-06/0.4191, allocations: 3.938 kB / 0.5628 GB, free: 2.527 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002243/0.4193, allocations: 71.31 kB / 0.5629 GB, free: 2.445 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.599e-05/0.4194, allocations: 77.11 kB / 0.563 GB, free: 2.352 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.912e-05/0.4195, allocations: 97.94 kB / 0.5631 GB, free: 2.246 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.4195, allocations: 29.7 kB / 0.5631 GB, free: 2.211 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.148e-05/0.4195, allocations: 80.14 kB / 0.5632 GB, free: 2.129 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.536e-05/0.4196, allocations: 4 kB / 0.5632 GB, free: 2.125 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.048e-05/0.4196, allocations: 9.719 kB / 0.5632 GB, free: 2.109 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.4198, allocations: 310.8 kB / 0.5635 GB, free: 1.797 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.499e-05/0.4198, allocations: 7.938 kB / 0.5635 GB, free: 1.789 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.053e-05/0.4198, allocations: 3.984 kB / 0.5635 GB, free: 1.785 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.514e-05/0.4199, allocations: 68.33 kB / 0.5635 GB, free: 1.703 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.4199, allocations: 0 / 0.5635 GB, free: 1.703 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001046/0.42, allocations: 59.41 kB / 0.5636 GB, free: 1.633 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.016e-05/0.42, allocations: 33.7 kB / 0.5636 GB, free: 1.594 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.42, allocations: 3.984 kB / 0.5636 GB, free: 1.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.983e-05/0.4201, allocations: 3.938 kB / 0.5636 GB, free: 1.586 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.022e-06/0.4201, allocations: 0 / 0.5636 GB, free: 1.586 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.4201, allocations: 0 / 0.5636 GB, free: 1.586 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.12e-05/0.4201, allocations: 0 / 0.5636 GB, free: 1.586 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/0.4201, allocations: 4 kB / 0.5636 GB, free: 1.582 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.0001252/0.4202, allocations: 143.5 kB / 0.5638 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.066e-05/0.4202, allocations: 0 / 0.5638 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.838e-05/0.4203, allocations: 10.94 kB / 0.5638 GB, free: 1.414 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.4203, allocations: 0 / 0.5638 GB, free: 1.414 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.4203, allocations: 0 / 0.5638 GB, free: 1.414 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.4203, allocations: 0 / 0.5638 GB, free: 1.414 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000133/0.4204, allocations: 124.7 kB / 0.5639 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.4204, allocations: 4 kB / 0.5639 GB, free: 1.246 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-07/0.4204, allocations: 0 / 0.5639 GB, free: 1.246 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.4204, allocations: 4 kB / 0.5639 GB, free: 1.242 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.1e-05/0.4204, allocations: 3.938 kB / 0.5639 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.4204, allocations: 0 / 0.5639 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.4204, allocations: 0 / 0.5639 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001527/0.4206, allocations: 90.83 kB / 0.564 GB, free: 1.125 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.051e-06/0.4206, allocations: 0 / 0.564 GB, free: 1.125 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.985e-05/0.4206, allocations: 7.875 kB / 0.564 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.864e-05/0.4206, allocations: 4 kB / 0.564 GB, free: 1.113 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.966e-05/0.4206, allocations: 4.031 kB / 0.564 GB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.597e-06/0.4206, allocations: 3.938 kB / 0.564 GB, free: 1.105 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.474e-05/0.4207, allocations: 75.28 kB / 0.5641 GB, free: 1.031 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4207, allocations: 0 / 0.5641 GB, free: 1.031 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004145/0.4211, allocations: 39.86 kB / 0.5641 GB, free: 0.9922 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.0008533/0.422, allocations: 272.8 kB / 0.5644 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001413/0.4221, allocations: 59.41 kB / 0.5645 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4221, allocations: 0 / 0.5645 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001542/0.4223, allocations: 55.41 kB / 0.5645 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001978/0.4225, allocations: 0 / 0.5645 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002423/0.4227, allocations: 85.11 kB / 0.5646 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004359/0.4231, allocations: 0.6729 MB / 0.5652 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.935e-06/0.4231, allocations: 0 / 0.5652 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.998e-05/0.4232, allocations: 11.44 kB / 0.5653 GB, free: 15.81 MB / 414.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4232, allocations: 0 / 0.5653 GB, free: 15.81 MB / 414.1 MB Notification: Performance of Templates: time 0.005568/0.4287, allocations: 0.9918 MB / 0.5662 GB, free: 14.82 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.makefile [Timeout 660] (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 & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins/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: 5.724679907085374]