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.001669/0.001669, allocations: 108.2 kB / 18.39 MB, free: 4.762 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.00173/0.001731, allocations: 182.9 kB / 19.32 MB, free: 3.832 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.397/1.397, allocations: 222.9 MB / 243 MB, free: 15.15 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.2091/0.2091, allocations: 44.19 MB / 337.4 MB, free: 2.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 63.25 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1225, allocations: 60.83 MB / 470.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.00174/0.1242, allocations: 478.8 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007051/0.125, allocations: 297.6 kB / 471.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.681e-05/0.125, allocations: 0 / 471.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.567e-05/0.125, allocations: 4 kB / 471.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.409e-06/0.125, allocations: 0 / 471.5 MB, free: 12.91 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.0007381/0.1258, allocations: 95.52 kB / 471.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.681e-05/0.1258, allocations: 4 kB / 471.6 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.045e-05/0.1259, allocations: 0 / 471.6 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.618e-05/0.1259, allocations: 3.938 kB / 471.6 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.026e-05/0.1259, allocations: 3.984 kB / 471.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.372e-06/0.1259, allocations: 0 / 471.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001757/0.1261, allocations: 115.8 kB / 471.7 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.751e-06/0.1261, allocations: 0 / 471.7 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.802e-05/0.1261, allocations: 3.984 kB / 471.7 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001578/0.1263, allocations: 83.88 kB / 471.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1263, allocations: 0 / 471.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.582e-06/0.1263, allocations: 0 / 471.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.646e-06/0.1263, allocations: 0 / 471.8 MB, free: 12.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.0003332/0.1267, allocations: 365.2 kB / 472.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.1267, allocations: 8.031 kB / 472.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.986e-05/0.1267, allocations: 0.9375 kB / 472.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.396e-05/0.1268, allocations: 160.4 kB / 472.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.1269, allocations: 4.375 kB / 472.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.017e-05/0.1269, allocations: 384 / 472.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.66e-05/0.127, allocations: 34.25 kB / 472.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.127, allocations: 192 / 472.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/0.127, allocations: 11.94 kB / 472.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.219e-06/0.127, allocations: 0 / 472.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.71e-05/0.127, allocations: 3.938 kB / 472.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001235/0.1272, allocations: 145.7 kB / 472.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.596e-05/0.1272, allocations: 18.61 kB / 472.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.415e-05/0.1272, allocations: 16.83 kB / 472.5 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.123e-06/0.1272, allocations: 0 / 472.5 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.255e-05/0.1273, allocations: 60.33 kB / 472.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.1273, allocations: 0 / 472.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001617/0.1275, allocations: 67.28 kB / 472.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.939e-05/0.1275, allocations: 85.09 kB / 472.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.557e-05/0.1276, allocations: 93.8 kB / 472.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.169e-05/0.1276, allocations: 25.83 kB / 472.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.522e-05/0.1276, allocations: 84.14 kB / 472.9 MB, free: 11.22 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.374e-05/0.1276, allocations: 0 / 472.9 MB, free: 11.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.419e-05/0.1277, allocations: 17.72 kB / 472.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.1278, allocations: 310.8 kB / 473.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.618e-06/0.1278, allocations: 0 / 473.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.739e-06/0.1278, allocations: 0 / 473.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.524e-05/0.1279, allocations: 60.27 kB / 473.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1279, allocations: 8 kB / 473.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.945e-05/0.128, allocations: 67.33 kB / 473.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.073e-05/0.128, allocations: 36.05 kB / 473.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.128, allocations: 4 kB / 473.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.128, allocations: 3.938 kB / 473.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.41e-07/0.1281, allocations: 0 / 473.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.159e-06/0.1281, allocations: 0 / 473.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.56e-05/0.1281, allocations: 0 / 473.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-06/0.1281, allocations: 0 / 473.4 MB, free: 10.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 7.951e-05/0.1282, allocations: 143.6 kB / 473.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.253e-06/0.1282, allocations: 0 / 473.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.285e-05/0.1282, allocations: 11.02 kB / 473.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.1282, allocations: 0 / 473.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.1282, allocations: 0 / 473.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.1282, allocations: 0 / 473.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001367/0.1284, allocations: 149.7 kB / 473.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.92e-07/0.1284, allocations: 0 / 473.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.1284, allocations: 0 / 473.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.203e-06/0.1284, allocations: 0 / 473.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.243e-06/0.1284, allocations: 3.938 kB / 473.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.1284, allocations: 4 kB / 473.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.1284, allocations: 4 kB / 473.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.946e-05/0.1285, allocations: 90.77 kB / 473.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.001e-05/0.1285, allocations: 77.11 kB / 473.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.166e-05/0.1286, allocations: 7.938 kB / 473.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.077e-05/0.1286, allocations: 8 kB / 473.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.2e-05/0.1286, allocations: 0 / 473.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-06/0.1286, allocations: 4.031 kB / 473.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.939e-05/0.1286, allocations: 79.28 kB / 474 MB, free: 9.996 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1286, allocations: 0 / 474 MB, free: 9.996 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002344/0.1289, allocations: 35.98 kB / 474 MB, free: 9.961 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.0005348/0.1294, allocations: 288 kB / 474.3 MB, free: 9.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.896e-05/0.1295, allocations: 63.33 kB / 474.4 MB, free: 9.656 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.1295, allocations: 0 / 474.4 MB, free: 9.656 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.618e-05/0.1296, allocations: 55.41 kB / 474.4 MB, free: 9.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001312/0.1297, allocations: 7.516 kB / 474.4 MB, free: 9.586 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002016/0.1299, allocations: 93.05 kB / 474.5 MB, free: 9.469 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002472/0.1302, allocations: 0.6729 MB / 475.2 MB, free: 8.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.811e-06/0.1302, allocations: 0 / 475.2 MB, free: 8.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.128e-05/0.1302, allocations: 7.438 kB / 475.2 MB, free: 8.762 MB / 350.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1302, allocations: 0 / 475.2 MB, free: 8.762 MB / 350.1 MB Notification: Performance of Templates: time 0.003776/0.134, allocations: 0.9724 MB / 476.2 MB, free: 7.793 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches