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.001157/0.001157, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001124/0.001124, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 227.4 MB / 247.5 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2085/0.2085, allocations: 46.11 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 79.88 kB / 419 MB, free: 19.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1112, allocations: 62.43 MB / 481.4 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001596/0.1128, allocations: 485.9 kB / 481.9 MB, free: 4.074 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005266/0.1133, allocations: 257.8 kB / 482.2 MB, free: 3.824 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.079e-05/0.1134, allocations: 4 kB / 482.2 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.948e-06/0.1134, allocations: 0 / 482.2 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.938e-06/0.1134, allocations: 0 / 482.2 MB, free: 3.82 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.0002836/0.1137, allocations: 47.83 kB / 482.2 MB, free: 3.773 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.846e-05/0.1137, allocations: 7.938 kB / 482.2 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.625e-05/0.1138, allocations: 7.984 kB / 482.2 MB, free: 3.758 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.612e-05/0.1138, allocations: 7.922 kB / 482.2 MB, free: 3.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.773e-05/0.1138, allocations: 0 / 482.2 MB, free: 3.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.486e-06/0.1138, allocations: 0 / 482.2 MB, free: 3.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001337/0.114, allocations: 59.95 kB / 482.3 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.382e-06/0.114, allocations: 0 / 482.3 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.723e-05/0.114, allocations: 8 kB / 482.3 MB, free: 3.684 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001116/0.1141, allocations: 55.92 kB / 482.4 MB, free: 3.629 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1141, allocations: 0 / 482.4 MB, free: 3.629 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1142, allocations: 0 / 482.4 MB, free: 3.629 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.1142, allocations: 0 / 482.4 MB, free: 3.629 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.0002823/0.1144, allocations: 361.2 kB / 482.7 MB, free: 3.219 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.214e-05/0.1145, allocations: 12.03 kB / 482.7 MB, free: 3.207 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.446e-05/0.1145, allocations: 0.9375 kB / 482.7 MB, free: 3.207 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.087e-05/0.1146, allocations: 160.4 kB / 482.9 MB, free: 3.012 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.177e-06/0.1146, allocations: 4.375 kB / 482.9 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.946e-06/0.1146, allocations: 4.375 kB / 482.9 MB, free: 3.004 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.593e-05/0.1147, allocations: 34.25 kB / 482.9 MB, free: 2.965 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.851e-06/0.1147, allocations: 192 / 482.9 MB, free: 2.965 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.235e-06/0.1147, allocations: 3.938 kB / 482.9 MB, free: 2.961 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.369e-06/0.1147, allocations: 0 / 482.9 MB, free: 2.961 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.849e-05/0.1148, allocations: 7.922 kB / 482.9 MB, free: 2.953 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001112/0.1149, allocations: 149.7 kB / 483.1 MB, free: 2.758 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.613e-05/0.1149, allocations: 22.56 kB / 483.1 MB, free: 2.727 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.399e-05/0.1149, allocations: 8.953 kB / 483.1 MB, free: 2.715 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.101e-06/0.115, allocations: 0 / 483.1 MB, free: 2.715 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.306e-05/0.115, allocations: 60.2 kB / 483.2 MB, free: 2.641 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.31e-07/0.115, allocations: 0 / 483.2 MB, free: 2.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001426/0.1152, allocations: 71.28 kB / 483.2 MB, free: 2.559 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.453e-05/0.1152, allocations: 81.09 kB / 483.3 MB, free: 2.461 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.588e-05/0.1152, allocations: 89.86 kB / 483.4 MB, free: 2.363 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.154e-05/0.1153, allocations: 29.83 kB / 483.4 MB, free: 2.328 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.725e-05/0.1153, allocations: 80.14 kB / 483.5 MB, free: 2.246 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.532e-05/0.1153, allocations: 4 kB / 483.5 MB, free: 2.242 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.392e-05/0.1153, allocations: 9.719 kB / 483.5 MB, free: 2.227 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.1155, allocations: 310.8 kB / 483.8 MB, free: 1.914 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.349e-05/0.1155, allocations: 8 kB / 483.8 MB, free: 1.906 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.32e-06/0.1155, allocations: 0 / 483.8 MB, free: 1.906 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.394e-05/0.1155, allocations: 64.33 kB / 483.9 MB, free: 1.828 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1155, allocations: 0 / 483.9 MB, free: 1.828 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.864e-05/0.1156, allocations: 67.33 kB / 484 MB, free: 1.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.627e-05/0.1156, allocations: 29.7 kB / 484 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-06/0.1157, allocations: 3.938 kB / 484 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.1157, allocations: 3.938 kB / 484 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.1157, allocations: 0 / 484 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.878e-06/0.1157, allocations: 0 / 484 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.565e-05/0.1157, allocations: 4 kB / 484 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.551e-06/0.1157, allocations: 0 / 484 MB, free: 1.703 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.2e-05/0.1158, allocations: 143.6 kB / 484.1 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.846e-06/0.1158, allocations: 4 kB / 484.2 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.235e-06/0.1158, allocations: 7.062 kB / 484.2 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.41e-07/0.1158, allocations: 0 / 484.2 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.1158, allocations: 0 / 484.2 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.073e-06/0.1158, allocations: 0 / 484.2 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.901e-05/0.1159, allocations: 145.7 kB / 484.3 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.1159, allocations: 0 / 484.3 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.783e-06/0.1159, allocations: 4 kB / 484.3 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.193e-06/0.1159, allocations: 4 kB / 484.3 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-06/0.116, allocations: 3.938 kB / 484.3 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.116, allocations: 0 / 484.3 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.116, allocations: 0 / 484.3 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.815e-05/0.1161, allocations: 94.77 kB / 484.4 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.767e-05/0.1161, allocations: 77.11 kB / 484.5 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.358e-05/0.1161, allocations: 7.938 kB / 484.5 MB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.075e-06/0.1161, allocations: 0 / 484.5 MB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.254e-05/0.1161, allocations: 8.031 kB / 484.5 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.514e-06/0.1161, allocations: 0 / 484.5 MB, free: 1.109 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.673e-05/0.1162, allocations: 75.28 kB / 484.6 MB, free: 1.035 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1162, allocations: 3.938 kB / 484.6 MB, free: 1.031 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002231/0.1164, allocations: 27.98 kB / 484.6 MB, free: 1.004 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.0004541/0.1169, allocations: 273.5 kB / 484.9 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.1e-05/0.117, allocations: 63.34 kB / 484.9 MB, free: 0.707 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.117, allocations: 0 / 484.9 MB, free: 0.707 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.826e-05/0.117, allocations: 59.47 kB / 485 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001193/0.1171, allocations: 0 / 485 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001468/0.1173, allocations: 88.83 kB / 485.1 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002229/0.1175, allocations: 0.6729 MB / 485.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.901e-06/0.1175, allocations: 3.984 kB / 485.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.314e-06/0.1175, allocations: 7.438 kB / 485.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1175, allocations: 0 / 485.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of Templates: time 0.002822/0.1204, allocations: 0.7894 MB / 486.5 MB, free: 15.03 MB / 366.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 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches