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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00112/0.00112, allocations: 114.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001196/0.001196, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2055/0.2055, allocations: 46.11 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 75.88 kB / 419 MB, free: 19.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1148, allocations: 62.45 MB / 481.5 MB, free: 4.531 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001599/0.1164, allocations: 485.3 kB / 481.9 MB, free: 4.059 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006543/0.1171, allocations: 301.7 kB / 482.2 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.586e-05/0.1171, allocations: 0 / 482.2 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.384e-05/0.1171, allocations: 0 / 482.2 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.558e-06/0.1172, allocations: 0 / 482.2 MB, free: 3.766 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0007316/0.1179, allocations: 91.72 kB / 482.3 MB, free: 3.676 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.067e-05/0.118, allocations: 7.984 kB / 482.3 MB, free: 3.668 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.136e-05/0.118, allocations: 0 / 482.3 MB, free: 3.668 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.434e-05/0.118, allocations: 4 kB / 482.3 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.875e-05/0.118, allocations: 3.984 kB / 482.3 MB, free: 3.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.35e-06/0.118, allocations: 4 kB / 482.3 MB, free: 3.656 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001675/0.1182, allocations: 103.9 kB / 482.4 MB, free: 3.555 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.688e-06/0.1182, allocations: 0 / 482.4 MB, free: 3.555 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.368e-05/0.1183, allocations: 7.938 kB / 482.4 MB, free: 3.547 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001695/0.1184, allocations: 83.81 kB / 482.5 MB, free: 3.465 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1184, allocations: 0 / 482.5 MB, free: 3.465 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1185, allocations: 0 / 482.5 MB, free: 3.465 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.029e-05/0.1185, allocations: 0 / 482.5 MB, free: 3.465 MB / 350.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.0003409/0.1188, allocations: 361.3 kB / 482.9 MB, free: 3.055 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.1189, allocations: 16.03 kB / 482.9 MB, free: 3.039 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.825e-05/0.1189, allocations: 0.9375 kB / 482.9 MB, free: 3.039 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.436e-05/0.119, allocations: 164.4 kB / 483.1 MB, free: 2.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.06e-05/0.119, allocations: 384 / 483.1 MB, free: 2.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.201e-06/0.119, allocations: 384 / 483.1 MB, free: 2.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.912e-05/0.1191, allocations: 30.27 kB / 483.1 MB, free: 2.805 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.252e-06/0.1191, allocations: 192 / 483.1 MB, free: 2.805 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.657e-06/0.1191, allocations: 3.938 kB / 483.1 MB, free: 2.801 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.399e-06/0.1191, allocations: 0 / 483.1 MB, free: 2.801 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.357e-05/0.1192, allocations: 3.938 kB / 483.1 MB, free: 2.797 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000114/0.1193, allocations: 157.7 kB / 483.2 MB, free: 2.594 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.094e-05/0.1193, allocations: 14.58 kB / 483.3 MB, free: 2.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.465e-05/0.1194, allocations: 16.83 kB / 483.3 MB, free: 2.551 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.833e-06/0.1194, allocations: 3.984 kB / 483.3 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.642e-05/0.1194, allocations: 56.27 kB / 483.3 MB, free: 2.477 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.1194, allocations: 0 / 483.3 MB, free: 2.477 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001536/0.1196, allocations: 79.27 kB / 483.4 MB, free: 2.387 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.185e-05/0.1196, allocations: 77.11 kB / 483.5 MB, free: 2.293 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.327e-05/0.1197, allocations: 89.86 kB / 483.6 MB, free: 2.195 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.083e-05/0.1197, allocations: 25.7 kB / 483.6 MB, free: 2.164 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.684e-05/0.1197, allocations: 80.14 kB / 483.7 MB, free: 2.082 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.58e-05/0.1197, allocations: 7.984 kB / 483.7 MB, free: 2.074 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.261e-05/0.1198, allocations: 9.719 kB / 483.7 MB, free: 2.059 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.302e-05/0.1199, allocations: 310.8 kB / 484 MB, free: 1.746 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.718e-06/0.1199, allocations: 8.125 kB / 484 MB, free: 1.738 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.879e-06/0.1199, allocations: 0 / 484 MB, free: 1.738 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.299e-05/0.1199, allocations: 68.25 kB / 484.1 MB, free: 1.656 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.12, allocations: 0 / 484.1 MB, free: 1.656 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.602e-05/0.12, allocations: 59.34 kB / 484.1 MB, free: 1.586 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.883e-05/0.1201, allocations: 33.7 kB / 484.2 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.1201, allocations: 0 / 484.2 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.1201, allocations: 3.938 kB / 484.2 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-07/0.1201, allocations: 0 / 484.2 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.1201, allocations: 8.078 kB / 484.2 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.484e-05/0.1201, allocations: 4 kB / 484.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-06/0.1201, allocations: 3.984 kB / 484.2 MB, free: 1.527 MB / 350.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 6.979e-05/0.1202, allocations: 135.5 kB / 484.3 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.797e-06/0.1202, allocations: 4 kB / 484.3 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.438e-06/0.1202, allocations: 7.062 kB / 484.3 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-06/0.1202, allocations: 0 / 484.3 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.1202, allocations: 0 / 484.3 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.1203, allocations: 0 / 484.3 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.505e-05/0.1204, allocations: 149.7 kB / 484.5 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.62e-07/0.1204, allocations: 0 / 484.5 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.087e-06/0.1204, allocations: 8 kB / 484.5 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.1204, allocations: 0 / 484.5 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.973e-06/0.1204, allocations: 3.938 kB / 484.5 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.1204, allocations: 0 / 484.5 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1204, allocations: 3.938 kB / 484.5 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.794e-05/0.1205, allocations: 98.77 kB / 484.6 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.804e-05/0.1205, allocations: 77.11 kB / 484.7 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.215e-05/0.1205, allocations: 3.938 kB / 484.7 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.985e-06/0.1206, allocations: 0 / 484.7 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.42e-05/0.1206, allocations: 4 kB / 484.7 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-06/0.1206, allocations: 3.938 kB / 484.7 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.741e-05/0.1206, allocations: 79.28 kB / 484.7 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1206, allocations: 0 / 484.7 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000223/0.1209, allocations: 39.98 kB / 484.8 MB, free: 0.8164 MB / 350.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.0005092/0.1214, allocations: 270.5 kB / 485.1 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.295e-05/0.1215, allocations: 67.34 kB / 485.1 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1215, allocations: 4.062 kB / 485.1 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.065e-05/0.1215, allocations: 55.34 kB / 485.2 MB, free: 456 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001228/0.1216, allocations: 4 kB / 485.2 MB, free: 452 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001703/0.1218, allocations: 88.91 kB / 485.3 MB, free: 336 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002413/0.1221, allocations: 0.669 MB / 485.9 MB, free: 15.63 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.739e-06/0.1221, allocations: 0 / 485.9 MB, free: 15.63 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.386e-06/0.1221, allocations: 7.438 kB / 485.9 MB, free: 15.63 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1221, allocations: 0 / 485.9 MB, free: 15.63 MB / 366.1 MB Notification: Performance of Templates: time 0.00323/0.1253, allocations: 0.9726 MB / 486.9 MB, free: 14.66 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.makefile (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=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches