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.001339/0.001339, allocations: 110.6 kB / 16.41 MB, free: 6.5 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.001509/0.001509, allocations: 188.2 kB / 17.34 MB, free: 5.742 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.673/1.673, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.2212/0.2212, allocations: 43.52 MB / 314.1 MB, free: 456 kB / 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.00134/0.00134, allocations: 65.47 kB / 441.8 MB, free: 5.672 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1271, allocations: 57.78 MB / 499.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001691/0.1288, allocations: 498.6 kB / 0.4883 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007974/0.1297, allocations: 293.9 kB / 0.4886 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.505e-05/0.1297, allocations: 4 kB / 0.4886 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.36e-05/0.1297, allocations: 0 / 0.4886 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.227e-06/0.1297, allocations: 0 / 0.4886 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008939/0.1306, allocations: 102.5 kB / 0.4887 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.423e-05/0.1307, allocations: 8 kB / 0.4887 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.712e-05/0.1308, allocations: 3.984 kB / 0.4887 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.172e-05/0.1308, allocations: 4 kB / 0.4887 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.321e-05/0.1308, allocations: 0 / 0.4887 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.873e-06/0.1308, allocations: 0 / 0.4887 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002088/0.1311, allocations: 99.89 kB / 0.4888 GB, free: 10.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.107e-05/0.1311, allocations: 3.984 kB / 0.4888 GB, free: 10.83 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.221e-05/0.1311, allocations: 11.94 kB / 0.4888 GB, free: 10.82 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000181/0.1313, allocations: 79.88 kB / 0.4889 GB, free: 10.74 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.1313, allocations: 0 / 0.4889 GB, free: 10.74 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1313, allocations: 4 kB / 0.4889 GB, free: 10.74 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.1313, allocations: 4 kB / 0.4889 GB, free: 10.73 MB / 382.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.0004275/0.1318, allocations: 357.3 kB / 0.4893 GB, free: 10.33 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.1318, allocations: 15.89 kB / 0.4893 GB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.841e-05/0.1318, allocations: 4.875 kB / 0.4893 GB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001133/0.132, allocations: 168.3 kB / 0.4894 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.325e-05/0.132, allocations: 4.359 kB / 0.4894 GB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.275e-06/0.132, allocations: 384 / 0.4894 GB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000102/0.1321, allocations: 34.27 kB / 0.4895 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.1321, allocations: 192 / 0.4895 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.094e-05/0.1321, allocations: 3.938 kB / 0.4895 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.1321, allocations: 0 / 0.4895 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.251e-05/0.1322, allocations: 4 kB / 0.4895 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001543/0.1323, allocations: 149.6 kB / 0.4896 GB, free: 9.859 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.338e-05/0.1324, allocations: 22.5 kB / 0.4896 GB, free: 9.828 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.61e-05/0.1324, allocations: 8.953 kB / 0.4897 GB, free: 9.816 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.01e-05/0.1324, allocations: 4 kB / 0.4897 GB, free: 9.812 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.744e-05/0.1325, allocations: 56.27 kB / 0.4897 GB, free: 9.742 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.283e-06/0.1325, allocations: 0 / 0.4897 GB, free: 9.742 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001899/0.1327, allocations: 67.34 kB / 0.4898 GB, free: 9.664 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.032e-05/0.1327, allocations: 81.09 kB / 0.4899 GB, free: 9.566 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.994e-05/0.1328, allocations: 93.8 kB / 0.4899 GB, free: 9.465 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.436e-05/0.1328, allocations: 25.7 kB / 0.49 GB, free: 9.434 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.667e-05/0.1328, allocations: 84.14 kB / 0.4901 GB, free: 9.348 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.704e-05/0.1329, allocations: 4.125 kB / 0.4901 GB, free: 9.344 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.536e-05/0.1329, allocations: 9.719 kB / 0.4901 GB, free: 9.328 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.133, allocations: 310.8 kB / 0.4904 GB, free: 9.016 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.207e-05/0.133, allocations: 4 kB / 0.4904 GB, free: 9.012 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.431e-06/0.133, allocations: 0 / 0.4904 GB, free: 9.012 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.229e-05/0.1331, allocations: 64.27 kB / 0.4904 GB, free: 8.934 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1331, allocations: 0 / 0.4904 GB, free: 8.934 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.193e-05/0.1332, allocations: 71.39 kB / 0.4905 GB, free: 8.852 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.214e-05/0.1332, allocations: 29.7 kB / 0.4905 GB, free: 8.816 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.1332, allocations: 4 kB / 0.4905 GB, free: 8.812 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.1333, allocations: 3.938 kB / 0.4905 GB, free: 8.809 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.1333, allocations: 3.938 kB / 0.4905 GB, free: 8.805 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.1333, allocations: 0 / 0.4905 GB, free: 8.805 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.754e-05/0.1333, allocations: 4 kB / 0.4905 GB, free: 8.801 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-06/0.1333, allocations: 0 / 0.4905 GB, free: 8.801 MB / 382.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.217e-05/0.1334, allocations: 143.5 kB / 0.4907 GB, free: 8.645 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.014e-05/0.1334, allocations: 11.97 kB / 0.4907 GB, free: 8.633 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.36e-05/0.1334, allocations: 7.062 kB / 0.4907 GB, free: 8.621 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.12e-07/0.1334, allocations: 0 / 0.4907 GB, free: 8.621 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.1334, allocations: 0 / 0.4907 GB, free: 8.621 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.1335, allocations: 0 / 0.4907 GB, free: 8.621 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001046/0.1336, allocations: 145.7 kB / 0.4908 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.1336, allocations: 0 / 0.4908 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.1336, allocations: 4 kB / 0.4908 GB, free: 8.426 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.1336, allocations: 0 / 0.4908 GB, free: 8.426 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.1336, allocations: 7.922 kB / 0.4908 GB, free: 8.418 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.1336, allocations: 0 / 0.4908 GB, free: 8.418 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1336, allocations: 4 kB / 0.4908 GB, free: 8.414 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001005/0.1337, allocations: 90.83 kB / 0.4909 GB, free: 8.301 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.986e-05/0.1338, allocations: 81.05 kB / 0.491 GB, free: 8.203 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.319e-05/0.1338, allocations: 3.938 kB / 0.491 GB, free: 8.199 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.886e-06/0.1338, allocations: 0 / 0.491 GB, free: 8.199 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.089e-05/0.1338, allocations: 4 kB / 0.491 GB, free: 8.195 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-06/0.1338, allocations: 0 / 0.491 GB, free: 8.195 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.502e-05/0.1338, allocations: 79.31 kB / 0.4911 GB, free: 8.117 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1338, allocations: 0 / 0.4911 GB, free: 8.117 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002655/0.1341, allocations: 35.98 kB / 0.4911 GB, free: 8.082 MB / 382.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.0004945/0.1346, allocations: 260.3 kB / 0.4914 GB, free: 7.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001056/0.1347, allocations: 63.39 kB / 0.4914 GB, free: 7.766 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.1347, allocations: 4.062 kB / 0.4914 GB, free: 7.762 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.932e-05/0.1348, allocations: 59.34 kB / 0.4915 GB, free: 7.691 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001336/0.1349, allocations: 4 kB / 0.4915 GB, free: 7.688 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001977/0.1351, allocations: 92.86 kB / 0.4916 GB, free: 7.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002303/0.1354, allocations: 0.6729 MB / 0.4922 GB, free: 6.871 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.781e-06/0.1354, allocations: 0 / 0.4922 GB, free: 6.871 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.072e-05/0.1354, allocations: 7.438 kB / 0.4923 GB, free: 6.863 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1354, allocations: 0 / 0.4923 GB, free: 6.863 MB / 382.1 MB Notification: Performance of Templates: time 0.003657/0.139, allocations: 0.9765 MB / 0.4932 GB, free: 5.887 MB / 382.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches