Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 93.97 kB / 18 MB, free: 5.602 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.001278/0.001278, allocations: 177.2 kB / 18.91 MB, free: 4.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 223.3 MB / 243 MB, free: 14.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1841/0.1841, allocations: 44.25 MB / 338.3 MB, free: 2.363 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003176/0.0003176, allocations: 11.98 kB / 411 MB, free: 27.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.109, allocations: 61.93 MB / 472.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0005847/0.1096, allocations: 205.4 kB / 473.1 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007025/0.1104, allocations: 294.6 kB / 473.4 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.228e-06/0.1104, allocations: 0 / 473.4 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.145e-05/0.1104, allocations: 0 / 473.4 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.12e-06/0.1104, allocations: 4 kB / 473.4 MB, free: 12.78 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:222:3-288: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.0008264/0.1113, allocations: 77.14 kB / 473.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.206e-05/0.1113, allocations: 0 / 473.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.486e-05/0.1113, allocations: 0 / 473.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.16e-05/0.1114, allocations: 11.92 kB / 473.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.043e-05/0.1114, allocations: 0 / 473.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.001e-06/0.1114, allocations: 4 kB / 473.5 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001849/0.1116, allocations: 99.91 kB / 473.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.895e-06/0.1116, allocations: 0 / 473.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.881e-05/0.1117, allocations: 25.7 kB / 473.6 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001369/0.1118, allocations: 59.89 kB / 473.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.1118, allocations: 0 / 473.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1118, allocations: 3.938 kB / 473.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.657e-06/0.1118, allocations: 0 / 473.7 MB, free: 12.5 MB / 350.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.0003073/0.1121, allocations: 361.2 kB / 474 MB, free: 12.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.1122, allocations: 12.03 kB / 474 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.727e-05/0.1122, allocations: 4.938 kB / 474.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.528e-05/0.1123, allocations: 160.4 kB / 474.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.214e-05/0.1123, allocations: 384 / 474.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.117e-06/0.1123, allocations: 384 / 474.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.097e-05/0.1124, allocations: 34.25 kB / 474.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.352e-06/0.1124, allocations: 192 / 474.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.1124, allocations: 7.938 kB / 474.2 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.1125, allocations: 0 / 474.2 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.89e-05/0.1125, allocations: 7.984 kB / 474.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001075/0.1126, allocations: 149.7 kB / 474.4 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.597e-05/0.1126, allocations: 18.52 kB / 474.4 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.295e-05/0.1127, allocations: 8.953 kB / 474.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.735e-06/0.1127, allocations: 7.922 kB / 474.4 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.761e-05/0.1127, allocations: 56.27 kB / 474.5 MB, free: 11.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.213e-06/0.1127, allocations: 0 / 474.5 MB, free: 11.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001518/0.1129, allocations: 67.28 kB / 474.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.213e-05/0.1129, allocations: 85.23 kB / 474.6 MB, free: 11.33 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.351e-05/0.113, allocations: 89.86 kB / 474.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.002e-05/0.113, allocations: 33.69 kB / 474.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.155e-05/0.113, allocations: 80.14 kB / 474.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.459e-05/0.113, allocations: 0 / 474.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.195e-05/0.1131, allocations: 9.719 kB / 474.8 MB, free: 11.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.879e-05/0.1131, allocations: 310.8 kB / 475.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.345e-06/0.1132, allocations: 0 / 475.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.727e-06/0.1132, allocations: 8 kB / 475.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.173e-05/0.1132, allocations: 60.27 kB / 475.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.1132, allocations: 4 kB / 475.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.671e-05/0.1133, allocations: 63.33 kB / 475.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.303e-05/0.1133, allocations: 33.7 kB / 475.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.1134, allocations: 0 / 475.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.1134, allocations: 7.875 kB / 475.3 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-07/0.1134, allocations: 0 / 475.3 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.1134, allocations: 0 / 475.3 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.589e-05/0.1134, allocations: 4.094 kB / 475.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.1134, allocations: 0 / 475.3 MB, free: 10.57 MB / 350.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.069e-05/0.1135, allocations: 135.5 kB / 475.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.095e-06/0.1135, allocations: 3.984 kB / 475.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.299e-05/0.1135, allocations: 15.02 kB / 475.5 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.1135, allocations: 4 kB / 475.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1135, allocations: 0 / 475.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.573e-06/0.1135, allocations: 0 / 475.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.106e-05/0.1136, allocations: 141.7 kB / 475.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.1136, allocations: 4 kB / 475.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.1136, allocations: 0 / 475.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.1137, allocations: 3.984 kB / 475.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.1137, allocations: 7.938 kB / 475.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.1137, allocations: 0 / 475.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.1137, allocations: 0 / 475.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.42e-05/0.1138, allocations: 90.78 kB / 475.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.96e-05/0.1138, allocations: 81.09 kB / 475.8 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.313e-05/0.1138, allocations: 7.969 kB / 475.8 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.237e-06/0.1138, allocations: 0 / 475.8 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.028e-05/0.1139, allocations: 0 / 475.8 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.408e-06/0.1139, allocations: 4 kB / 475.8 MB, free: 9.977 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.488e-05/0.1139, allocations: 79.22 kB / 475.9 MB, free: 9.898 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1139, allocations: 0 / 475.9 MB, free: 9.898 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002312/0.1141, allocations: 36 kB / 475.9 MB, free: 9.863 MB / 350.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.0004789/0.1146, allocations: 280 kB / 476.2 MB, free: 9.645 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.638e-05/0.1147, allocations: 59.41 kB / 476.3 MB, free: 9.574 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.1147, allocations: 4 kB / 476.3 MB, free: 9.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.808e-05/0.1148, allocations: 59.45 kB / 476.3 MB, free: 9.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001391/0.1149, allocations: 4 kB / 476.3 MB, free: 9.496 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001567/0.1151, allocations: 104.3 kB / 476.4 MB, free: 9.359 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002199/0.1153, allocations: 0.6731 MB / 477.1 MB, free: 8.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.408e-06/0.1153, allocations: 7.438 kB / 477.1 MB, free: 8.652 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1153, allocations: 0 / 477.1 MB, free: 8.652 MB / 350.1 MB Notification: Performance of Templates: time 0.00253/0.1178, allocations: 1.155 MB / 478.3 MB, free: 7.496 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches