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.001338/0.001338, allocations: 109.2 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001282/0.001282, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 227.3 MB / 246.9 MB, free: 10.58 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2093/0.2093, allocations: 46.1 MB / 344.3 MB, free: 11.75 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 80.09 kB / 417.5 MB, free: 20.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.113, allocations: 62.44 MB / 479.9 MB, free: 5.715 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001893/0.115, allocations: 0.5372 MB / 480.5 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007317/0.1157, allocations: 313.6 kB / 480.8 MB, free: 4.867 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.088e-05/0.1157, allocations: 0 / 480.8 MB, free: 4.867 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.524e-05/0.1158, allocations: 0 / 480.8 MB, free: 4.867 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.227e-06/0.1158, allocations: 0 / 480.8 MB, free: 4.867 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.0008781/0.1167, allocations: 74.39 kB / 480.8 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.902e-05/0.1167, allocations: 0 / 480.8 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.534e-05/0.1168, allocations: 0 / 480.8 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.651e-05/0.1168, allocations: 4 kB / 480.8 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.892e-05/0.1168, allocations: 4 kB / 480.9 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.61e-06/0.1168, allocations: 0 / 480.9 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001994/0.117, allocations: 103.9 kB / 481 MB, free: 4.688 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.204e-06/0.1171, allocations: 0 / 481 MB, free: 4.688 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.882e-05/0.1171, allocations: 0 / 481 MB, free: 4.688 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001308/0.1172, allocations: 59.84 kB / 481 MB, free: 4.629 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1172, allocations: 0 / 481 MB, free: 4.629 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.1172, allocations: 0 / 481 MB, free: 4.629 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.158e-06/0.1172, allocations: 3.938 kB / 481 MB, free: 4.625 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.0003498/0.1176, allocations: 365.2 kB / 481.4 MB, free: 4.211 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.1176, allocations: 12.88 kB / 481.4 MB, free: 4.199 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.439e-05/0.1177, allocations: 0.9375 kB / 481.4 MB, free: 4.199 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001017/0.1178, allocations: 164.4 kB / 481.5 MB, free: 4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.1178, allocations: 4.375 kB / 481.5 MB, free: 3.996 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.674e-06/0.1178, allocations: 384 / 481.5 MB, free: 3.996 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.383e-05/0.1179, allocations: 26.27 kB / 481.6 MB, free: 3.965 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.712e-06/0.1179, allocations: 4.188 kB / 481.6 MB, free: 3.961 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.1179, allocations: 3.938 kB / 481.6 MB, free: 3.957 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.118, allocations: 0 / 481.6 MB, free: 3.957 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.8e-05/0.118, allocations: 4 kB / 481.6 MB, free: 3.953 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001373/0.1181, allocations: 149.7 kB / 481.7 MB, free: 3.758 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.114e-05/0.1182, allocations: 22.55 kB / 481.8 MB, free: 3.727 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.553e-05/0.1182, allocations: 4.859 kB / 481.8 MB, free: 3.719 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.654e-06/0.1182, allocations: 0 / 481.8 MB, free: 3.719 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.978e-05/0.1182, allocations: 60.33 kB / 481.8 MB, free: 3.645 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.1182, allocations: 0 / 481.8 MB, free: 3.645 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001806/0.1184, allocations: 79.27 kB / 481.9 MB, free: 3.555 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.547e-05/0.1185, allocations: 81.05 kB / 482 MB, free: 3.457 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.692e-05/0.1185, allocations: 89.86 kB / 482.1 MB, free: 3.359 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.163e-05/0.1186, allocations: 25.7 kB / 482.1 MB, free: 3.328 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.581e-05/0.1186, allocations: 80.14 kB / 482.2 MB, free: 3.246 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.958e-05/0.1186, allocations: 0 / 482.2 MB, free: 3.246 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.996e-05/0.1186, allocations: 13.72 kB / 482.2 MB, free: 3.227 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.1188, allocations: 315 kB / 482.5 MB, free: 2.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.498e-06/0.1188, allocations: 4 kB / 482.5 MB, free: 2.906 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.237e-06/0.1188, allocations: 7.984 kB / 482.5 MB, free: 2.898 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.581e-05/0.1189, allocations: 56.27 kB / 482.6 MB, free: 2.828 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1189, allocations: 0 / 482.6 MB, free: 2.828 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.04e-05/0.1189, allocations: 63.34 kB / 482.6 MB, free: 2.754 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.441e-05/0.119, allocations: 36.05 kB / 482.7 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.119, allocations: 0 / 482.7 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.119, allocations: 7.922 kB / 482.7 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-07/0.119, allocations: 4.094 kB / 482.7 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.119, allocations: 0 / 482.7 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.759e-05/0.119, allocations: 4 kB / 482.7 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.055e-05/0.1191, allocations: 4 kB / 482.7 MB, free: 2.695 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 8.122e-05/0.1191, allocations: 135.5 kB / 482.8 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.957e-06/0.1192, allocations: 0 / 482.8 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.689e-06/0.1192, allocations: 7.062 kB / 482.8 MB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.1192, allocations: 0 / 482.8 MB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.1192, allocations: 0 / 482.8 MB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.1192, allocations: 11.94 kB / 482.8 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.364e-05/0.1193, allocations: 145.7 kB / 483 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.1193, allocations: 3.984 kB / 483 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.81e-07/0.1193, allocations: 0 / 483 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.1193, allocations: 0 / 483 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.1193, allocations: 3.938 kB / 483 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.1193, allocations: 4 kB / 483 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1193, allocations: 0 / 483 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.67e-05/0.1194, allocations: 98.75 kB / 483.1 MB, free: 2.207 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.246e-05/0.1195, allocations: 81.11 kB / 483.2 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.415e-05/0.1195, allocations: 3.938 kB / 483.2 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.081e-05/0.1195, allocations: 0 / 483.2 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.186e-05/0.1195, allocations: 3.938 kB / 483.2 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.009e-06/0.1196, allocations: 4 kB / 483.2 MB, free: 2.098 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.768e-05/0.1196, allocations: 79.27 kB / 483.2 MB, free: 2.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1196, allocations: 4 kB / 483.2 MB, free: 2.016 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002523/0.1199, allocations: 32 kB / 483.3 MB, free: 1.984 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.0005491/0.1204, allocations: 277.6 kB / 483.5 MB, free: 1.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.585e-05/0.1205, allocations: 59.41 kB / 483.6 MB, free: 1.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1205, allocations: 0 / 483.6 MB, free: 1.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.206e-05/0.1206, allocations: 55.41 kB / 483.7 MB, free: 1.613 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000123/0.1207, allocations: 4 kB / 483.7 MB, free: 1.609 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001871/0.1209, allocations: 112.2 kB / 483.8 MB, free: 1.465 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002399/0.1211, allocations: 0.6692 MB / 484.4 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.029e-05/0.1212, allocations: 11.44 kB / 484.5 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1212, allocations: 0 / 484.5 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of Templates: time 0.00284/0.124, allocations: 1.152 MB / 485.6 MB, free: 15.61 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 -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