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.001769/0.001769, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002066/0.002066, allocations: 203.7 kB / 23.73 MB, free: 4.379 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.595/1.595, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.245/0.245, allocations: 46.95 MB / 360.9 MB, free: 4.145 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: 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.00213/0.00213, allocations: 71.89 kB / 0.4966 GB, free: 7.258 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3305/0.3327, allocations: 66.03 MB / 0.5611 GB, free: 4.172 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001656/0.3343, allocations: 481.1 kB / 0.5615 GB, free: 3.699 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008425/0.3352, allocations: 313.4 kB / 0.5618 GB, free: 3.395 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.821e-05/0.3352, allocations: 0 / 0.5618 GB, free: 3.395 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.653e-05/0.3352, allocations: 3.938 kB / 0.5618 GB, free: 3.391 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.66e-06/0.3352, allocations: 0 / 0.5618 GB, free: 3.391 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.0008362/0.336, allocations: 97.48 kB / 0.5619 GB, free: 3.301 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.102e-05/0.3361, allocations: 4 kB / 0.5619 GB, free: 3.297 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.279e-05/0.3362, allocations: 11.92 kB / 0.5619 GB, free: 3.285 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.328e-05/0.3362, allocations: 0 / 0.5619 GB, free: 3.285 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.912e-05/0.3362, allocations: 0 / 0.5619 GB, free: 3.285 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.663e-06/0.3362, allocations: 0 / 0.5619 GB, free: 3.285 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002266/0.3364, allocations: 111.9 kB / 0.562 GB, free: 3.176 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.005e-05/0.3364, allocations: 3.984 kB / 0.562 GB, free: 3.172 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.963e-05/0.3364, allocations: 0 / 0.562 GB, free: 3.172 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002107/0.3367, allocations: 87.61 kB / 0.5621 GB, free: 3.09 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.3367, allocations: 0 / 0.5621 GB, free: 3.09 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3367, allocations: 4 kB / 0.5621 GB, free: 3.086 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.137e-05/0.3367, allocations: 0 / 0.5621 GB, free: 3.086 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.0003885/0.3371, allocations: 286.5 kB / 0.5624 GB, free: 2.773 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.3371, allocations: 12.03 kB / 0.5624 GB, free: 2.762 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.141e-05/0.3371, allocations: 0.9375 kB / 0.5624 GB, free: 2.762 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001027/0.3372, allocations: 102.5 kB / 0.5625 GB, free: 2.637 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.717e-06/0.3372, allocations: 384 / 0.5625 GB, free: 2.637 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.533e-05/0.3373, allocations: 8.312 kB / 0.5625 GB, free: 2.629 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001098/0.3374, allocations: 55.95 kB / 0.5626 GB, free: 2.562 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.3374, allocations: 192 / 0.5626 GB, free: 2.562 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.3374, allocations: 3.938 kB / 0.5626 GB, free: 2.559 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.3374, allocations: 8 kB / 0.5626 GB, free: 2.551 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.648e-05/0.3374, allocations: 29.69 kB / 0.5626 GB, free: 2.516 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001367/0.3376, allocations: 97.33 kB / 0.5627 GB, free: 2.391 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.769e-05/0.3376, allocations: 44.31 kB / 0.5627 GB, free: 2.332 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.319e-05/0.3377, allocations: 34.5 kB / 0.5628 GB, free: 2.289 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.072e-05/0.3377, allocations: 8.047 kB / 0.5628 GB, free: 2.281 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.047e-05/0.3377, allocations: 56.27 kB / 0.5628 GB, free: 2.211 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.3377, allocations: 0 / 0.5628 GB, free: 2.211 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002179/0.338, allocations: 118.8 kB / 0.5629 GB, free: 2.07 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.82e-05/0.338, allocations: 85.22 kB / 0.563 GB, free: 1.969 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.569e-05/0.3381, allocations: 93.81 kB / 0.5631 GB, free: 1.867 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.3381, allocations: 29.7 kB / 0.5631 GB, free: 1.832 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.372e-05/0.3381, allocations: 84.08 kB / 0.5632 GB, free: 1.746 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.183e-05/0.3382, allocations: 0 / 0.5632 GB, free: 1.746 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.342e-05/0.3382, allocations: 17.72 kB / 0.5632 GB, free: 1.723 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.3384, allocations: 310.8 kB / 0.5635 GB, free: 1.41 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.013e-05/0.3384, allocations: 29.64 kB / 0.5636 GB, free: 1.375 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.891e-05/0.3384, allocations: 25.7 kB / 0.5636 GB, free: 1.344 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.8e-05/0.3385, allocations: 64.25 kB / 0.5637 GB, free: 1.266 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3385, allocations: 4.062 kB / 0.5637 GB, free: 1.262 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.284e-05/0.3386, allocations: 89.11 kB / 0.5637 GB, free: 1.156 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.662e-05/0.3386, allocations: 33.7 kB / 0.5638 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3386, allocations: 3.938 kB / 0.5638 GB, free: 1.113 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.3386, allocations: 0 / 0.5638 GB, free: 1.113 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.056e-06/0.3386, allocations: 3.938 kB / 0.5638 GB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.076e-06/0.3386, allocations: 3.984 kB / 0.5638 GB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.587e-05/0.3386, allocations: 0 / 0.5638 GB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.993e-06/0.3387, allocations: 0 / 0.5638 GB, free: 1.105 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.0001096/0.3388, allocations: 143.5 kB / 0.5639 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.015e-06/0.3388, allocations: 0 / 0.5639 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.422e-05/0.3388, allocations: 7 kB / 0.5639 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.3388, allocations: 3.938 kB / 0.5639 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.3388, allocations: 0 / 0.5639 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.3388, allocations: 0 / 0.5639 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.775e-05/0.3389, allocations: 109.3 kB / 0.564 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.3389, allocations: 0 / 0.564 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.3389, allocations: 0 / 0.564 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.3389, allocations: 4 kB / 0.564 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.073e-06/0.3389, allocations: 0 / 0.564 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.3389, allocations: 0 / 0.564 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.3389, allocations: 7.938 kB / 0.5641 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001231/0.339, allocations: 116.5 kB / 0.5642 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.177e-06/0.339, allocations: 0 / 0.5642 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.479e-05/0.3391, allocations: 4 kB / 0.5642 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.876e-06/0.3391, allocations: 0 / 0.5642 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.902e-05/0.3391, allocations: 3.938 kB / 0.5642 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-06/0.3391, allocations: 0 / 0.5642 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.722e-05/0.3391, allocations: 79.22 kB / 0.5642 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3391, allocations: 3.938 kB / 0.5642 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002811/0.3394, allocations: 39.86 kB / 0.5643 GB, free: 0.5156 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.0006978/0.3401, allocations: 274.3 kB / 0.5645 GB, free: 308 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001429/0.3403, allocations: 122.8 kB / 0.5647 GB, free: 160 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3403, allocations: 0 / 0.5647 GB, free: 160 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.255e-05/0.3403, allocations: 85.17 kB / 0.5647 GB, free: 56 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001205/0.3404, allocations: 0 / 0.5647 GB, free: 56 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002323/0.3407, allocations: 114.7 kB / 0.5649 GB, free: 15.91 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.012e-05/0.3407, allocations: 55.36 kB / 0.5649 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.66e-06/0.3407, allocations: 0 / 0.5649 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.421e-05/0.3407, allocations: 7.438 kB / 0.5649 GB, free: 15.83 MB / 414.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3407, allocations: 0 / 0.5649 GB, free: 15.83 MB / 414.1 MB Notification: Performance of Templates: time 0.003968/0.3447, allocations: 0.9902 MB / 0.5659 GB, free: 14.84 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.256363830994815]