Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 107.8 kB / 16.64 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 188.5 kB / 17.56 MB, free: 5.801 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.43/1.43, allocations: 205.1 MB / 223.4 MB, free: 12.44 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2018/0.2018, allocations: 43.52 MB / 314.3 MB, free: 0.6992 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 61.11 kB / 382.9 MB, free: 56.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09456/0.09595, allocations: 57.79 MB / 440.7 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001539/0.09752, allocations: 0.5426 MB / 441.2 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005774/0.09812, allocations: 292.6 kB / 441.5 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.467e-05/0.09814, allocations: 4 kB / 441.5 MB, free: 6.527 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.343e-05/0.09816, allocations: 0 / 441.5 MB, free: 6.527 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.468e-06/0.09818, allocations: 0 / 441.5 MB, free: 6.527 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007289/0.09891, allocations: 91.22 kB / 441.6 MB, free: 6.441 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 4.664e-05/0.09897, allocations: 8 kB / 441.6 MB, free: 6.434 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.177e-05/0.09901, allocations: 0 / 441.6 MB, free: 6.434 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.546e-05/0.09903, allocations: 0 / 441.6 MB, free: 6.434 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.908e-05/0.09905, allocations: 0 / 441.6 MB, free: 6.434 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.33e-06/0.09906, allocations: 4 kB / 441.6 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001367/0.0992, allocations: 99.91 kB / 441.7 MB, free: 6.332 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.452e-06/0.09922, allocations: 3.938 kB / 441.7 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.218e-05/0.09925, allocations: 7.984 kB / 441.7 MB, free: 6.32 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.468e-05/0.09935, allocations: 55.84 kB / 441.7 MB, free: 6.266 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.09935, allocations: 0 / 441.7 MB, free: 6.266 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.09936, allocations: 0 / 441.7 MB, free: 6.266 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.93e-06/0.09937, allocations: 0 / 441.7 MB, free: 6.266 MB / 318.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.0002899/0.09966, allocations: 361.3 kB / 442.1 MB, free: 5.855 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.2e-05/0.0997, allocations: 11.89 kB / 442.1 MB, free: 5.844 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.754e-05/0.09973, allocations: 8.844 kB / 442.1 MB, free: 5.836 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.791e-05/0.09979, allocations: 164.4 kB / 442.3 MB, free: 5.637 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.0998, allocations: 4.375 kB / 442.3 MB, free: 5.633 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.818e-06/0.09982, allocations: 384 / 442.3 MB, free: 5.633 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.053e-05/0.09989, allocations: 38.2 kB / 442.3 MB, free: 5.59 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.221e-06/0.0999, allocations: 192 / 442.3 MB, free: 5.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.276e-06/0.09992, allocations: 3.938 kB / 442.3 MB, free: 5.586 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.486e-06/0.09992, allocations: 0 / 442.3 MB, free: 5.586 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.729e-05/0.09994, allocations: 0 / 442.3 MB, free: 5.586 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.818e-05/0.1, allocations: 153.6 kB / 442.5 MB, free: 5.387 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.222e-05/0.1001, allocations: 18.58 kB / 442.5 MB, free: 5.359 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.046e-05/0.1001, allocations: 4.859 kB / 442.5 MB, free: 5.352 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.923e-06/0.1001, allocations: 3.938 kB / 442.5 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.594e-05/0.1001, allocations: 64.33 kB / 442.6 MB, free: 5.27 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.1001, allocations: 0 / 442.6 MB, free: 5.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001315/0.1003, allocations: 67.33 kB / 442.6 MB, free: 5.191 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.418e-05/0.1003, allocations: 77.11 kB / 442.7 MB, free: 5.098 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.704e-05/0.1003, allocations: 89.98 kB / 442.8 MB, free: 5 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.56e-06/0.1003, allocations: 29.7 kB / 442.8 MB, free: 4.965 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.847e-06/0.1003, allocations: 80.14 kB / 442.9 MB, free: 4.883 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.686e-05/0.1004, allocations: 288 / 442.9 MB, free: 4.883 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.161e-05/0.1004, allocations: 17.72 kB / 442.9 MB, free: 4.859 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.71e-05/0.1004, allocations: 310.8 kB / 443.2 MB, free: 4.547 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.216e-06/0.1004, allocations: 0 / 443.2 MB, free: 4.547 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.801e-06/0.1005, allocations: 7.938 kB / 443.2 MB, free: 4.539 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.724e-05/0.1005, allocations: 64.31 kB / 443.3 MB, free: 4.461 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1005, allocations: 4 kB / 443.3 MB, free: 4.457 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.785e-05/0.1005, allocations: 59.41 kB / 443.4 MB, free: 4.387 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.1006, allocations: 33.7 kB / 443.4 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.898e-06/0.1006, allocations: 0 / 443.4 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.1006, allocations: 3.938 kB / 443.4 MB, free: 4.344 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.393e-06/0.1006, allocations: 4 kB / 443.4 MB, free: 4.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.1006, allocations: 3.984 kB / 443.4 MB, free: 4.336 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.566e-05/0.1006, allocations: 7.922 kB / 443.4 MB, free: 4.328 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.051e-06/0.1006, allocations: 3.938 kB / 443.4 MB, free: 4.324 MB / 318.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 4.662e-05/0.1007, allocations: 143.5 kB / 443.6 MB, free: 4.168 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.213e-06/0.1007, allocations: 0 / 443.6 MB, free: 4.168 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.014e-05/0.1007, allocations: 7.062 kB / 443.6 MB, free: 4.16 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.1007, allocations: 3.938 kB / 443.6 MB, free: 4.156 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1007, allocations: 4 kB / 443.6 MB, free: 4.152 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.1007, allocations: 3.984 kB / 443.6 MB, free: 4.148 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.742e-05/0.1008, allocations: 149.7 kB / 443.7 MB, free: 3.953 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.1008, allocations: 0 / 443.7 MB, free: 3.953 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.1008, allocations: 0 / 443.7 MB, free: 3.953 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.1008, allocations: 4 kB / 443.7 MB, free: 3.949 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.1008, allocations: 11.88 kB / 443.7 MB, free: 3.938 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.1008, allocations: 0 / 443.7 MB, free: 3.938 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.1008, allocations: 0 / 443.7 MB, free: 3.938 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.019e-05/0.1009, allocations: 94.83 kB / 443.8 MB, free: 3.82 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.74e-05/0.1009, allocations: 77.11 kB / 443.9 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.287e-05/0.1009, allocations: 3.938 kB / 443.9 MB, free: 3.723 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.928e-06/0.101, allocations: 4.031 kB / 443.9 MB, free: 3.719 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.405e-05/0.101, allocations: 0 / 443.9 MB, free: 3.719 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.297e-06/0.101, allocations: 4 kB / 443.9 MB, free: 3.715 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.768e-05/0.101, allocations: 75.28 kB / 444 MB, free: 3.641 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.101, allocations: 0 / 444 MB, free: 3.641 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002293/0.1012, allocations: 31.98 kB / 444 MB, free: 3.609 MB / 318.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.0004859/0.1017, allocations: 271.5 kB / 444.3 MB, free: 3.391 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 8.814e-05/0.1018, allocations: 55.41 kB / 444.3 MB, free: 3.324 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1018, allocations: 0 / 444.3 MB, free: 3.324 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.744e-05/0.1019, allocations: 55.41 kB / 444.4 MB, free: 3.258 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001252/0.102, allocations: 4 kB / 444.4 MB, free: 3.254 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000146/0.1021, allocations: 102.8 kB / 444.5 MB, free: 3.121 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.608e-05/0.1022, allocations: 0.669 MB / 445.2 MB, free: 2.426 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.649e-06/0.1023, allocations: 11.44 kB / 445.2 MB, free: 2.414 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1023, allocations: 4.125 kB / 445.2 MB, free: 2.41 MB / 318.1 MB Notification: Performance of Templates: time 0.00208/0.1043, allocations: 1.151 MB / 446.3 MB, free: 1.258 MB / 318.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestStreams/TestStreams.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches