Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.0009738/0.0009738, allocations: 84.73 kB / 21.5 MB, free: 2.988 MB / 18.57 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.001612/0.001612, allocations: 165 kB / 24.91 MB, free: 9.18 MB / 18.57 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 0.9773/0.9773, allocations: 177 MB / 205.2 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2943/0.2943, allocations: 34.87 MB / 296.6 MB, free: 0.5078 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.22e-07/9.22e-07, allocations: 0 / 325.9 MB, free: 7.172 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.107e-05/1.199e-05, allocations: 2.312 kB / 325.9 MB, free: 7.168 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0009415/0.0009535, allocations: 0.5373 MB / 326.5 MB, free: 6.629 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004516/0.001405, allocations: 307 kB / 326.8 MB, free: 6.328 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.165e-05/0.001417, allocations: 0 / 326.8 MB, free: 6.328 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.305e-06/0.001425, allocations: 0 / 326.8 MB, free: 6.328 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.757e-06/0.001429, allocations: 0 / 326.8 MB, free: 6.328 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:232:3-298: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.0004608/0.00189, allocations: 100.1 kB / 326.9 MB, free: 6.234 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.378e-05/0.001923, allocations: 4.625 kB / 326.9 MB, free: 6.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.127e-05/0.001945, allocations: 3.938 kB / 326.9 MB, free: 6.227 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.171e-05/0.001966, allocations: 7.984 kB / 326.9 MB, free: 6.219 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.132e-05/0.001978, allocations: 0 / 326.9 MB, free: 6.219 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.779e-06/0.001983, allocations: 0 / 326.9 MB, free: 6.219 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001436/0.002126, allocations: 115.8 kB / 327 MB, free: 6.105 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.15e-06/0.002131, allocations: 4 kB / 327 MB, free: 6.102 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.758e-06/0.002141, allocations: 0 / 327 MB, free: 6.102 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001326/0.002274, allocations: 108.5 kB / 327.1 MB, free: 5.996 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.292e-06/0.002275, allocations: 0 / 327.1 MB, free: 5.996 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.81e-07/0.002275, allocations: 0 / 327.1 MB, free: 5.996 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.695e-06/0.002278, allocations: 0 / 327.1 MB, free: 5.996 MB / 298.7 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.0001759/0.002454, allocations: 266.2 kB / 327.4 MB, free: 5.703 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.513e-05/0.002479, allocations: 8.031 kB / 327.4 MB, free: 5.695 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.105e-05/0.0025, allocations: 4.938 kB / 327.4 MB, free: 5.691 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.905e-05/0.002549, allocations: 101.8 kB / 327.5 MB, free: 5.566 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.073e-06/0.002556, allocations: 384 / 327.5 MB, free: 5.566 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.258e-06/0.002561, allocations: 4.375 kB / 327.5 MB, free: 5.562 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.342e-05/0.002614, allocations: 63.89 kB / 327.5 MB, free: 5.488 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.16e-06/0.002619, allocations: 192 / 327.5 MB, free: 5.488 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.238e-06/0.002623, allocations: 384 / 327.5 MB, free: 5.488 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.002628, allocations: 384 / 327.5 MB, free: 5.488 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.535e-05/0.002643, allocations: 33.64 kB / 327.6 MB, free: 5.449 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.353e-05/0.002696, allocations: 61.03 kB / 327.6 MB, free: 5.375 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.448e-05/0.002731, allocations: 44.31 kB / 327.7 MB, free: 5.316 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.557e-05/0.002746, allocations: 34.55 kB / 327.7 MB, free: 5.273 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.456e-06/0.002755, allocations: 8.062 kB / 327.7 MB, free: 5.266 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.052e-05/0.002805, allocations: 64.2 kB / 327.8 MB, free: 5.188 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.623e-06/0.002807, allocations: 0 / 327.8 MB, free: 5.188 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 9.049e-05/0.002898, allocations: 110.8 kB / 327.9 MB, free: 5.055 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.848e-05/0.002926, allocations: 81.09 kB / 328 MB, free: 4.957 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.812e-05/0.002954, allocations: 89.86 kB / 328.1 MB, free: 4.859 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.454e-06/0.002962, allocations: 25.7 kB / 328.1 MB, free: 4.828 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.802e-05/0.00298, allocations: 80.14 kB / 328.2 MB, free: 4.746 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.094e-05/0.002991, allocations: 1.375 kB / 328.2 MB, free: 4.746 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.822e-05/0.003009, allocations: 13.72 kB / 328.2 MB, free: 4.727 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.2e-05/0.003071, allocations: 314.9 kB / 328.5 MB, free: 4.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.047e-05/0.003081, allocations: 33.7 kB / 328.5 MB, free: 4.371 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.238e-05/0.003094, allocations: 29.64 kB / 328.5 MB, free: 4.336 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.118e-05/0.003125, allocations: 64.25 kB / 328.6 MB, free: 4.258 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.003126, allocations: 0 / 328.6 MB, free: 4.258 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.268e-05/0.003169, allocations: 89.09 kB / 328.7 MB, free: 4.152 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.296e-05/0.003192, allocations: 33.7 kB / 328.7 MB, free: 4.113 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.685e-06/0.003194, allocations: 3.938 kB / 328.7 MB, free: 4.109 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.985e-06/0.003202, allocations: 0 / 328.7 MB, free: 4.109 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.086e-06/0.003205, allocations: 4.078 kB / 328.7 MB, free: 4.105 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.904e-06/0.003207, allocations: 4 kB / 328.7 MB, free: 4.102 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.446e-06/0.003216, allocations: 0 / 328.7 MB, free: 4.102 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.09e-06/0.003221, allocations: 4 kB / 328.7 MB, free: 4.098 MB / 298.7 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 5.172e-05/0.003272, allocations: 139.5 kB / 328.9 MB, free: 3.945 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.829e-06/0.003277, allocations: 7.938 kB / 328.9 MB, free: 3.938 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.56e-06/0.003283, allocations: 3 kB / 328.9 MB, free: 3.938 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.003285, allocations: 4 kB / 328.9 MB, free: 3.934 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-06/0.003286, allocations: 0 / 328.9 MB, free: 3.934 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-06/0.003288, allocations: 0 / 328.9 MB, free: 3.934 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.855e-05/0.003327, allocations: 69.83 kB / 329 MB, free: 3.848 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.21e-07/0.003327, allocations: 4 kB / 329 MB, free: 3.844 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.71e-07/0.003327, allocations: 0 / 329 MB, free: 3.844 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-07/0.003328, allocations: 0 / 329 MB, free: 3.844 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.945e-06/0.003331, allocations: 0 / 329 MB, free: 3.844 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.2e-07/0.003331, allocations: 0 / 329 MB, free: 3.844 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.003332, allocations: 0 / 329 MB, free: 3.844 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.469e-05/0.003386, allocations: 116.5 kB / 329.1 MB, free: 3.699 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.186e-06/0.00339, allocations: 352 / 329.1 MB, free: 3.699 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.065e-06/0.003398, allocations: 0 / 329.1 MB, free: 3.699 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.138e-06/0.003402, allocations: 0 / 329.1 MB, free: 3.699 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.795e-06/0.00341, allocations: 4.031 kB / 329.1 MB, free: 3.695 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-06/0.003412, allocations: 8 kB / 329.1 MB, free: 3.688 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.32e-06/0.003417, allocations: 8.797 kB / 329.1 MB, free: 3.676 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.003417, allocations: 0 / 329.1 MB, free: 3.676 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001176/0.003535, allocations: 31.92 kB / 329.1 MB, free: 3.645 MB / 298.7 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.0005104/0.004045, allocations: 311.5 kB / 329.4 MB, free: 3.441 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.596e-05/0.004121, allocations: 115.7 kB / 329.5 MB, free: 3.301 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.004124, allocations: 4 kB / 329.5 MB, free: 3.297 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.466e-05/0.004149, allocations: 85.97 kB / 329.6 MB, free: 3.191 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 3.913e-05/0.004188, allocations: 10.59 kB / 329.6 MB, free: 3.184 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001102/0.004298, allocations: 116.9 kB / 329.8 MB, free: 3.035 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.262e-05/0.004321, allocations: 51.36 kB / 329.8 MB, free: 2.965 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.308e-06/0.004325, allocations: 128 / 329.8 MB, free: 2.965 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.775e-05/0.004353, allocations: 55.38 kB / 329.9 MB, free: 2.91 MB / 298.7 MB Notification: Performance of SimCode: time 4.61e-07/0.004353, allocations: 0 / 329.9 MB, free: 2.91 MB / 298.7 MB Notification: Performance of Templates: time 0.002308/0.006661, allocations: 1.166 MB / 331 MB, free: 1.75 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7907245168462396]