Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001138/0.001138, allocations: 108.8 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001301/0.001302, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.4 MB / 246.4 MB, free: 10.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.219/0.219, allocations: 46.11 MB / 343.8 MB, free: 11.73 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002473/0.002473, allocations: 80.16 kB / 417 MB, free: 20.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1264, allocations: 62.45 MB / 479.5 MB, free: 5.621 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.00174/0.1281, allocations: 0.5332 MB / 480 MB, free: 5.082 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006039/0.1288, allocations: 253.9 kB / 480.3 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.488e-05/0.1288, allocations: 0 / 480.3 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.329e-05/0.1288, allocations: 4 kB / 480.3 MB, free: 4.832 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.639e-06/0.1289, allocations: 0 / 480.3 MB, free: 4.832 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:398:3-453:15:writable] Warning: Pure function ‘ModelicaTest.Utilities.Internal‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0003089/0.1292, allocations: 39.91 kB / 480.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.298e-05/0.1292, allocations: 0 / 480.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.528e-05/0.1293, allocations: 7.969 kB / 480.3 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.564e-05/0.1293, allocations: 11.94 kB / 480.3 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.793e-05/0.1293, allocations: 0 / 480.3 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.274e-06/0.1293, allocations: 0 / 480.3 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001291/0.1294, allocations: 63.95 kB / 480.4 MB, free: 4.711 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.513e-06/0.1295, allocations: 0 / 480.4 MB, free: 4.711 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.107e-05/0.1295, allocations: 0 / 480.4 MB, free: 4.711 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001182/0.1296, allocations: 55.92 kB / 480.4 MB, free: 4.656 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1296, allocations: 0 / 480.4 MB, free: 4.656 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.1296, allocations: 0 / 480.4 MB, free: 4.656 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.668e-06/0.1296, allocations: 0 / 480.4 MB, free: 4.656 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.0002978/0.1299, allocations: 365.2 kB / 480.8 MB, free: 4.242 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.13, allocations: 8.031 kB / 480.8 MB, free: 4.234 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.055e-05/0.13, allocations: 8.938 kB / 480.8 MB, free: 4.227 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.014e-05/0.1301, allocations: 164.3 kB / 481 MB, free: 4.027 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.095e-06/0.1301, allocations: 384 / 481 MB, free: 4.027 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.938e-06/0.1301, allocations: 384 / 481 MB, free: 4.027 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.655e-05/0.1302, allocations: 34.25 kB / 481 MB, free: 3.988 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.084e-06/0.1302, allocations: 192 / 481 MB, free: 3.988 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.597e-06/0.1302, allocations: 3.938 kB / 481 MB, free: 3.984 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.386e-06/0.1303, allocations: 0 / 481 MB, free: 3.984 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.508e-05/0.1303, allocations: 4 kB / 481 MB, free: 3.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001215/0.1304, allocations: 149.7 kB / 481.2 MB, free: 3.785 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.707e-05/0.1304, allocations: 18.52 kB / 481.2 MB, free: 3.758 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.344e-05/0.1305, allocations: 4.859 kB / 481.2 MB, free: 3.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.412e-06/0.1305, allocations: 4.031 kB / 481.2 MB, free: 3.746 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.822e-05/0.1305, allocations: 64.25 kB / 481.2 MB, free: 3.668 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.1305, allocations: 4 kB / 481.3 MB, free: 3.664 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001465/0.1307, allocations: 67.34 kB / 481.3 MB, free: 3.586 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.317e-05/0.1307, allocations: 77.11 kB / 481.4 MB, free: 3.492 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.774e-05/0.1308, allocations: 89.86 kB / 481.5 MB, free: 3.395 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.266e-05/0.1308, allocations: 29.64 kB / 481.5 MB, free: 3.359 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.237e-05/0.1308, allocations: 80.14 kB / 481.6 MB, free: 3.277 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.688e-05/0.1309, allocations: 0 / 481.6 MB, free: 3.277 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.162e-05/0.1309, allocations: 21.7 kB / 481.6 MB, free: 3.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.131, allocations: 315 kB / 481.9 MB, free: 2.934 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.457e-06/0.131, allocations: 0 / 481.9 MB, free: 2.934 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.462e-06/0.131, allocations: 4 kB / 481.9 MB, free: 2.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.639e-05/0.1311, allocations: 56.27 kB / 482 MB, free: 2.859 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.1311, allocations: 4 kB / 482 MB, free: 2.855 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.831e-05/0.1312, allocations: 67.33 kB / 482 MB, free: 2.777 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.098e-05/0.1312, allocations: 36.36 kB / 482.1 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.107e-06/0.1312, allocations: 0 / 482.1 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.1313, allocations: 8.031 kB / 482.1 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.094e-06/0.1313, allocations: 3.938 kB / 482.1 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.1313, allocations: 0 / 482.1 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.475e-05/0.1313, allocations: 0 / 482.1 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-06/0.1313, allocations: 0 / 482.1 MB, free: 2.727 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.457e-05/0.1314, allocations: 135.5 kB / 482.2 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.664e-06/0.1314, allocations: 0 / 482.2 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.362e-05/0.1314, allocations: 11.05 kB / 482.2 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.1314, allocations: 4 kB / 482.2 MB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.1314, allocations: 4 kB / 482.2 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-06/0.1314, allocations: 0 / 482.2 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.183e-05/0.1315, allocations: 141.7 kB / 482.4 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1315, allocations: 0 / 482.4 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.72e-07/0.1315, allocations: 0 / 482.4 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.1315, allocations: 3.984 kB / 482.4 MB, free: 2.371 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.786e-06/0.1315, allocations: 11.92 kB / 482.4 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.1316, allocations: 0 / 482.4 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.1316, allocations: 4 kB / 482.4 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.552e-05/0.1316, allocations: 90.84 kB / 482.5 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.762e-05/0.1317, allocations: 81.09 kB / 482.6 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.243e-05/0.1317, allocations: 7.875 kB / 482.6 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.005e-05/0.1317, allocations: 4 kB / 482.6 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.139e-05/0.1317, allocations: 0 / 482.6 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.589e-06/0.1318, allocations: 4 kB / 482.6 MB, free: 2.129 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.342e-05/0.1318, allocations: 79.22 kB / 482.7 MB, free: 2.051 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1318, allocations: 0 / 482.7 MB, free: 2.051 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002149/0.132, allocations: 20 kB / 482.7 MB, free: 2.031 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.0005472/0.1326, allocations: 289.3 kB / 483 MB, free: 1.789 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001103/0.1327, allocations: 59.41 kB / 483 MB, free: 1.719 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1327, allocations: 0 / 483 MB, free: 1.719 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.421e-05/0.1327, allocations: 55.41 kB / 483.1 MB, free: 1.652 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001291/0.1329, allocations: 0 / 483.1 MB, free: 1.652 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001853/0.1331, allocations: 84.83 kB / 483.2 MB, free: 1.543 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002636/0.1333, allocations: 0.6729 MB / 483.8 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.572e-06/0.1333, allocations: 4 kB / 483.8 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.132e-05/0.1334, allocations: 7.438 kB / 483.8 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1334, allocations: 4 kB / 483.8 MB, free: 0.832 MB / 350.1 MB Notification: Performance of Templates: time 0.003423/0.1368, allocations: 0.7886 MB / 484.6 MB, free: 48 kB / 350.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches