Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001237/0.001237, allocations: 179.4 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.657/1.657, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007916/0.0007918, allocations: 103.6 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3588/0.3588, allocations: 43.56 MB / 362.7 MB, free: 52.07 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004289/0.000429, allocations: 12 kB / 431.4 MB, free: 6.188 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1178, allocations: 58.85 MB / 490.2 MB, free: 11.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0005818/0.1185, allocations: 220.4 kB / 490.4 MB, free: 11.04 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.000675/0.1192, allocations: 276.8 kB / 490.7 MB, free: 10.77 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.111e-05/0.1192, allocations: 0 / 490.7 MB, free: 10.77 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.239e-05/0.1192, allocations: 0 / 490.7 MB, free: 10.77 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.67e-06/0.1192, allocations: 0 / 490.7 MB, free: 10.77 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005336/0.1198, allocations: 75.84 kB / 490.8 MB, free: 10.7 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.284e-05/0.1198, allocations: 0 / 490.8 MB, free: 10.7 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.702e-05/0.1199, allocations: 0 / 490.8 MB, free: 10.7 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.84e-05/0.1199, allocations: 0 / 490.8 MB, free: 10.7 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.889e-05/0.1199, allocations: 4 kB / 490.8 MB, free: 10.69 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.141e-06/0.1199, allocations: 0 / 490.8 MB, free: 10.69 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001855/0.1201, allocations: 103.8 kB / 490.9 MB, free: 10.59 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.436e-06/0.1201, allocations: 7.984 kB / 490.9 MB, free: 10.58 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.191e-05/0.1202, allocations: 25.7 kB / 490.9 MB, free: 10.55 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001274/0.1203, allocations: 55.84 kB / 491 MB, free: 10.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1203, allocations: 4 kB / 491 MB, free: 10.49 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1203, allocations: 0 / 491 MB, free: 10.49 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.107e-06/0.1203, allocations: 0 / 491 MB, free: 10.49 MB / 378.7 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.0003343/0.1207, allocations: 353.1 kB / 491.3 MB, free: 10.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/0.1207, allocations: 8.031 kB / 491.3 MB, free: 10.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.306e-05/0.1208, allocations: 4 kB / 491.3 MB, free: 10.08 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001207/0.1209, allocations: 167 kB / 491.5 MB, free: 9.879 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.08e-05/0.1209, allocations: 0 / 491.5 MB, free: 9.879 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.153e-05/0.1209, allocations: 3.984 kB / 491.5 MB, free: 9.875 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.204e-05/0.121, allocations: 33.64 kB / 491.5 MB, free: 9.836 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.773e-06/0.121, allocations: 0 / 491.5 MB, free: 9.836 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.946e-06/0.1211, allocations: 0 / 491.5 MB, free: 9.836 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.1211, allocations: 0 / 491.5 MB, free: 9.836 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.058e-05/0.1211, allocations: 4 kB / 491.5 MB, free: 9.832 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001475/0.1212, allocations: 149.6 kB / 491.7 MB, free: 9.637 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.933e-05/0.1213, allocations: 22.56 kB / 491.7 MB, free: 9.605 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.456e-05/0.1213, allocations: 6.031 kB / 491.7 MB, free: 9.598 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.117e-06/0.1213, allocations: 3.984 kB / 491.7 MB, free: 9.594 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.76e-05/0.1214, allocations: 60.36 kB / 491.8 MB, free: 9.52 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.263e-06/0.1214, allocations: 3.938 kB / 491.8 MB, free: 9.516 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001945/0.1216, allocations: 67.31 kB / 491.8 MB, free: 9.438 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.227e-05/0.1217, allocations: 85.16 kB / 491.9 MB, free: 9.336 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.565e-05/0.1217, allocations: 97.8 kB / 492 MB, free: 9.23 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.269e-05/0.1217, allocations: 25.7 kB / 492.1 MB, free: 9.199 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.462e-05/0.1218, allocations: 80.14 kB / 492.1 MB, free: 9.117 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.013e-05/0.1218, allocations: 0 / 492.1 MB, free: 9.117 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.705e-06/0.1218, allocations: 0 / 492.1 MB, free: 9.117 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.122, allocations: 322.8 kB / 492.4 MB, free: 8.793 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.955e-06/0.122, allocations: 0 / 492.4 MB, free: 8.793 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.869e-06/0.122, allocations: 0 / 492.4 MB, free: 8.793 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.928e-05/0.122, allocations: 33.77 kB / 492.5 MB, free: 8.754 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.122, allocations: 0 / 492.5 MB, free: 8.754 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.762e-05/0.1221, allocations: 63.33 kB / 492.5 MB, free: 8.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.513e-05/0.1221, allocations: 33.7 kB / 492.6 MB, free: 8.641 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.1222, allocations: 0 / 492.6 MB, free: 8.641 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.1222, allocations: 0 / 492.6 MB, free: 8.641 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.092e-06/0.1222, allocations: 0 / 492.6 MB, free: 8.641 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.1222, allocations: 0 / 492.6 MB, free: 8.641 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.736e-05/0.1222, allocations: 0 / 492.6 MB, free: 8.641 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.003e-05/0.1222, allocations: 4 kB / 492.6 MB, free: 8.637 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.839e-05/0.1223, allocations: 147.5 kB / 492.7 MB, free: 8.477 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.05e-05/0.1224, allocations: 3.984 kB / 492.7 MB, free: 8.473 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.326e-05/0.1224, allocations: 3.125 kB / 492.7 MB, free: 8.469 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.1224, allocations: 4 kB / 492.7 MB, free: 8.465 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.1224, allocations: 0 / 492.7 MB, free: 8.465 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.1224, allocations: 0 / 492.7 MB, free: 8.465 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001064/0.1225, allocations: 145.6 kB / 492.9 MB, free: 8.273 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1225, allocations: 0 / 492.9 MB, free: 8.273 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.244e-06/0.1225, allocations: 4 kB / 492.9 MB, free: 8.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.604e-06/0.1225, allocations: 11.98 kB / 492.9 MB, free: 8.258 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.772e-06/0.1226, allocations: 0 / 492.9 MB, free: 8.258 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.1226, allocations: 0 / 492.9 MB, free: 8.258 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1226, allocations: 0 / 492.9 MB, free: 8.258 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.936e-05/0.1227, allocations: 94.77 kB / 493 MB, free: 8.141 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.936e-05/0.1227, allocations: 85.05 kB / 493.1 MB, free: 8.039 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.287e-05/0.1227, allocations: 0 / 493.1 MB, free: 8.039 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.187e-05/0.1228, allocations: 0 / 493.1 MB, free: 8.039 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.938e-05/0.1228, allocations: 4.031 kB / 493.1 MB, free: 8.035 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.009e-06/0.1228, allocations: 7.938 kB / 493.1 MB, free: 8.027 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.791e-05/0.1228, allocations: 75.28 kB / 493.2 MB, free: 7.953 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1228, allocations: 0 / 493.2 MB, free: 7.953 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002492/0.1231, allocations: 36 kB / 493.2 MB, free: 7.918 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005355/0.1236, allocations: 271.2 kB / 493.5 MB, free: 7.672 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001/0.1237, allocations: 67.34 kB / 493.5 MB, free: 7.594 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1238, allocations: 0 / 493.5 MB, free: 7.594 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.361e-05/0.1238, allocations: 59.39 kB / 493.6 MB, free: 7.523 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001283/0.1239, allocations: 3.938 kB / 493.6 MB, free: 7.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002014/0.1241, allocations: 100.5 kB / 493.7 MB, free: 7.387 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002545/0.1244, allocations: 0.6731 MB / 494.4 MB, free: 6.688 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.21e-05/0.1244, allocations: 7.438 kB / 494.4 MB, free: 6.68 MB / 378.7 MB Notification: Performance of SimCode: time 3.2e-07/0.1244, allocations: 8.125 kB / 494.4 MB, free: 6.672 MB / 378.7 MB Notification: Performance of Templates: time 0.002873/0.1273, allocations: 1.131 MB / 495.5 MB, free: 5.539 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches