Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001644/0.001644, allocations: 109.1 kB / 21.85 MB, free: 60 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001993/0.001993, allocations: 216.3 kB / 25.13 MB, free: 3.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 230.4 MB / 258.7 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.227/0.227, allocations: 46.94 MB / 362 MB, free: 4.223 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-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002189/0.002189, allocations: 79.86 kB / 0.4978 GB, free: 7.398 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3159/0.3181, allocations: 66.07 MB / 0.5623 GB, free: 4.262 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001502/0.3196, allocations: 491.7 kB / 0.5628 GB, free: 3.785 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006805/0.3203, allocations: 317.3 kB / 0.5631 GB, free: 3.477 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.599e-05/0.3203, allocations: 4 kB / 0.5631 GB, free: 3.473 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.294e-05/0.3203, allocations: 0 / 0.5631 GB, free: 3.473 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.07e-06/0.3203, allocations: 0 / 0.5631 GB, free: 3.473 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.0007533/0.3211, allocations: 97.72 kB / 0.5632 GB, free: 3.383 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.969e-05/0.3211, allocations: 3.984 kB / 0.5632 GB, free: 3.379 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.346e-05/0.3212, allocations: 7.984 kB / 0.5632 GB, free: 3.371 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.142e-05/0.3212, allocations: 0 / 0.5632 GB, free: 3.371 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.519e-05/0.3212, allocations: 0 / 0.5632 GB, free: 3.371 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.099e-06/0.3212, allocations: 0 / 0.5632 GB, free: 3.371 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002027/0.3214, allocations: 111.9 kB / 0.5633 GB, free: 3.262 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.962e-06/0.3214, allocations: 0 / 0.5633 GB, free: 3.262 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.692e-05/0.3214, allocations: 8 kB / 0.5633 GB, free: 3.254 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001622/0.3216, allocations: 87.59 kB / 0.5634 GB, free: 3.172 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.3216, allocations: 0 / 0.5634 GB, free: 3.172 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3216, allocations: 0 / 0.5634 GB, free: 3.172 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.3216, allocations: 0 / 0.5634 GB, free: 3.172 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.0003077/0.3219, allocations: 286.5 kB / 0.5636 GB, free: 2.859 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.231e-05/0.3219, allocations: 12.03 kB / 0.5637 GB, free: 2.848 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.741e-05/0.322, allocations: 8.875 kB / 0.5637 GB, free: 2.84 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.161e-05/0.3221, allocations: 106.5 kB / 0.5638 GB, free: 2.711 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.098e-05/0.3221, allocations: 4.375 kB / 0.5638 GB, free: 2.707 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.423e-05/0.3221, allocations: 4.375 kB / 0.5638 GB, free: 2.703 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.656e-05/0.3222, allocations: 55.95 kB / 0.5638 GB, free: 2.637 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.3222, allocations: 192 / 0.5638 GB, free: 2.637 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.277e-06/0.3222, allocations: 3.938 kB / 0.5638 GB, free: 2.633 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.3222, allocations: 4 kB / 0.5638 GB, free: 2.629 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.895e-05/0.3222, allocations: 29.7 kB / 0.5639 GB, free: 2.594 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001179/0.3224, allocations: 112.8 kB / 0.564 GB, free: 2.441 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.901e-05/0.3224, allocations: 56.23 kB / 0.564 GB, free: 2.371 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.242e-05/0.3224, allocations: 34.56 kB / 0.5641 GB, free: 2.328 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.053e-06/0.3225, allocations: 3.938 kB / 0.5641 GB, free: 2.324 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.524e-05/0.3225, allocations: 60.33 kB / 0.5641 GB, free: 2.25 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.3225, allocations: 0 / 0.5641 GB, free: 2.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001709/0.3227, allocations: 118.7 kB / 0.5642 GB, free: 2.109 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.405e-05/0.3227, allocations: 77.11 kB / 0.5643 GB, free: 2.016 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.779e-05/0.3228, allocations: 101.9 kB / 0.5644 GB, free: 1.906 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.269e-05/0.3228, allocations: 29.64 kB / 0.5644 GB, free: 1.871 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.471e-05/0.3228, allocations: 80.14 kB / 0.5645 GB, free: 1.789 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.407e-05/0.3228, allocations: 4 kB / 0.5645 GB, free: 1.785 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.58e-05/0.3229, allocations: 9.719 kB / 0.5645 GB, free: 1.77 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.323, allocations: 310.8 kB / 0.5648 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.435e-05/0.323, allocations: 29.7 kB / 0.5648 GB, free: 1.422 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.012e-05/0.323, allocations: 29.69 kB / 0.5649 GB, free: 1.387 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.726e-05/0.3231, allocations: 68.33 kB / 0.5649 GB, free: 1.305 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-06/0.3231, allocations: 0 / 0.5649 GB, free: 1.305 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.075e-05/0.3232, allocations: 89.09 kB / 0.565 GB, free: 1.199 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.035e-05/0.3232, allocations: 33.69 kB / 0.5651 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.277e-06/0.3232, allocations: 0 / 0.5651 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.3232, allocations: 3.938 kB / 0.5651 GB, free: 1.156 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.294e-06/0.3232, allocations: 3.938 kB / 0.5651 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.957e-06/0.3232, allocations: 0 / 0.5651 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.264e-05/0.3232, allocations: 4 kB / 0.5651 GB, free: 1.148 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.44e-06/0.3232, allocations: 4.031 kB / 0.5651 GB, free: 1.145 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 8.921e-05/0.3233, allocations: 136.4 kB / 0.5652 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.923e-06/0.3233, allocations: 4 kB / 0.5652 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.938e-06/0.3233, allocations: 6.938 kB / 0.5652 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.12e-07/0.3233, allocations: 0 / 0.5652 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.3233, allocations: 0 / 0.5652 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.758e-06/0.3233, allocations: 3.984 kB / 0.5652 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.231e-05/0.3234, allocations: 116.8 kB / 0.5653 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.3234, allocations: 3.938 kB / 0.5653 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.7e-07/0.3234, allocations: 4 kB / 0.5653 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.42e-07/0.3234, allocations: 0 / 0.5653 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.244e-06/0.3234, allocations: 3.938 kB / 0.5653 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.3234, allocations: 0 / 0.5653 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.3235, allocations: 4 kB / 0.5653 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001072/0.3236, allocations: 120.5 kB / 0.5655 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.926e-06/0.3236, allocations: 0 / 0.5655 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.257e-05/0.3236, allocations: 11.88 kB / 0.5655 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.055e-06/0.3236, allocations: 4.031 kB / 0.5655 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.451e-05/0.3236, allocations: 7.984 kB / 0.5655 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-06/0.3236, allocations: 0 / 0.5655 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.119e-05/0.3236, allocations: 75.28 kB / 0.5656 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3236, allocations: 0 / 0.5656 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002242/0.3239, allocations: 31.88 kB / 0.5656 GB, free: 0.5312 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.0005396/0.3244, allocations: 269 kB / 0.5658 GB, free: 308 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001196/0.3245, allocations: 106.8 kB / 0.5659 GB, free: 176 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.3245, allocations: 0 / 0.5659 GB, free: 176 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.109e-05/0.3246, allocations: 89.08 kB / 0.566 GB, free: 68 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001156/0.3247, allocations: 4 kB / 0.566 GB, free: 64 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001869/0.3249, allocations: 118.8 kB / 0.5661 GB, free: 15.91 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002749/0.3251, allocations: 0.6767 MB / 0.5668 GB, free: 15.21 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.198e-06/0.3251, allocations: 0 / 0.5668 GB, free: 15.21 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.016e-05/0.3252, allocations: 7.438 kB / 0.5668 GB, free: 15.2 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3252, allocations: 0 / 0.5668 GB, free: 15.2 MB / 414.1 MB Notification: Performance of Templates: time 0.003518/0.3287, allocations: 0.9803 MB / 0.5678 GB, free: 14.22 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_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-beta.om_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: 4.999456049175933]