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.001042/0.001046, allocations: 113 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001205/0.001205, allocations: 208.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.215/1.215, allocations: 227.4 MB / 247.6 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1886/0.1886, allocations: 46.1 MB / 344.9 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 71.89 kB / 482 MB, free: 4.105 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2864/0.2877, allocations: 62.43 MB / 0.5316 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001398/0.2891, allocations: 499.2 kB / 0.5321 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006285/0.2898, allocations: 290.6 kB / 0.5324 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.869e-05/0.2898, allocations: 3.938 kB / 0.5324 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.099e-05/0.2898, allocations: 1.594 kB / 0.5324 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.511e-06/0.2898, allocations: 0 / 0.5324 GB, free: 13.05 MB / 398.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.0007332/0.2906, allocations: 95.69 kB / 0.5325 GB, free: 13 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.047e-05/0.2906, allocations: 7.969 kB / 0.5325 GB, free: 12.99 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.61e-05/0.2906, allocations: 0 / 0.5325 GB, free: 12.99 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.273e-05/0.2907, allocations: 4.531 kB / 0.5325 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.813e-05/0.2907, allocations: 3.312 kB / 0.5325 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.86e-06/0.2907, allocations: 0 / 0.5325 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001508/0.2909, allocations: 107.8 kB / 0.5326 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.472e-06/0.2909, allocations: 0 / 0.5326 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.571e-05/0.2909, allocations: 1.375 kB / 0.5326 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000144/0.291, allocations: 89.98 kB / 0.5327 GB, free: 12.87 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.291, allocations: 1.375 kB / 0.5327 GB, free: 12.87 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2911, allocations: 0 / 0.5327 GB, free: 12.87 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.644e-06/0.2911, allocations: 0 / 0.5327 GB, free: 12.87 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.0002997/0.2914, allocations: 364.2 kB / 0.533 GB, free: 12.47 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.198e-05/0.2914, allocations: 9.625 kB / 0.533 GB, free: 12.47 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.444e-05/0.2914, allocations: 0.9375 kB / 0.533 GB, free: 12.47 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.846e-05/0.2915, allocations: 165.8 kB / 0.5332 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.2916, allocations: 384 / 0.5332 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.506e-06/0.2916, allocations: 5.688 kB / 0.5332 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.692e-05/0.2916, allocations: 29.02 kB / 0.5332 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.332e-06/0.2917, allocations: 192 / 0.5332 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.287e-06/0.2917, allocations: 3.938 kB / 0.5332 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.2917, allocations: 0 / 0.5332 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.905e-05/0.2917, allocations: 13.31 kB / 0.5333 GB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001252/0.2918, allocations: 147 kB / 0.5334 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.684e-05/0.2919, allocations: 17.33 kB / 0.5334 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.476e-05/0.2919, allocations: 6.234 kB / 0.5334 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.735e-06/0.2919, allocations: 0 / 0.5334 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.42e-05/0.292, allocations: 61.64 kB / 0.5335 GB, free: 11.92 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.42e-07/0.292, allocations: 4 kB / 0.5335 GB, free: 11.92 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000167/0.2921, allocations: 71.52 kB / 0.5335 GB, free: 11.84 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.218e-05/0.2922, allocations: 77.11 kB / 0.5336 GB, free: 11.75 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.015e-05/0.2922, allocations: 95.17 kB / 0.5337 GB, free: 11.65 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.037e-05/0.2922, allocations: 25.7 kB / 0.5337 GB, free: 11.62 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.241e-05/0.2923, allocations: 80.14 kB / 0.5338 GB, free: 11.54 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.567e-05/0.2923, allocations: 1.344 kB / 0.5338 GB, free: 11.54 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.455e-05/0.2923, allocations: 15.03 kB / 0.5338 GB, free: 11.52 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.971e-05/0.2924, allocations: 316.3 kB / 0.5341 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.185e-06/0.2924, allocations: 0 / 0.5341 GB, free: 11.2 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.34e-06/0.2924, allocations: 1.344 kB / 0.5341 GB, free: 11.2 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.696e-05/0.2925, allocations: 64.22 kB / 0.5342 GB, free: 11.12 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.2925, allocations: 0 / 0.5342 GB, free: 11.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.95e-05/0.2926, allocations: 65.94 kB / 0.5343 GB, free: 11.05 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.93e-05/0.2926, allocations: 32.42 kB / 0.5343 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.2926, allocations: 0 / 0.5343 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.211e-05/0.2926, allocations: 8.031 kB / 0.5343 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.22e-07/0.2926, allocations: 0 / 0.5343 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.2926, allocations: 5.422 kB / 0.5343 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.374e-05/0.2927, allocations: 0 / 0.5343 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.264e-06/0.2927, allocations: 1.469 kB / 0.5343 GB, free: 11.01 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 7.479e-05/0.2927, allocations: 137 kB / 0.5344 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.134e-06/0.2928, allocations: 1.031 kB / 0.5344 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.506e-06/0.2928, allocations: 7.062 kB / 0.5344 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.2928, allocations: 4.797 kB / 0.5344 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.2928, allocations: 9.062 kB / 0.5344 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.2928, allocations: 0 / 0.5344 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.888e-05/0.2929, allocations: 146.7 kB / 0.5346 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.2929, allocations: 1.156 kB / 0.5346 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.2929, allocations: 0 / 0.5346 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.2929, allocations: 1.156 kB / 0.5346 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.2929, allocations: 7.875 kB / 0.5346 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.2929, allocations: 1.156 kB / 0.5346 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.2929, allocations: 0 / 0.5346 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.335e-05/0.293, allocations: 97.92 kB / 0.5347 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.99e-05/0.2931, allocations: 81.11 kB / 0.5348 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.289e-05/0.2931, allocations: 4.969 kB / 0.5348 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.684e-06/0.2931, allocations: 1.031 kB / 0.5348 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.114e-05/0.2931, allocations: 1.406 kB / 0.5348 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-06/0.2931, allocations: 3.938 kB / 0.5348 GB, free: 10.43 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.142e-05/0.2931, allocations: 76.47 kB / 0.5349 GB, free: 10.36 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2932, allocations: 0 / 0.5349 GB, free: 10.36 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002207/0.2934, allocations: 31.98 kB / 0.5349 GB, free: 10.35 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.0004913/0.2939, allocations: 283.1 kB / 0.5352 GB, free: 10.18 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.361e-05/0.294, allocations: 60.62 kB / 0.5352 GB, free: 10.11 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.294, allocations: 0 / 0.5352 GB, free: 10.11 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.256e-05/0.294, allocations: 58.78 kB / 0.5353 GB, free: 10.04 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001207/0.2941, allocations: 2.625 kB / 0.5353 GB, free: 10.04 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001742/0.2943, allocations: 109.8 kB / 0.5354 GB, free: 9.91 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002063/0.2945, allocations: 0.6702 MB / 0.536 GB, free: 9.215 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.108e-05/0.2946, allocations: 8.75 kB / 0.536 GB, free: 9.207 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2946, allocations: 128 / 0.536 GB, free: 9.207 MB / 398.1 MB Notification: Performance of Templates: time 0.002415/0.297, allocations: 1.159 MB / 0.5372 GB, free: 8.613 MB / 398.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