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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001725/0.001725, allocations: 106.2 kB / 19.81 MB, free: 2.516 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001457/0.001457, allocations: 192.6 kB / 22.98 MB, free: 5.613 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.476/1.476, allocations: 225.6 MB / 251.6 MB, free: 13.35 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.2284/0.2284, allocations: 44.92 MB / 351.6 MB, free: 12.27 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001965/0.001965, allocations: 59.91 kB / 495.2 MB, free: 1.941 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3831/0.3851, allocations: 64.26 MB / 0.5464 GB, free: 13.24 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.002015/0.3871, allocations: 495 kB / 0.5468 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008726/0.388, allocations: 314.4 kB / 0.5471 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.511e-05/0.388, allocations: 3.938 kB / 0.5471 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.464e-05/0.388, allocations: 1.25 kB / 0.5471 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.202e-06/0.388, allocations: 0 / 0.5471 GB, free: 12.65 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.0009564/0.389, allocations: 98.89 kB / 0.5472 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.473e-05/0.389, allocations: 8.875 kB / 0.5472 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.901e-05/0.3891, allocations: 0.9688 kB / 0.5472 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.678e-05/0.3891, allocations: 1.094 kB / 0.5472 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.49e-05/0.3891, allocations: 1.125 kB / 0.5472 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.991e-06/0.3891, allocations: 0 / 0.5472 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002261/0.3893, allocations: 105.5 kB / 0.5473 GB, free: 12.53 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.3e-05/0.3894, allocations: 5.203 kB / 0.5473 GB, free: 12.53 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.437e-05/0.3894, allocations: 4 kB / 0.5473 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002211/0.3896, allocations: 83.08 kB / 0.5474 GB, free: 12.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3896, allocations: 0 / 0.5474 GB, free: 12.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.3896, allocations: 5.5 kB / 0.5474 GB, free: 12.47 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.3896, allocations: 0 / 0.5474 GB, free: 12.47 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.0004395/0.3901, allocations: 361.7 kB / 0.5478 GB, free: 12.08 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.3901, allocations: 10.72 kB / 0.5478 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.14e-05/0.3902, allocations: 8.922 kB / 0.5478 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001916/0.3903, allocations: 164.3 kB / 0.548 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.559e-05/0.3904, allocations: 1.375 kB / 0.548 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.167e-05/0.3904, allocations: 5.547 kB / 0.548 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.804e-05/0.3905, allocations: 28.36 kB / 0.548 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.3905, allocations: 4.188 kB / 0.548 GB, free: 11.83 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.132e-05/0.3905, allocations: 5.375 kB / 0.548 GB, free: 11.83 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.3905, allocations: 0 / 0.548 GB, free: 11.83 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.824e-05/0.3905, allocations: 1.406 kB / 0.548 GB, free: 11.83 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001708/0.3907, allocations: 151.1 kB / 0.5481 GB, free: 11.63 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.542e-05/0.3907, allocations: 19.98 kB / 0.5482 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.622e-05/0.3907, allocations: 6.359 kB / 0.5482 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.088e-05/0.3908, allocations: 4 kB / 0.5482 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.092e-05/0.3908, allocations: 57.45 kB / 0.5482 GB, free: 11.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.21e-07/0.3908, allocations: 0 / 0.5482 GB, free: 11.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001997/0.391, allocations: 71.23 kB / 0.5483 GB, free: 11.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.19e-05/0.3911, allocations: 78.58 kB / 0.5484 GB, free: 11.36 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.469e-05/0.3911, allocations: 93.8 kB / 0.5485 GB, free: 11.25 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.57e-05/0.3911, allocations: 29.64 kB / 0.5485 GB, free: 11.22 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.852e-05/0.3912, allocations: 80.14 kB / 0.5486 GB, free: 11.14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.969e-05/0.3912, allocations: 5.5 kB / 0.5486 GB, free: 11.13 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.74e-05/0.3912, allocations: 11.38 kB / 0.5486 GB, free: 11.12 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.3914, allocations: 316.2 kB / 0.5489 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.077e-05/0.3914, allocations: 0 / 0.5489 GB, free: 10.8 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.746e-06/0.3914, allocations: 5.297 kB / 0.5489 GB, free: 10.8 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.376e-05/0.3914, allocations: 60.11 kB / 0.5489 GB, free: 10.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3914, allocations: 0 / 0.5489 GB, free: 10.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.336e-05/0.3915, allocations: 66.5 kB / 0.549 GB, free: 10.66 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.831e-05/0.3916, allocations: 30.48 kB / 0.549 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.3916, allocations: 1.125 kB / 0.549 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/0.3916, allocations: 7.922 kB / 0.549 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.67e-06/0.3916, allocations: 4.75 kB / 0.549 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.81e-06/0.3916, allocations: 0 / 0.549 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.767e-05/0.3916, allocations: 1.156 kB / 0.549 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.675e-06/0.3916, allocations: 1.062 kB / 0.5491 GB, free: 10.61 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.568e-05/0.3917, allocations: 138.7 kB / 0.5492 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.618e-06/0.3917, allocations: 9.016 kB / 0.5492 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.524e-05/0.3917, allocations: 11.02 kB / 0.5492 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.3917, allocations: 0 / 0.5492 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.3917, allocations: 1.125 kB / 0.5492 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.3917, allocations: 0 / 0.5492 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000116/0.3919, allocations: 147.9 kB / 0.5493 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3919, allocations: 0 / 0.5493 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.92e-07/0.3919, allocations: 0 / 0.5493 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.3919, allocations: 1.156 kB / 0.5493 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.3919, allocations: 3.938 kB / 0.5493 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.3919, allocations: 0.9688 kB / 0.5493 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.3919, allocations: 4 kB / 0.5494 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001099/0.392, allocations: 97.88 kB / 0.5494 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.811e-05/0.392, allocations: 78.58 kB / 0.5495 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.539e-05/0.392, allocations: 7.875 kB / 0.5495 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.436e-06/0.3921, allocations: 1.406 kB / 0.5495 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.908e-06/0.3921, allocations: 0 / 0.5495 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.819e-06/0.3921, allocations: 9.297 kB / 0.5495 GB, free: 10.03 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.968e-05/0.3921, allocations: 83.31 kB / 0.5496 GB, free: 9.945 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3921, allocations: 0 / 0.5496 GB, free: 9.945 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002581/0.3924, allocations: 32.28 kB / 0.5496 GB, free: 9.938 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.0007739/0.3931, allocations: 281.1 kB / 0.5499 GB, free: 9.773 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001268/0.3933, allocations: 56.75 kB / 0.55 GB, free: 9.711 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3933, allocations: 0 / 0.55 GB, free: 9.711 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.241e-05/0.3933, allocations: 54.69 kB / 0.55 GB, free: 9.648 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001279/0.3934, allocations: 1.906 kB / 0.55 GB, free: 9.648 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002424/0.3937, allocations: 87.44 kB / 0.5501 GB, free: 9.547 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003502/0.394, allocations: 0.6855 MB / 0.5508 GB, free: 8.836 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.754e-06/0.394, allocations: 1.094 kB / 0.5508 GB, free: 8.836 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.658e-05/0.3941, allocations: 7.438 kB / 0.5508 GB, free: 8.828 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3941, allocations: 1.094 kB / 0.5508 GB, free: 8.828 MB / 398.1 MB Notification: Performance of Templates: time 0.004648/0.3987, allocations: 0.9798 MB / 0.5517 GB, free: 8.309 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins/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: 5.165519465692341]