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.0008958/0.000896, allocations: 95.92 kB / 17.35 MB, free: 6.344 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.001076/0.001077, allocations: 168.8 kB / 18.25 MB, free: 5.508 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.423/1.423, allocations: 223.3 MB / 242.3 MB, free: 14.48 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.2173/0.2173, allocations: 44.25 MB / 337.7 MB, free: 2.426 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004192/0.0004192, allocations: 8 kB / 410.3 MB, free: 27.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1236, allocations: 61.92 MB / 472.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0006551/0.1243, allocations: 209.2 kB / 472.4 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007851/0.1251, allocations: 294.6 kB / 472.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.25e-05/0.1251, allocations: 7.938 kB / 472.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.376e-05/0.1251, allocations: 4 kB / 472.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.5e-06/0.1251, allocations: 0 / 472.7 MB, free: 12.83 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.0008517/0.126, allocations: 70.36 kB / 472.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.317e-05/0.1261, allocations: 0 / 472.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.078e-05/0.1261, allocations: 3.984 kB / 472.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.279e-05/0.1261, allocations: 7.938 kB / 472.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.571e-05/0.1262, allocations: 0 / 472.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.522e-06/0.1262, allocations: 0 / 472.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000187/0.1264, allocations: 99.91 kB / 472.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.598e-06/0.1264, allocations: 0 / 472.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.927e-05/0.1264, allocations: 33.69 kB / 473 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001752/0.1266, allocations: 87.88 kB / 473 MB, free: 12.53 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1266, allocations: 3.938 kB / 473 MB, free: 12.53 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1266, allocations: 0 / 473 MB, free: 12.53 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.1266, allocations: 0 / 473 MB, free: 12.53 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.000359/0.127, allocations: 367.5 kB / 473.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.1271, allocations: 8.031 kB / 473.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.808e-05/0.1271, allocations: 4.938 kB / 473.4 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001097/0.1272, allocations: 168.3 kB / 473.6 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.1272, allocations: 4.375 kB / 473.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.051e-05/0.1272, allocations: 384 / 473.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.269e-05/0.1273, allocations: 30.27 kB / 473.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.1274, allocations: 192 / 473.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.147e-05/0.1274, allocations: 3.938 kB / 473.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.1274, allocations: 0 / 473.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.009e-05/0.1274, allocations: 4 kB / 473.6 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001551/0.1276, allocations: 141.7 kB / 473.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.272e-05/0.1276, allocations: 30.59 kB / 473.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.201e-05/0.1276, allocations: 8.859 kB / 473.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.082e-06/0.1276, allocations: 0 / 473.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001123/0.1278, allocations: 56.27 kB / 473.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.1278, allocations: 0 / 473.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001815/0.128, allocations: 71.27 kB / 473.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.5e-05/0.128, allocations: 77.11 kB / 474 MB, free: 11.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.365e-05/0.1281, allocations: 97.98 kB / 474.1 MB, free: 11.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.59e-05/0.1281, allocations: 29.7 kB / 474.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.867e-05/0.1282, allocations: 80.14 kB / 474.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.755e-05/0.1282, allocations: 0 / 474.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.443e-05/0.1282, allocations: 9.719 kB / 474.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000227/0.1285, allocations: 310.8 kB / 474.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.887e-06/0.1285, allocations: 0 / 474.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.082e-06/0.1285, allocations: 4 kB / 474.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.413e-05/0.1285, allocations: 64.33 kB / 474.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.1285, allocations: 3.938 kB / 474.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.494e-05/0.1286, allocations: 67.33 kB / 474.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001134/0.1288, allocations: 33.7 kB / 474.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.1288, allocations: 0 / 474.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.1288, allocations: 3.938 kB / 474.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.673e-06/0.1288, allocations: 0 / 474.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.1288, allocations: 0 / 474.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.84e-05/0.1288, allocations: 0 / 474.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.294e-05/0.1288, allocations: 4 kB / 474.7 MB, free: 10.61 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 9.405e-05/0.1289, allocations: 139.6 kB / 474.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.344e-06/0.129, allocations: 0 / 474.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.662e-05/0.129, allocations: 11.02 kB / 474.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.129, allocations: 4 kB / 474.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.129, allocations: 0 / 474.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.129, allocations: 0 / 474.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001372/0.1291, allocations: 149.7 kB / 475 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.1292, allocations: 0 / 475 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.6e-07/0.1292, allocations: 3.938 kB / 475 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.1292, allocations: 4 kB / 475 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/0.1292, allocations: 7.938 kB / 475 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.1292, allocations: 0 / 475 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1292, allocations: 0 / 475 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002334/0.1294, allocations: 94.77 kB / 475.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.32e-05/0.1295, allocations: 77.11 kB / 475.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.676e-05/0.1295, allocations: 7.922 kB / 475.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.488e-06/0.1295, allocations: 0 / 475.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.492e-05/0.1296, allocations: 8.031 kB / 475.2 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.369e-06/0.1296, allocations: 4 kB / 475.2 MB, free: 9.996 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000136/0.1297, allocations: 75.28 kB / 475.3 MB, free: 9.922 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1297, allocations: 0 / 475.3 MB, free: 9.922 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002675/0.13, allocations: 35.98 kB / 475.3 MB, free: 9.887 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.0005397/0.1305, allocations: 277.3 kB / 475.6 MB, free: 9.672 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.388e-05/0.1306, allocations: 59.39 kB / 475.6 MB, free: 9.602 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1306, allocations: 4 kB / 475.6 MB, free: 9.598 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.142e-05/0.1307, allocations: 55.41 kB / 475.7 MB, free: 9.531 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000132/0.1308, allocations: 8.062 kB / 475.7 MB, free: 9.523 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001799/0.131, allocations: 78.67 kB / 475.8 MB, free: 9.418 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002264/0.1312, allocations: 0.677 MB / 476.5 MB, free: 8.715 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.841e-06/0.1313, allocations: 0 / 476.5 MB, free: 8.715 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.967e-06/0.1313, allocations: 7.438 kB / 476.5 MB, free: 8.707 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.1313, allocations: 0 / 476.5 MB, free: 8.707 MB / 350.1 MB Notification: Performance of Templates: time 0.00401/0.1353, allocations: 0.9603 MB / 477.4 MB, free: 7.75 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