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.001438/0.001438, allocations: 114.3 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001608/0.001608, allocations: 210 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2218/0.2218, allocations: 46.11 MB / 344.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 75.88 kB / 482 MB, free: 4.098 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3278/0.3293, allocations: 62.44 MB / 0.5316 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001523/0.3309, allocations: 487.8 kB / 0.5321 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006988/0.3316, allocations: 299.1 kB / 0.5324 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.953e-05/0.3317, allocations: 3.938 kB / 0.5324 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.985e-05/0.3317, allocations: 0 / 0.5324 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.981e-06/0.3317, allocations: 0 / 0.5324 GB, free: 13.03 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.0008033/0.3325, allocations: 98.16 kB / 0.5325 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.273e-05/0.3326, allocations: 1.75 kB / 0.5325 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.895e-05/0.3326, allocations: 2.844 kB / 0.5325 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.479e-05/0.3326, allocations: 0 / 0.5325 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.192e-05/0.3327, allocations: 0 / 0.5325 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.742e-06/0.3327, allocations: 4 kB / 0.5325 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002065/0.3329, allocations: 114.3 kB / 0.5326 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.903e-06/0.3329, allocations: 0 / 0.5326 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.13e-05/0.3329, allocations: 0 / 0.5326 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001695/0.3331, allocations: 93.52 kB / 0.5327 GB, free: 12.84 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3331, allocations: 0 / 0.5327 GB, free: 12.84 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3331, allocations: 0 / 0.5327 GB, free: 12.84 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.162e-06/0.3331, allocations: 0 / 0.5327 GB, free: 12.84 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.0004343/0.3336, allocations: 355.1 kB / 0.533 GB, free: 12.45 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.3336, allocations: 9.625 kB / 0.533 GB, free: 12.45 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.444e-05/0.3337, allocations: 8.922 kB / 0.533 GB, free: 12.44 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001215/0.3338, allocations: 160.4 kB / 0.5332 GB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.548e-06/0.3338, allocations: 1.75 kB / 0.5332 GB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.495e-05/0.3338, allocations: 1.75 kB / 0.5332 GB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.752e-05/0.3339, allocations: 31.64 kB / 0.5332 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.334, allocations: 1.562 kB / 0.5332 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.568e-05/0.334, allocations: 7.875 kB / 0.5332 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.334, allocations: 0 / 0.5332 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.126e-05/0.334, allocations: 1.375 kB / 0.5332 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001558/0.3342, allocations: 151 kB / 0.5334 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.126e-05/0.3342, allocations: 17.33 kB / 0.5334 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.65e-05/0.3342, allocations: 4.859 kB / 0.5334 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.939e-06/0.3343, allocations: 1.375 kB / 0.5334 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.738e-05/0.3343, allocations: 61.64 kB / 0.5335 GB, free: 11.9 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.3343, allocations: 0 / 0.5335 GB, free: 11.9 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001822/0.3345, allocations: 70.27 kB / 0.5335 GB, free: 11.83 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.597e-05/0.3346, allocations: 82.48 kB / 0.5336 GB, free: 11.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.209e-05/0.3346, allocations: 93.8 kB / 0.5337 GB, free: 11.63 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.299e-05/0.3346, allocations: 27.08 kB / 0.5337 GB, free: 11.6 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.492e-05/0.3347, allocations: 80.14 kB / 0.5338 GB, free: 11.52 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.213e-05/0.3347, allocations: 4 kB / 0.5338 GB, free: 11.51 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.831e-05/0.3348, allocations: 12.47 kB / 0.5338 GB, free: 11.5 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.3349, allocations: 310.8 kB / 0.5341 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.007e-06/0.3349, allocations: 1.375 kB / 0.5341 GB, free: 11.18 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.948e-06/0.3349, allocations: 17.3 kB / 0.5341 GB, free: 11.17 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.624e-05/0.335, allocations: 62.95 kB / 0.5342 GB, free: 11.09 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.335, allocations: 1.375 kB / 0.5342 GB, free: 11.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.036e-05/0.3351, allocations: 62.28 kB / 0.5343 GB, free: 11.03 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.663e-05/0.3351, allocations: 31.2 kB / 0.5343 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.3351, allocations: 3.984 kB / 0.5343 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.3352, allocations: 3.938 kB / 0.5343 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.102e-06/0.3352, allocations: 1.375 kB / 0.5343 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.718e-06/0.3352, allocations: 4.094 kB / 0.5343 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.533e-05/0.3352, allocations: 0 / 0.5343 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.835e-06/0.3352, allocations: 1.375 kB / 0.5343 GB, free: 10.98 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.435e-05/0.3353, allocations: 138.2 kB / 0.5344 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.075e-06/0.3353, allocations: 0 / 0.5344 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.145e-05/0.3353, allocations: 8.438 kB / 0.5344 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-06/0.3353, allocations: 0 / 0.5344 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.3354, allocations: 0 / 0.5344 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.3354, allocations: 1.375 kB / 0.5344 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.378e-05/0.3355, allocations: 155 kB / 0.5346 GB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.3355, allocations: 0 / 0.5346 GB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.22e-07/0.3355, allocations: 0 / 0.5346 GB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.3355, allocations: 1.375 kB / 0.5346 GB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.125e-06/0.3355, allocations: 3.938 kB / 0.5346 GB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.3355, allocations: 5.312 kB / 0.5346 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.3355, allocations: 0 / 0.5346 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001022/0.3356, allocations: 89.83 kB / 0.5347 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.991e-05/0.3357, allocations: 85.12 kB / 0.5348 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.445e-05/0.3357, allocations: 5.312 kB / 0.5348 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.006e-05/0.3357, allocations: 1.375 kB / 0.5348 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.803e-05/0.3357, allocations: 0 / 0.5348 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.6e-06/0.3357, allocations: 9.297 kB / 0.5348 GB, free: 10.41 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.502e-05/0.3358, allocations: 75.28 kB / 0.5348 GB, free: 10.34 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3358, allocations: 0 / 0.5348 GB, free: 10.34 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002751/0.3361, allocations: 32.75 kB / 0.5349 GB, free: 10.33 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.0005853/0.3366, allocations: 280.7 kB / 0.5351 GB, free: 10.16 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001065/0.3368, allocations: 60.91 kB / 0.5352 GB, free: 10.09 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3368, allocations: 4.062 kB / 0.5352 GB, free: 10.09 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.452e-05/0.3368, allocations: 59.12 kB / 0.5353 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000134/0.337, allocations: 1.875 kB / 0.5353 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002986/0.3373, allocations: 105.2 kB / 0.5354 GB, free: 9.891 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003468/0.3376, allocations: 0.6703 MB / 0.536 GB, free: 9.195 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.357e-05/0.3376, allocations: 8.75 kB / 0.536 GB, free: 9.188 MB / 398.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3376, allocations: 0 / 0.536 GB, free: 9.188 MB / 398.1 MB Notification: Performance of Templates: time 0.002988/0.3406, allocations: 1.17 MB / 0.5372 GB, free: 8.582 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