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.001288/0.001288, allocations: 117.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001444/0.001444, allocations: 200.6 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.486/1.486, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2277/0.2277, allocations: 46.09 MB / 344.3 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 71.88 kB / 481.3 MB, free: 4.125 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3723/0.3737, allocations: 62.44 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001719/0.3754, allocations: 481.4 kB / 0.5314 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007585/0.3762, allocations: 302.5 kB / 0.5317 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.048e-05/0.3762, allocations: 3.938 kB / 0.5317 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.629e-05/0.3763, allocations: 5.75 kB / 0.5317 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.991e-06/0.3763, allocations: 0 / 0.5317 GB, free: 13.04 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.0008938/0.3772, allocations: 90.83 kB / 0.5318 GB, free: 12.99 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.688e-05/0.3773, allocations: 1.781 kB / 0.5318 GB, free: 12.99 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.013e-05/0.3773, allocations: 5.75 kB / 0.5318 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.139e-05/0.3773, allocations: 0 / 0.5318 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.007e-05/0.3774, allocations: 1.812 kB / 0.5318 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.608e-06/0.3774, allocations: 0 / 0.5318 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002283/0.3776, allocations: 118.8 kB / 0.5319 GB, free: 12.92 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.886e-06/0.3776, allocations: 0 / 0.5319 GB, free: 12.92 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.404e-05/0.3777, allocations: 3.984 kB / 0.5319 GB, free: 12.92 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001769/0.3779, allocations: 86.16 kB / 0.532 GB, free: 12.86 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.3779, allocations: 0 / 0.532 GB, free: 12.86 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3779, allocations: 0 / 0.532 GB, free: 12.86 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.3779, allocations: 1.656 kB / 0.532 GB, free: 12.86 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.0004442/0.3783, allocations: 359.1 kB / 0.5324 GB, free: 12.46 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.3784, allocations: 9.531 kB / 0.5324 GB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.187e-05/0.3784, allocations: 5.438 kB / 0.5324 GB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001053/0.3785, allocations: 163 kB / 0.5325 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.139e-05/0.3786, allocations: 384 / 0.5325 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.028e-05/0.3786, allocations: 384 / 0.5325 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.962e-05/0.3787, allocations: 36.88 kB / 0.5326 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.723e-06/0.3787, allocations: 192 / 0.5326 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.203e-05/0.3787, allocations: 7.938 kB / 0.5326 GB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.3787, allocations: 0 / 0.5326 GB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.942e-05/0.3787, allocations: 2.469 kB / 0.5326 GB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001451/0.3789, allocations: 145.6 kB / 0.5327 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.372e-05/0.379, allocations: 22.52 kB / 0.5327 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.609e-05/0.379, allocations: 4.859 kB / 0.5327 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.266e-06/0.379, allocations: 3.984 kB / 0.5327 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.672e-05/0.379, allocations: 66.61 kB / 0.5328 GB, free: 11.91 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.313e-06/0.379, allocations: 0 / 0.5328 GB, free: 11.91 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002087/0.3793, allocations: 62.69 kB / 0.5329 GB, free: 11.84 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.082e-05/0.3793, allocations: 78.48 kB / 0.5329 GB, free: 11.75 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.917e-05/0.3794, allocations: 97.8 kB / 0.533 GB, free: 11.64 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.216e-05/0.3794, allocations: 29.69 kB / 0.5331 GB, free: 11.61 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.008e-05/0.3794, allocations: 80.14 kB / 0.5331 GB, free: 11.53 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.097e-05/0.3795, allocations: 1.375 kB / 0.5331 GB, free: 11.53 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.944e-05/0.3795, allocations: 16.59 kB / 0.5332 GB, free: 11.51 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.3796, allocations: 310.8 kB / 0.5335 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.194e-05/0.3796, allocations: 1.375 kB / 0.5335 GB, free: 11.2 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.091e-06/0.3797, allocations: 1.375 kB / 0.5335 GB, free: 11.2 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.117e-05/0.3797, allocations: 66.95 kB / 0.5335 GB, free: 11.12 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.3797, allocations: 0 / 0.5335 GB, free: 11.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.047e-05/0.3798, allocations: 62.27 kB / 0.5336 GB, free: 11.05 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.585e-05/0.3799, allocations: 31.2 kB / 0.5336 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.3799, allocations: 4.094 kB / 0.5336 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.3799, allocations: 5.312 kB / 0.5336 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.114e-06/0.3799, allocations: 4 kB / 0.5336 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.518e-06/0.3799, allocations: 0 / 0.5336 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.636e-05/0.3799, allocations: 1.375 kB / 0.5336 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.666e-06/0.3799, allocations: 1.375 kB / 0.5336 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 9.609e-05/0.38, allocations: 140.8 kB / 0.5338 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.486e-06/0.3801, allocations: 1.375 kB / 0.5338 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.292e-05/0.3801, allocations: 7.062 kB / 0.5338 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.3801, allocations: 5.375 kB / 0.5338 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.3801, allocations: 0 / 0.5338 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.3801, allocations: 0 / 0.5338 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000103/0.3802, allocations: 147.1 kB / 0.5339 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.3802, allocations: 5.312 kB / 0.5339 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.974e-06/0.3802, allocations: 3.984 kB / 0.5339 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-06/0.3802, allocations: 0 / 0.5339 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.1e-05/0.3802, allocations: 5.312 kB / 0.5339 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.01e-07/0.3802, allocations: 0 / 0.5339 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3802, allocations: 0 / 0.5339 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.697e-05/0.3803, allocations: 93.83 kB / 0.534 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.617e-05/0.3804, allocations: 78.48 kB / 0.5341 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.469e-05/0.3804, allocations: 5.312 kB / 0.5341 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.127e-06/0.3804, allocations: 0 / 0.5341 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.744e-05/0.3805, allocations: 5.312 kB / 0.5341 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.897e-06/0.3805, allocations: 7.922 kB / 0.5341 GB, free: 10.43 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.837e-05/0.3805, allocations: 76.66 kB / 0.5342 GB, free: 10.36 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3805, allocations: 4.031 kB / 0.5342 GB, free: 10.35 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002515/0.3808, allocations: 35.36 kB / 0.5342 GB, free: 10.34 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.0006388/0.3814, allocations: 273.5 kB / 0.5345 GB, free: 10.17 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001302/0.3815, allocations: 67.45 kB / 0.5345 GB, free: 10.1 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/0.3816, allocations: 1.375 kB / 0.5345 GB, free: 10.1 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.029e-05/0.3816, allocations: 54.16 kB / 0.5346 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.0001393/0.3818, allocations: 4.469 kB / 0.5346 GB, free: 10.04 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002576/0.382, allocations: 77.23 kB / 0.5347 GB, free: 9.941 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003471/0.3824, allocations: 0.6742 MB / 0.5353 GB, free: 9.242 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.636e-06/0.3824, allocations: 4.125 kB / 0.5353 GB, free: 9.238 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.627e-05/0.3824, allocations: 8.812 kB / 0.5354 GB, free: 9.23 MB / 398.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3824, allocations: 0 / 0.5354 GB, free: 9.23 MB / 398.1 MB Notification: Performance of Templates: time 0.004594/0.387, allocations: 0.9767 MB / 0.5363 GB, free: 8.707 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches