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.001401/0.001401, allocations: 117.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002046/0.002046, allocations: 199.8 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2263/0.2263, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001372/0.001373, allocations: 79.88 kB / 481.3 MB, free: 4.117 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.364/0.3654, allocations: 62.43 MB / 0.531 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001583/0.3671, allocations: 491.9 kB / 0.5314 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007651/0.3678, allocations: 299.2 kB / 0.5317 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.283e-05/0.3679, allocations: 0 / 0.5317 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.307e-05/0.3679, allocations: 4.969 kB / 0.5317 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.011e-06/0.3679, allocations: 0 / 0.5317 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.0008525/0.3688, allocations: 92.14 kB / 0.5318 GB, free: 13 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.827e-05/0.3688, allocations: 9.828 kB / 0.5318 GB, free: 12.99 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.255e-05/0.3689, allocations: 0 / 0.5318 GB, free: 12.99 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.455e-05/0.3689, allocations: 1.781 kB / 0.5318 GB, free: 12.99 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.079e-05/0.3689, allocations: 0 / 0.5318 GB, free: 12.99 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.542e-06/0.3689, allocations: 3.938 kB / 0.5318 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001817/0.3691, allocations: 106 kB / 0.5319 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.595e-06/0.3691, allocations: 0 / 0.5319 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.617e-05/0.3692, allocations: 1.281 kB / 0.5319 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000155/0.3693, allocations: 100.6 kB / 0.532 GB, free: 12.87 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3693, allocations: 0 / 0.532 GB, free: 12.87 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3693, allocations: 0 / 0.532 GB, free: 12.87 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.3693, allocations: 0 / 0.532 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.0003262/0.3697, allocations: 359 kB / 0.5324 GB, free: 12.47 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.122e-05/0.3697, allocations: 9.75 kB / 0.5324 GB, free: 12.47 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.461e-05/0.3698, allocations: 2.656 kB / 0.5324 GB, free: 12.47 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.715e-05/0.3698, allocations: 164.4 kB / 0.5325 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.3699, allocations: 384 / 0.5325 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.666e-06/0.3699, allocations: 2 kB / 0.5325 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.515e-05/0.37, allocations: 31.98 kB / 0.5326 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.37, allocations: 192 / 0.5326 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.37, allocations: 5.812 kB / 0.5326 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.37, allocations: 0 / 0.5326 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.036e-05/0.3701, allocations: 5.156 kB / 0.5326 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001243/0.3702, allocations: 152.1 kB / 0.5327 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.554e-05/0.3703, allocations: 14.58 kB / 0.5327 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.427e-05/0.3703, allocations: 11.92 kB / 0.5327 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.905e-06/0.3703, allocations: 0 / 0.5327 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.847e-05/0.3703, allocations: 56.27 kB / 0.5328 GB, free: 11.93 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.3704, allocations: 3.938 kB / 0.5328 GB, free: 11.92 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001602/0.3705, allocations: 76.58 kB / 0.5329 GB, free: 11.84 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.095e-05/0.3706, allocations: 77.11 kB / 0.5329 GB, free: 11.75 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.23e-05/0.3706, allocations: 89.86 kB / 0.533 GB, free: 11.65 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.082e-05/0.3706, allocations: 25.7 kB / 0.5331 GB, free: 11.62 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.32e-05/0.3707, allocations: 87.11 kB / 0.5331 GB, free: 11.54 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.36e-05/0.3707, allocations: 0 / 0.5331 GB, free: 11.54 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.54e-05/0.3707, allocations: 10.88 kB / 0.5331 GB, free: 11.52 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.538e-05/0.3708, allocations: 310.8 kB / 0.5334 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.024e-05/0.3708, allocations: 5.375 kB / 0.5334 GB, free: 11.2 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.3e-06/0.3708, allocations: 1.375 kB / 0.5335 GB, free: 11.2 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.555e-05/0.3709, allocations: 67 kB / 0.5335 GB, free: 11.12 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.3709, allocations: 4.062 kB / 0.5335 GB, free: 11.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.196e-05/0.371, allocations: 62.22 kB / 0.5336 GB, free: 11.05 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.621e-05/0.371, allocations: 32.58 kB / 0.5336 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.371, allocations: 0 / 0.5336 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.371, allocations: 3.938 kB / 0.5336 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.274e-06/0.3711, allocations: 3.984 kB / 0.5336 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/0.3711, allocations: 5.312 kB / 0.5336 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.66e-05/0.3711, allocations: 3.984 kB / 0.5336 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.181e-06/0.3711, 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 7.915e-05/0.3712, allocations: 146.3 kB / 0.5338 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.404e-06/0.3712, allocations: 0 / 0.5338 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.628e-06/0.3712, allocations: 8.438 kB / 0.5338 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.32e-07/0.3712, allocations: 0 / 0.5338 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.3712, allocations: 0 / 0.5338 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.3712, allocations: 1.375 kB / 0.5338 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.768e-05/0.3713, allocations: 147 kB / 0.5339 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.3713, allocations: 0 / 0.5339 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.3713, allocations: 0 / 0.5339 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.3713, allocations: 1.375 kB / 0.5339 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.795e-06/0.3713, allocations: 7.938 kB / 0.5339 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.3714, allocations: 0 / 0.5339 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3714, allocations: 1.375 kB / 0.5339 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.905e-05/0.3715, allocations: 93.77 kB / 0.534 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.21e-05/0.3715, allocations: 77.11 kB / 0.5341 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.285e-05/0.3715, allocations: 9.25 kB / 0.5341 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.967e-06/0.3715, allocations: 0 / 0.5341 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.128e-05/0.3716, allocations: 5.406 kB / 0.5341 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.935e-06/0.3716, allocations: 1.375 kB / 0.5341 GB, free: 10.44 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.342e-05/0.3716, allocations: 75.28 kB / 0.5342 GB, free: 10.36 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3716, allocations: 0 / 0.5342 GB, free: 10.36 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002645/0.3719, allocations: 35.36 kB / 0.5342 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.0004981/0.3724, allocations: 284.5 kB / 0.5345 GB, free: 10.18 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.382e-05/0.3725, allocations: 60.91 kB / 0.5345 GB, free: 10.11 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3725, allocations: 0 / 0.5345 GB, free: 10.11 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.619e-05/0.3725, allocations: 58.09 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.0001172/0.3726, allocations: 2.75 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.0001769/0.3728, allocations: 87.97 kB / 0.5347 GB, free: 9.938 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002434/0.3731, allocations: 0.6703 MB / 0.5353 GB, free: 9.242 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.961e-06/0.3731, allocations: 0 / 0.5353 GB, free: 9.242 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.137e-05/0.3731, allocations: 8.812 kB / 0.5353 GB, free: 9.234 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3731, allocations: 0 / 0.5353 GB, free: 9.234 MB / 398.1 MB Notification: Performance of Templates: time 0.004059/0.3772, allocations: 0.9782 MB / 0.5363 GB, free: 8.711 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