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.001434/0.001434, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001342/0.001342, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2224/0.2224, allocations: 46.13 MB / 344.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 71.88 kB / 481.3 MB, free: 4.062 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3448/0.3463, allocations: 62.44 MB / 0.531 GB, free: 13.57 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001511/0.3478, allocations: 492.8 kB / 0.5315 GB, free: 13.21 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000669/0.3485, allocations: 294.8 kB / 0.5318 GB, free: 13 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.722e-05/0.3485, allocations: 3.938 kB / 0.5318 GB, free: 13 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.24e-05/0.3485, allocations: 1.594 kB / 0.5318 GB, free: 13 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.661e-06/0.3485, allocations: 0 / 0.5318 GB, free: 13 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.0007004/0.3493, allocations: 99.59 kB / 0.5319 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.512e-05/0.3493, allocations: 1.5 kB / 0.5319 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.613e-05/0.3494, allocations: 1.25 kB / 0.5319 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.498e-05/0.3494, allocations: 1.312 kB / 0.5319 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.075e-05/0.3494, allocations: 4 kB / 0.5319 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.412e-06/0.3494, allocations: 0 / 0.5319 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001999/0.3496, allocations: 109.5 kB / 0.532 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.829e-06/0.3496, allocations: 1.375 kB / 0.532 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.125e-05/0.3497, allocations: 3.984 kB / 0.532 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001785/0.3498, allocations: 87.73 kB / 0.5321 GB, free: 12.82 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3499, allocations: 0 / 0.5321 GB, free: 12.82 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.3499, allocations: 0 / 0.5321 GB, free: 12.82 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.596e-06/0.3499, allocations: 3.984 kB / 0.5321 GB, free: 12.82 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.0003498/0.3502, allocations: 360.6 kB / 0.5324 GB, free: 12.42 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.3503, allocations: 14.72 kB / 0.5324 GB, free: 12.42 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.013e-05/0.3503, allocations: 0.9375 kB / 0.5325 GB, free: 12.42 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.549e-05/0.3504, allocations: 160.4 kB / 0.5326 GB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.225e-05/0.3504, allocations: 2.156 kB / 0.5326 GB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.754e-06/0.3504, allocations: 384 / 0.5326 GB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.156e-05/0.3505, allocations: 28.05 kB / 0.5326 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.693e-06/0.3505, allocations: 2 kB / 0.5326 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.368e-06/0.3505, allocations: 3.938 kB / 0.5326 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.638e-06/0.3506, allocations: 3.938 kB / 0.5326 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.309e-05/0.3506, allocations: 13.77 kB / 0.5327 GB, free: 12.17 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001262/0.3507, allocations: 147.4 kB / 0.5328 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.166e-05/0.3508, allocations: 20.38 kB / 0.5328 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.371e-05/0.3508, allocations: 4.859 kB / 0.5328 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.905e-06/0.3508, allocations: 1.781 kB / 0.5328 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.21e-05/0.3508, allocations: 60.27 kB / 0.5329 GB, free: 11.87 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.202e-06/0.3509, allocations: 0 / 0.5329 GB, free: 11.87 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001813/0.351, allocations: 75.8 kB / 0.533 GB, free: 11.79 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.554e-05/0.3511, allocations: 77.11 kB / 0.533 GB, free: 11.7 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.418e-05/0.3512, allocations: 99.22 kB / 0.5331 GB, free: 11.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.696e-05/0.3512, allocations: 25.7 kB / 0.5331 GB, free: 11.56 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.325e-05/0.3512, allocations: 80.14 kB / 0.5332 GB, free: 11.48 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.714e-05/0.3512, allocations: 1.5 kB / 0.5332 GB, free: 11.48 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.766e-05/0.3513, allocations: 15.06 kB / 0.5332 GB, free: 11.46 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.3514, allocations: 316.3 kB / 0.5335 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.738e-06/0.3514, allocations: 4 kB / 0.5335 GB, free: 11.14 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.28e-06/0.3514, allocations: 1.344 kB / 0.5335 GB, free: 11.14 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.197e-05/0.3515, allocations: 60.2 kB / 0.5336 GB, free: 11.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3515, allocations: 0 / 0.5336 GB, free: 11.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.292e-05/0.3515, allocations: 65.62 kB / 0.5337 GB, free: 11 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.755e-05/0.3516, allocations: 36.34 kB / 0.5337 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.3516, allocations: 0 / 0.5337 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.3516, allocations: 7.938 kB / 0.5337 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.284e-06/0.3516, allocations: 6.094 kB / 0.5337 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.3516, allocations: 0 / 0.5337 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.682e-05/0.3517, allocations: 0 / 0.5337 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.941e-06/0.3517, allocations: 2.844 kB / 0.5337 GB, free: 10.95 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.799e-05/0.3518, allocations: 135.5 kB / 0.5338 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.177e-06/0.3518, allocations: 1.969 kB / 0.5338 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.083e-05/0.3518, allocations: 7.062 kB / 0.5339 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.3518, allocations: 3.984 kB / 0.5339 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.3518, allocations: 0 / 0.5339 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.3518, allocations: 6 kB / 0.5339 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.995e-05/0.3519, allocations: 141.7 kB / 0.534 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3519, allocations: 2.094 kB / 0.534 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.3519, allocations: 0 / 0.534 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-06/0.3519, allocations: 0 / 0.534 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.574e-06/0.352, allocations: 3.938 kB / 0.534 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.352, allocations: 2.25 kB / 0.534 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.352, allocations: 0 / 0.534 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.442e-05/0.3521, allocations: 96.98 kB / 0.5341 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.299e-05/0.3521, allocations: 85.05 kB / 0.5342 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.649e-05/0.3521, allocations: 10.8 kB / 0.5342 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.105e-06/0.3521, allocations: 0 / 0.5342 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.4e-05/0.3522, allocations: 0 / 0.5342 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.617e-06/0.3522, allocations: 7.188 kB / 0.5342 GB, free: 10.38 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.397e-05/0.3522, allocations: 75.28 kB / 0.5343 GB, free: 10.3 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3522, allocations: 0 / 0.5343 GB, free: 10.3 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002605/0.3525, allocations: 29.78 kB / 0.5343 GB, free: 10.3 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.0005376/0.353, allocations: 281.9 kB / 0.5346 GB, free: 10.12 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.325e-05/0.3531, allocations: 60.91 kB / 0.5346 GB, free: 10.05 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3531, allocations: 0 / 0.5346 GB, free: 10.05 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.443e-05/0.3532, allocations: 62.08 kB / 0.5347 GB, free: 9.98 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00012/0.3533, allocations: 2.75 kB / 0.5347 GB, free: 9.98 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001767/0.3535, allocations: 79.94 kB / 0.5348 GB, free: 9.883 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002146/0.3537, allocations: 0.6703 MB / 0.5354 GB, free: 9.188 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.711e-06/0.3537, allocations: 0 / 0.5354 GB, free: 9.188 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.053e-05/0.3537, allocations: 8.812 kB / 0.5354 GB, free: 9.18 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3537, allocations: 128 / 0.5354 GB, free: 9.18 MB / 398.1 MB Notification: Performance of Templates: time 0.003458/0.3572, allocations: 0.9727 MB / 0.5364 GB, free: 8.66 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