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.001481/0.001481, allocations: 110.5 kB / 17.32 MB, free: 6.008 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.001868/0.001868, allocations: 193.3 kB / 18.25 MB, free: 5.105 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.328/1.328, allocations: 222.9 MB / 241.9 MB, free: 15.41 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.2103/0.2103, allocations: 44.17 MB / 336.2 MB, free: 2.926 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 64.05 kB / 407.9 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1146, allocations: 60.82 MB / 468.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001823/0.1164, allocations: 0.5408 MB / 469.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006388/0.1171, allocations: 297.6 kB / 469.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.485e-05/0.1171, allocations: 0 / 469.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.427e-05/0.1171, allocations: 0 / 469.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.478e-06/0.1172, allocations: 0 / 469.5 MB, free: 13.9 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.0007413/0.1179, allocations: 86.38 kB / 469.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.99e-05/0.118, allocations: 7.984 kB / 469.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.911e-05/0.118, allocations: 3.938 kB / 469.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.53e-05/0.118, allocations: 4 kB / 469.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.871e-05/0.1181, allocations: 0 / 469.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.641e-06/0.1181, allocations: 0 / 469.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001691/0.1182, allocations: 107.8 kB / 469.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.792e-06/0.1183, allocations: 0 / 469.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.743e-05/0.1183, allocations: 0 / 469.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001615/0.1184, allocations: 91.86 kB / 469.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.257e-06/0.1185, allocations: 0 / 469.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1185, allocations: 4 kB / 469.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.1185, allocations: 0 / 469.8 MB, free: 13.61 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.0003525/0.1188, allocations: 361.2 kB / 470.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.445e-05/0.1189, allocations: 8.031 kB / 470.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.983e-05/0.1189, allocations: 0.9375 kB / 470.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.506e-05/0.119, allocations: 164.4 kB / 470.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.068e-05/0.119, allocations: 384 / 470.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.913e-06/0.119, allocations: 384 / 470.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.643e-05/0.1191, allocations: 38.19 kB / 470.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.101e-06/0.1191, allocations: 4.188 kB / 470.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.005e-05/0.1192, allocations: 3.938 kB / 470.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.147e-06/0.1192, allocations: 0 / 470.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.674e-05/0.1192, allocations: 0 / 470.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001125/0.1193, allocations: 145.7 kB / 470.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.314e-05/0.1194, allocations: 18.61 kB / 470.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.54e-05/0.1194, allocations: 8.844 kB / 470.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.594e-06/0.1194, allocations: 0 / 470.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.227e-05/0.1194, allocations: 72.2 kB / 470.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.1194, allocations: 0 / 470.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001764/0.1196, allocations: 67.34 kB / 470.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.565e-05/0.1197, allocations: 77.11 kB / 470.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.718e-05/0.1197, allocations: 93.84 kB / 470.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.119e-05/0.1198, allocations: 25.7 kB / 470.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.126e-05/0.1198, allocations: 80.14 kB / 471 MB, free: 12.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.57e-05/0.1198, allocations: 4.125 kB / 471 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.678e-05/0.1198, allocations: 13.72 kB / 471 MB, free: 12.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.828e-05/0.1199, allocations: 310.8 kB / 471.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.217e-05/0.12, allocations: 4 kB / 471.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.045e-06/0.12, allocations: 7.938 kB / 471.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.464e-05/0.12, allocations: 60.2 kB / 471.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.12, allocations: 0 / 471.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.503e-05/0.1201, allocations: 63.48 kB / 471.4 MB, free: 11.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.125e-05/0.1202, allocations: 37.7 kB / 471.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.1202, allocations: 0 / 471.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.1202, allocations: 3.938 kB / 471.5 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.1202, allocations: 0 / 471.5 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.211e-06/0.1202, allocations: 4 kB / 471.5 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.51e-05/0.1202, allocations: 3.984 kB / 471.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.793e-06/0.1202, allocations: 0 / 471.5 MB, free: 11.68 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.824e-05/0.1203, allocations: 143.5 kB / 471.6 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.305e-06/0.1203, allocations: 0 / 471.6 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.576e-05/0.1204, allocations: 15.02 kB / 471.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.1204, allocations: 0 / 471.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.1204, allocations: 0 / 471.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.1204, allocations: 4 kB / 471.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001016/0.1205, allocations: 145.7 kB / 471.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.1205, allocations: 0 / 471.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-07/0.1205, allocations: 3.938 kB / 471.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.1205, allocations: 0 / 471.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.127e-05/0.1205, allocations: 7.938 kB / 471.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.1206, allocations: 0 / 471.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1206, allocations: 4 kB / 471.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.39e-05/0.1207, allocations: 86.83 kB / 471.9 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.128e-05/0.1207, allocations: 81.11 kB / 472 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.363e-05/0.1207, allocations: 3.938 kB / 472 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.488e-06/0.1207, allocations: 0 / 472 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.455e-05/0.1208, allocations: 0 / 472 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.796e-06/0.1208, allocations: 0 / 472 MB, free: 11.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.58e-05/0.1208, allocations: 83.31 kB / 472 MB, free: 11.01 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.1208, allocations: 3.938 kB / 472 MB, free: 11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002411/0.1211, allocations: 39.98 kB / 472.1 MB, free: 10.96 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.0005137/0.1216, allocations: 282.8 kB / 472.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.323e-05/0.1217, allocations: 63.33 kB / 472.4 MB, free: 10.67 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.1217, allocations: 0 / 472.4 MB, free: 10.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.82e-05/0.1217, allocations: 55.41 kB / 472.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001184/0.1218, allocations: 4 kB / 472.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001648/0.122, allocations: 84.84 kB / 472.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002175/0.1222, allocations: 0.6808 MB / 473.2 MB, free: 9.785 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.961e-06/0.1222, allocations: 0 / 473.2 MB, free: 9.785 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.217e-05/0.1223, allocations: 7.438 kB / 473.3 MB, free: 9.777 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1223, allocations: 0 / 473.3 MB, free: 9.777 MB / 350.1 MB Notification: Performance of Templates: time 0.003453/0.1257, allocations: 0.9714 MB / 474.2 MB, free: 8.809 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