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.001242/0.001242, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001405/0.001405, allocations: 199.5 kB / 19.36 MB, free: 3.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.206/0.206, allocations: 46.09 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 84.42 kB / 419 MB, free: 19.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1389, allocations: 62.45 MB / 481.5 MB, free: 4.539 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001702/0.1406, allocations: 473.5 kB / 481.9 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006701/0.1413, allocations: 261.8 kB / 482.2 MB, free: 3.824 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.276e-05/0.1413, allocations: 0 / 482.2 MB, free: 3.824 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.588e-05/0.1414, allocations: 8 kB / 482.2 MB, free: 3.816 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.582e-06/0.1414, allocations: 0 / 482.2 MB, free: 3.816 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.0003583/0.1417, allocations: 51.81 kB / 482.2 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.501e-05/0.1418, allocations: 0 / 482.2 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.535e-05/0.1419, allocations: 0 / 482.2 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.919e-05/0.1419, allocations: 4 kB / 482.2 MB, free: 3.762 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.38e-05/0.1419, allocations: 0 / 482.2 MB, free: 3.762 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.706e-06/0.1419, allocations: 0 / 482.2 MB, free: 3.762 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000154/0.1421, allocations: 67.94 kB / 482.3 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.087e-06/0.1421, allocations: 3.984 kB / 482.3 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.502e-05/0.1421, allocations: 3.938 kB / 482.3 MB, free: 3.688 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001371/0.1423, allocations: 63.88 kB / 482.4 MB, free: 3.625 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1423, allocations: 3.938 kB / 482.4 MB, free: 3.621 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1423, allocations: 0 / 482.4 MB, free: 3.621 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.069e-06/0.1423, allocations: 0 / 482.4 MB, free: 3.621 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.0003742/0.1427, allocations: 353.3 kB / 482.7 MB, free: 3.219 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.1427, allocations: 8.031 kB / 482.7 MB, free: 3.211 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.818e-05/0.1428, allocations: 4.938 kB / 482.7 MB, free: 3.207 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000125/0.1429, allocations: 164.4 kB / 482.9 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.1429, allocations: 384 / 482.9 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.626e-06/0.1429, allocations: 384 / 482.9 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.196e-05/0.143, allocations: 34.27 kB / 482.9 MB, free: 2.969 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.1431, allocations: 192 / 482.9 MB, free: 2.969 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.069e-05/0.1431, allocations: 3.938 kB / 482.9 MB, free: 2.965 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.1431, allocations: 0 / 482.9 MB, free: 2.965 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.776e-05/0.1431, allocations: 3.984 kB / 482.9 MB, free: 2.961 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001316/0.1432, allocations: 145.7 kB / 483.1 MB, free: 2.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.152e-05/0.1433, allocations: 22.52 kB / 483.1 MB, free: 2.738 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.479e-05/0.1433, allocations: 8.859 kB / 483.1 MB, free: 2.727 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.424e-06/0.1433, allocations: 4.094 kB / 483.1 MB, free: 2.723 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.747e-05/0.1434, allocations: 56.27 kB / 483.2 MB, free: 2.652 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 3.606e-06/0.1434, allocations: 0 / 483.2 MB, free: 2.652 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001703/0.1436, allocations: 75.2 kB / 483.2 MB, free: 2.566 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.183e-05/0.1436, allocations: 77.11 kB / 483.3 MB, free: 2.473 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.469e-05/0.1437, allocations: 93.86 kB / 483.4 MB, free: 2.371 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.511e-05/0.1437, allocations: 25.83 kB / 483.4 MB, free: 2.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.127e-05/0.1437, allocations: 88.12 kB / 483.5 MB, free: 2.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.16e-05/0.1438, allocations: 0 / 483.5 MB, free: 2.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.554e-05/0.1438, allocations: 13.72 kB / 483.5 MB, free: 2.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.1439, allocations: 314.8 kB / 483.8 MB, free: 1.914 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.031e-05/0.1439, allocations: 0 / 483.8 MB, free: 1.914 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.953e-06/0.144, allocations: 4 kB / 483.8 MB, free: 1.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.284e-05/0.144, allocations: 64.27 kB / 483.9 MB, free: 1.832 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.144, allocations: 4.062 kB / 483.9 MB, free: 1.828 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.897e-05/0.1441, allocations: 59.34 kB / 484 MB, free: 1.758 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.721e-05/0.1441, allocations: 37.69 kB / 484 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.1441, allocations: 0 / 484 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.1442, allocations: 3.938 kB / 484 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.92e-07/0.1442, allocations: 0 / 484 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.1442, allocations: 0 / 484 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.531e-05/0.1442, allocations: 0 / 484 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.1442, allocations: 4 kB / 484 MB, free: 1.707 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 8.765e-05/0.1443, allocations: 139.5 kB / 484.2 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.444e-06/0.1443, allocations: 0 / 484.2 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.113e-05/0.1443, allocations: 7.062 kB / 484.2 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.095e-06/0.1444, allocations: 7.984 kB / 484.2 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.1444, allocations: 0 / 484.2 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.1444, allocations: 0 / 484.2 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.338e-05/0.1445, allocations: 145.7 kB / 484.3 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.1445, allocations: 0 / 484.3 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.063e-06/0.1445, allocations: 3.984 kB / 484.3 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.1445, allocations: 0 / 484.3 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.898e-06/0.1445, allocations: 15.94 kB / 484.3 MB, free: 1.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.1445, allocations: 3.984 kB / 484.3 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1445, allocations: 0 / 484.3 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.138e-05/0.1446, allocations: 94.77 kB / 484.4 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.866e-05/0.1447, allocations: 77.11 kB / 484.5 MB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.257e-05/0.1447, allocations: 7.922 kB / 484.5 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.075e-06/0.1447, allocations: 3.938 kB / 484.5 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.224e-05/0.1447, allocations: 32 / 484.5 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/0.1447, allocations: 8 kB / 484.5 MB, free: 1.098 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.322e-05/0.1448, allocations: 75.28 kB / 484.6 MB, free: 1.023 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1448, allocations: 0 / 484.6 MB, free: 1.023 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002361/0.145, allocations: 24 kB / 484.6 MB, free: 1 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.000533/0.1456, allocations: 262.5 kB / 484.9 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001168/0.1457, allocations: 63.39 kB / 484.9 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1457, allocations: 0 / 484.9 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.258e-05/0.1457, allocations: 67.41 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.0001223/0.1459, allocations: 3.938 kB / 485 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001862/0.1461, allocations: 80.84 kB / 485.1 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002496/0.1463, allocations: 0.6729 MB / 485.8 MB, free: 15.83 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.42e-06/0.1463, allocations: 0 / 485.8 MB, free: 15.83 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.217e-06/0.1463, allocations: 15.38 kB / 485.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1464, allocations: 0 / 485.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of Templates: time 0.003379/0.1497, allocations: 0.7738 MB / 486.5 MB, free: 15.04 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 cvode -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