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.001074/0.001074, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001199/0.001199, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.344/1.344, allocations: 222.9 MB / 242.2 MB, free: 15.21 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.2069/0.2069, allocations: 44.19 MB / 336.6 MB, free: 2.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 68.27 kB / 408.4 MB, free: 27.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1086, allocations: 60.82 MB / 469.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001576/0.1102, allocations: 483.2 kB / 469.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006388/0.1108, allocations: 297.6 kB / 470 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.723e-05/0.1108, allocations: 0 / 470 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.171e-05/0.1109, allocations: 0 / 470 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.478e-06/0.1109, allocations: 0 / 470 MB, free: 13.61 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.0007001/0.1116, allocations: 95.7 kB / 470.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.436e-05/0.1116, allocations: 4 kB / 470.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.003e-05/0.1117, allocations: 7.875 kB / 470.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.295e-05/0.1117, allocations: 0 / 470.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.709e-05/0.1117, allocations: 0 / 470.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.909e-06/0.1117, allocations: 0 / 470.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001604/0.1119, allocations: 103.9 kB / 470.2 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.121e-06/0.1119, allocations: 4 kB / 470.2 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.467e-05/0.1119, allocations: 0 / 470.2 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001373/0.1121, allocations: 91.8 kB / 470.3 MB, free: 13.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.1121, allocations: 0 / 470.3 MB, free: 13.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1121, allocations: 0 / 470.3 MB, free: 13.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.1121, allocations: 0 / 470.3 MB, free: 13.31 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.0002939/0.1124, allocations: 369.2 kB / 470.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.852e-05/0.1124, allocations: 8.031 kB / 470.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.729e-05/0.1124, allocations: 4.922 kB / 470.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.468e-05/0.1125, allocations: 160.4 kB / 470.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.137e-06/0.1126, allocations: 8.375 kB / 470.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.761e-06/0.1126, allocations: 384 / 470.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.906e-05/0.1126, allocations: 26.27 kB / 470.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.1127, allocations: 4.188 kB / 470.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.316e-06/0.1127, allocations: 3.938 kB / 470.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.306e-06/0.1127, allocations: 0 / 470.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.588e-05/0.1127, allocations: 3.938 kB / 470.9 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001146/0.1128, allocations: 149.7 kB / 471 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.588e-05/0.1129, allocations: 22.61 kB / 471 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.301e-05/0.1129, allocations: 4.859 kB / 471.1 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.418e-06/0.1129, allocations: 0 / 471.1 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.226e-05/0.1129, allocations: 64.33 kB / 471.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.1129, allocations: 0 / 471.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001879/0.1131, allocations: 75.27 kB / 471.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.03e-05/0.1132, allocations: 77.11 kB / 471.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.206e-05/0.1133, allocations: 93.98 kB / 471.4 MB, free: 12.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.054e-05/0.1133, allocations: 25.7 kB / 471.4 MB, free: 12.01 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.118e-05/0.1133, allocations: 80.14 kB / 471.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.542e-05/0.1133, allocations: 0 / 471.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.413e-05/0.1134, allocations: 13.72 kB / 471.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.276e-05/0.1135, allocations: 314.8 kB / 471.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.257e-06/0.1135, allocations: 0 / 471.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.839e-06/0.1135, allocations: 3.938 kB / 471.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.671e-05/0.1135, allocations: 68.33 kB / 471.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.1136, allocations: 0 / 471.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.975e-05/0.1136, allocations: 63.34 kB / 471.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.724e-05/0.1136, allocations: 33.69 kB / 471.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.1137, allocations: 7.938 kB / 472 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.1137, allocations: 3.938 kB / 472 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.62e-07/0.1137, allocations: 0 / 472 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.727e-06/0.1137, allocations: 0 / 472 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.349e-05/0.1137, allocations: 0 / 472 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.685e-06/0.1137, allocations: 4.016 kB / 472 MB, free: 11.38 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.387e-05/0.1138, allocations: 143.5 kB / 472.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.093e-06/0.1138, allocations: 0 / 472.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.099e-05/0.1138, allocations: 11.02 kB / 472.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.1138, allocations: 0 / 472.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.1138, allocations: 0 / 472.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.1138, allocations: 7.984 kB / 472.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.845e-05/0.1139, allocations: 141.7 kB / 472.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.1139, allocations: 0 / 472.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.1139, allocations: 0 / 472.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.114, allocations: 4 kB / 472.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.803e-06/0.114, allocations: 3.938 kB / 472.3 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.114, allocations: 4 kB / 472.3 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.114, allocations: 0 / 472.3 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.044e-05/0.1141, allocations: 90.77 kB / 472.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.589e-05/0.1141, allocations: 81.11 kB / 472.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.196e-05/0.1141, allocations: 3.938 kB / 472.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.325e-06/0.1141, allocations: 4.031 kB / 472.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.107e-05/0.1142, allocations: 3.984 kB / 472.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.295e-06/0.1142, allocations: 0 / 472.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.595e-05/0.1142, allocations: 75.28 kB / 472.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1142, allocations: 4 kB / 472.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002432/0.1145, allocations: 28 kB / 472.6 MB, free: 10.67 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.0004748/0.1149, allocations: 290.5 kB / 472.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.331e-05/0.115, allocations: 59.41 kB / 472.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1151, allocations: 0 / 472.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.395e-05/0.1151, allocations: 59.34 kB / 473 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001214/0.1152, allocations: 12.11 kB / 473 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001501/0.1154, allocations: 88.92 kB / 473.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001813/0.1156, allocations: 0.669 MB / 473.7 MB, free: 9.484 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.849e-06/0.1156, allocations: 0 / 473.7 MB, free: 9.484 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.037e-06/0.1156, allocations: 11.38 kB / 473.7 MB, free: 9.473 MB / 350.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1156, allocations: 0 / 473.7 MB, free: 9.473 MB / 350.1 MB Notification: Performance of Templates: time 0.003536/0.1191, allocations: 0.9714 MB / 474.7 MB, free: 8.504 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches