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.0009196/0.0009196, allocations: 99.28 kB / 17.01 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009882/0.0009885, allocations: 193.2 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.511/1.511, allocations: 227.7 MB / 246.4 MB, free: 11.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2163/0.2163, allocations: 46.18 MB / 344.8 MB, free: 11.56 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000263/0.0002631, allocations: 8.219 kB / 418.8 MB, free: 20.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1293, allocations: 63.57 MB / 482.4 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0005376/0.1299, allocations: 209.2 kB / 482.6 MB, free: 4.363 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005814/0.1305, allocations: 235.7 kB / 482.8 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.741e-05/0.1305, allocations: 0 / 482.8 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.132e-05/0.1306, allocations: 4 kB / 482.8 MB, free: 4.133 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.14e-06/0.1306, allocations: 0 / 482.8 MB, free: 4.133 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.0002884/0.1309, allocations: 39.89 kB / 482.9 MB, free: 4.094 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.124e-05/0.1309, allocations: 0 / 482.9 MB, free: 4.094 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.542e-05/0.131, allocations: 4 kB / 482.9 MB, free: 4.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.554e-05/0.131, allocations: 0 / 482.9 MB, free: 4.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.559e-05/0.131, allocations: 3.984 kB / 482.9 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.887e-06/0.131, allocations: 0 / 482.9 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001359/0.1312, allocations: 59.95 kB / 482.9 MB, free: 4.027 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.152e-06/0.1312, allocations: 0 / 482.9 MB, free: 4.027 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.875e-05/0.1312, allocations: 25.7 kB / 483 MB, free: 3.996 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.245e-05/0.1313, allocations: 39.95 kB / 483 MB, free: 3.957 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1313, allocations: 0 / 483 MB, free: 3.957 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.1313, allocations: 0 / 483 MB, free: 3.957 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.663e-06/0.1314, allocations: 3.938 kB / 483 MB, free: 3.953 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.0003112/0.1317, allocations: 349.1 kB / 483.4 MB, free: 3.559 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.1317, allocations: 15.91 kB / 483.4 MB, free: 3.543 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.661e-05/0.1318, allocations: 8 kB / 483.4 MB, free: 3.535 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001016/0.1319, allocations: 167 kB / 483.5 MB, free: 3.332 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.231e-05/0.1319, allocations: 0 / 483.5 MB, free: 3.332 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.077e-05/0.1319, allocations: 4 kB / 483.5 MB, free: 3.328 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.913e-05/0.132, allocations: 29.7 kB / 483.6 MB, free: 3.293 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.132, allocations: 0 / 483.6 MB, free: 3.293 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.132, allocations: 4 kB / 483.6 MB, free: 3.289 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.132, allocations: 0 / 483.6 MB, free: 3.289 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.903e-05/0.1321, allocations: 0 / 483.6 MB, free: 3.289 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001456/0.1322, allocations: 153.6 kB / 483.7 MB, free: 3.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.821e-05/0.1323, allocations: 18.52 kB / 483.7 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.356e-05/0.1323, allocations: 8.859 kB / 483.8 MB, free: 3.051 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.967e-06/0.1323, allocations: 8.078 kB / 483.8 MB, free: 3.043 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.521e-05/0.1324, allocations: 60.27 kB / 483.8 MB, free: 2.969 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.1324, allocations: 0 / 483.8 MB, free: 2.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001885/0.1326, allocations: 63.39 kB / 483.9 MB, free: 2.895 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.817e-05/0.1326, allocations: 81.05 kB / 484 MB, free: 2.797 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.209e-05/0.1327, allocations: 89.86 kB / 484 MB, free: 2.699 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.311e-05/0.1327, allocations: 25.83 kB / 484.1 MB, free: 2.668 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.486e-05/0.1327, allocations: 84.14 kB / 484.2 MB, free: 2.582 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.124e-05/0.1327, allocations: 0 / 484.2 MB, free: 2.582 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.2e-06/0.1327, allocations: 4 kB / 484.2 MB, free: 2.578 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.1329, allocations: 314.8 kB / 484.5 MB, free: 2.262 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.676e-06/0.1329, allocations: 3.938 kB / 484.5 MB, free: 2.258 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.102e-06/0.1329, allocations: 0 / 484.5 MB, free: 2.258 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.939e-05/0.1329, allocations: 29.7 kB / 484.5 MB, free: 2.223 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1329, allocations: 0 / 484.5 MB, free: 2.223 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.501e-05/0.133, allocations: 67.41 kB / 484.6 MB, free: 2.145 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.787e-05/0.1331, allocations: 33.7 kB / 484.6 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1331, allocations: 0 / 484.6 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.017e-05/0.1331, allocations: 0 / 484.6 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.1331, allocations: 0 / 484.6 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.1331, allocations: 0 / 484.6 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.897e-05/0.1331, allocations: 0 / 484.6 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.877e-06/0.1331, allocations: 7.938 kB / 484.6 MB, free: 2.098 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.113e-05/0.1332, allocations: 139.5 kB / 484.7 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.648e-06/0.1333, allocations: 7.984 kB / 484.7 MB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.087e-06/0.1333, allocations: 7.125 kB / 484.8 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-06/0.1333, allocations: 0 / 484.8 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.1333, allocations: 0 / 484.8 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.1333, allocations: 0 / 484.8 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.086e-05/0.1334, allocations: 145.6 kB / 484.9 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1334, allocations: 3.984 kB / 484.9 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.3e-07/0.1334, allocations: 0 / 484.9 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.718e-06/0.1334, allocations: 7.953 kB / 484.9 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.1334, allocations: 0 / 484.9 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1334, allocations: 4 kB / 484.9 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.1334, allocations: 0 / 484.9 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.03e-05/0.1335, allocations: 90.83 kB / 485 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.817e-05/0.1336, allocations: 77.11 kB / 485.1 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.413e-05/0.1336, allocations: 3.953 kB / 485.1 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.121e-05/0.1336, allocations: 4 kB / 485.1 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.099e-05/0.1336, allocations: 3.938 kB / 485.1 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.1336, allocations: 4 kB / 485.1 MB, free: 1.504 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.335e-05/0.1337, allocations: 79.31 kB / 485.2 MB, free: 1.426 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1337, allocations: 0 / 485.2 MB, free: 1.426 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002504/0.1339, allocations: 27.98 kB / 485.2 MB, free: 1.398 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005088/0.1344, allocations: 281.4 kB / 485.5 MB, free: 1.168 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.204e-05/0.1346, allocations: 59.41 kB / 485.5 MB, free: 1.098 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1346, allocations: 0 / 485.5 MB, free: 1.098 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.067e-05/0.1346, allocations: 55.41 kB / 485.6 MB, free: 1.031 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001179/0.1347, allocations: 4.125 kB / 485.6 MB, free: 1.027 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001602/0.1349, allocations: 78.66 kB / 485.7 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002291/0.1351, allocations: 0.6692 MB / 486.3 MB, free: 232 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.611e-06/0.1351, allocations: 0 / 486.3 MB, free: 232 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.326e-06/0.1352, allocations: 7.438 kB / 486.3 MB, free: 228 kB / 350.1 MB Notification: Performance of SimCode: time 1.923e-06/0.1352, allocations: 0 / 486.3 MB, free: 228 kB / 350.1 MB Notification: Performance of Templates: time 0.003035/0.1382, allocations: 0.7767 MB / 487.1 MB, free: 15.45 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 -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