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.001174/0.001173, allocations: 115.2 kB / 17.08 MB, free: 6.012 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.001195/0.001195, allocations: 195 kB / 18.01 MB, free: 5.094 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.324/1.324, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.2023/0.2023, allocations: 43.52 MB / 314.8 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.001382/0.001382, allocations: 63.91 kB / 442.4 MB, free: 5.688 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1082, allocations: 57.79 MB / 0.4885 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001541/0.1098, allocations: 498 kB / 0.489 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007413/0.1106, allocations: 287.7 kB / 0.4893 GB, free: 11.06 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.994e-05/0.1106, allocations: 0 / 0.4893 GB, free: 11.06 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.192e-05/0.1106, allocations: 0 / 0.4893 GB, free: 11.06 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.012e-06/0.1107, allocations: 3.938 kB / 0.4893 GB, free: 11.06 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008078/0.1115, allocations: 106.1 kB / 0.4894 GB, free: 10.96 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.981e-05/0.1115, allocations: 8 kB / 0.4894 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.412e-05/0.1116, allocations: 0 / 0.4894 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.59e-05/0.1116, allocations: 4 kB / 0.4894 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.466e-05/0.1116, allocations: 3.984 kB / 0.4894 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.592e-06/0.1116, allocations: 0 / 0.4894 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001976/0.1118, allocations: 103.9 kB / 0.4895 GB, free: 10.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.324e-06/0.1119, allocations: 3.938 kB / 0.4895 GB, free: 10.84 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.677e-05/0.1119, allocations: 12 kB / 0.4895 GB, free: 10.83 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001526/0.1121, allocations: 75.88 kB / 0.4896 GB, free: 10.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.1121, allocations: 4 kB / 0.4896 GB, free: 10.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1121, allocations: 4 kB / 0.4896 GB, free: 10.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.705e-06/0.1121, allocations: 0 / 0.4896 GB, free: 10.75 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.0003315/0.1124, allocations: 368.6 kB / 0.4899 GB, free: 10.33 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/0.1125, allocations: 15.89 kB / 0.4899 GB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.979e-05/0.1125, allocations: 0.9375 kB / 0.4899 GB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.307e-05/0.1126, allocations: 164.3 kB / 0.4901 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.1126, allocations: 384 / 0.4901 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.014e-06/0.1126, allocations: 384 / 0.4901 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.216e-05/0.1127, allocations: 42.23 kB / 0.4901 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.1127, allocations: 192 / 0.4901 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/0.1127, allocations: 3.938 kB / 0.4901 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.1128, allocations: 0 / 0.4901 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.993e-05/0.1128, allocations: 4 kB / 0.4901 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001364/0.1129, allocations: 149.6 kB / 0.4903 GB, free: 9.867 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.938e-05/0.113, allocations: 18.52 kB / 0.4903 GB, free: 9.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.639e-05/0.113, allocations: 8.953 kB / 0.4903 GB, free: 9.828 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.708e-06/0.113, allocations: 7.984 kB / 0.4903 GB, free: 9.82 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.241e-05/0.1131, allocations: 56.27 kB / 0.4904 GB, free: 9.75 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.283e-06/0.1131, allocations: 0 / 0.4904 GB, free: 9.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001707/0.1132, allocations: 71.33 kB / 0.4904 GB, free: 9.668 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.98e-05/0.1133, allocations: 81.05 kB / 0.4905 GB, free: 9.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.143e-05/0.1133, allocations: 89.86 kB / 0.4906 GB, free: 9.473 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.1134, allocations: 33.69 kB / 0.4906 GB, free: 9.434 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.365e-05/0.1134, allocations: 80.27 kB / 0.4907 GB, free: 9.352 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.551e-05/0.1134, allocations: 7.938 kB / 0.4907 GB, free: 9.344 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.761e-05/0.1135, allocations: 9.719 kB / 0.4907 GB, free: 9.328 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.1136, allocations: 314.8 kB / 0.491 GB, free: 9.012 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.152e-05/0.1136, allocations: 4 kB / 0.491 GB, free: 9.008 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.969e-06/0.1136, allocations: 0 / 0.491 GB, free: 9.008 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.409e-05/0.1137, allocations: 60.27 kB / 0.4911 GB, free: 8.934 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.1137, allocations: 0 / 0.4911 GB, free: 8.934 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.015e-05/0.1137, allocations: 71.39 kB / 0.4912 GB, free: 8.852 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.942e-05/0.1138, allocations: 29.7 kB / 0.4912 GB, free: 8.816 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.1138, allocations: 0 / 0.4912 GB, free: 8.816 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.1138, allocations: 3.938 kB / 0.4912 GB, free: 8.812 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-07/0.1138, allocations: 0 / 0.4912 GB, free: 8.812 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.498e-06/0.1138, allocations: 0 / 0.4912 GB, free: 8.812 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.966e-05/0.1139, allocations: 4 kB / 0.4912 GB, free: 8.809 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-06/0.1139, allocations: 3.938 kB / 0.4912 GB, free: 8.805 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 8.385e-05/0.114, allocations: 143.5 kB / 0.4913 GB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.868e-06/0.114, allocations: 12.03 kB / 0.4913 GB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.427e-05/0.114, allocations: 7.062 kB / 0.4914 GB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.114, allocations: 0 / 0.4914 GB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.114, allocations: 0 / 0.4914 GB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.114, allocations: 0 / 0.4914 GB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.337e-05/0.1141, allocations: 141.7 kB / 0.4915 GB, free: 8.438 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1141, allocations: 4 kB / 0.4915 GB, free: 8.434 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.084e-06/0.1141, allocations: 3.984 kB / 0.4915 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.1141, allocations: 0 / 0.4915 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.765e-06/0.1141, allocations: 3.938 kB / 0.4915 GB, free: 8.426 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.02e-07/0.1141, allocations: 0 / 0.4915 GB, free: 8.426 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1142, allocations: 4 kB / 0.4915 GB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001025/0.1143, allocations: 94.77 kB / 0.4916 GB, free: 8.305 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.79e-05/0.1143, allocations: 77.11 kB / 0.4917 GB, free: 8.211 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.139e-05/0.1143, allocations: 3.938 kB / 0.4917 GB, free: 8.207 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.043e-05/0.1143, allocations: 4 kB / 0.4917 GB, free: 8.203 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.428e-05/0.1144, allocations: 0 / 0.4917 GB, free: 8.203 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-06/0.1144, allocations: 0 / 0.4917 GB, free: 8.203 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.88e-05/0.1144, allocations: 79.31 kB / 0.4918 GB, free: 8.125 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1144, allocations: 0 / 0.4918 GB, free: 8.125 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002496/0.1147, allocations: 35.98 kB / 0.4918 GB, free: 8.09 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.0005023/0.1152, allocations: 259.9 kB / 0.492 GB, free: 7.848 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.532e-05/0.1153, allocations: 67.33 kB / 0.4921 GB, free: 7.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1153, allocations: 4.062 kB / 0.4921 GB, free: 7.766 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.579e-05/0.1153, allocations: 51.41 kB / 0.4922 GB, free: 7.703 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001195/0.1154, allocations: 4 kB / 0.4922 GB, free: 7.699 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001761/0.1156, allocations: 118.6 kB / 0.4923 GB, free: 7.551 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002384/0.1159, allocations: 0.6729 MB / 0.4929 GB, free: 6.852 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.021e-05/0.1159, allocations: 11.38 kB / 0.4929 GB, free: 6.84 MB / 382.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1159, allocations: 0 / 0.4929 GB, free: 6.84 MB / 382.1 MB Notification: Performance of Templates: time 0.002619/0.1185, allocations: 1.147 MB / 0.4941 GB, free: 5.691 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches