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.001252/0.001252, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001437/0.001437, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 227.4 MB / 246.3 MB, free: 10.76 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2248/0.2248, allocations: 46.11 MB / 343.6 MB, free: 11.78 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002191/0.002191, allocations: 84.42 kB / 416.8 MB, free: 20.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.128, allocations: 62.44 MB / 479.3 MB, free: 5.723 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001741/0.1298, allocations: 0.5409 MB / 479.8 MB, free: 5.176 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006076/0.1305, allocations: 254 kB / 480.1 MB, free: 4.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.074e-05/0.1305, allocations: 0 / 480.1 MB, free: 4.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.279e-05/0.1305, allocations: 0 / 480.1 MB, free: 4.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.887e-06/0.1305, allocations: 0 / 480.1 MB, free: 4.93 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.0002429/0.1308, allocations: 39.91 kB / 480.1 MB, free: 4.891 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.035e-05/0.1308, allocations: 7.984 kB / 480.1 MB, free: 4.883 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.424e-05/0.1308, allocations: 0 / 480.1 MB, free: 4.883 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.556e-05/0.1309, allocations: 7.984 kB / 480.1 MB, free: 4.875 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.84e-05/0.1309, allocations: 0 / 480.1 MB, free: 4.875 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.012e-05/0.1309, allocations: 4 kB / 480.1 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001354/0.131, allocations: 59.89 kB / 480.2 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.953e-06/0.1311, allocations: 0 / 480.2 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.935e-05/0.1311, allocations: 4 kB / 480.2 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001108/0.1312, allocations: 59.86 kB / 480.3 MB, free: 4.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1312, allocations: 0 / 480.3 MB, free: 4.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.1312, allocations: 0 / 480.3 MB, free: 4.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.166e-06/0.1312, allocations: 3.938 kB / 480.3 MB, free: 4.746 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.0003184/0.1315, allocations: 361.3 kB / 480.6 MB, free: 4.336 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.1316, allocations: 12.88 kB / 480.6 MB, free: 4.324 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.512e-05/0.1316, allocations: 0.9375 kB / 480.6 MB, free: 4.324 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.285e-05/0.1317, allocations: 160.4 kB / 480.8 MB, free: 4.129 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.826e-06/0.1317, allocations: 384 / 480.8 MB, free: 4.129 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.867e-06/0.1317, allocations: 384 / 480.8 MB, free: 4.129 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.925e-05/0.1318, allocations: 34.25 kB / 480.8 MB, free: 4.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.921e-06/0.1318, allocations: 192 / 480.8 MB, free: 4.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.346e-06/0.1318, allocations: 3.938 kB / 480.8 MB, free: 4.086 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.1318, allocations: 4 kB / 480.8 MB, free: 4.082 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.613e-05/0.1319, allocations: 8 kB / 480.8 MB, free: 4.074 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001072/0.132, allocations: 141.7 kB / 481 MB, free: 3.887 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.283e-05/0.132, allocations: 22.52 kB / 481 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.365e-05/0.132, allocations: 8.953 kB / 481 MB, free: 3.844 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.811e-06/0.1321, allocations: 0 / 481 MB, free: 3.844 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.019e-05/0.1321, allocations: 60.25 kB / 481.1 MB, free: 3.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.71e-07/0.1321, allocations: 4 kB / 481.1 MB, free: 3.766 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001449/0.1323, allocations: 67.28 kB / 481.1 MB, free: 3.688 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.111e-05/0.1323, allocations: 81.11 kB / 481.2 MB, free: 3.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.461e-05/0.1324, allocations: 89.86 kB / 481.3 MB, free: 3.492 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.197e-05/0.1324, allocations: 33.64 kB / 481.3 MB, free: 3.453 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.988e-05/0.1324, allocations: 84.12 kB / 481.4 MB, free: 3.367 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.283e-05/0.1324, allocations: 0 / 481.4 MB, free: 3.367 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.29e-05/0.1325, allocations: 9.719 kB / 481.4 MB, free: 3.352 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.547e-05/0.1326, allocations: 319 kB / 481.7 MB, free: 3.031 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.694e-06/0.1326, allocations: 0 / 481.7 MB, free: 3.031 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.879e-06/0.1326, allocations: 0 / 481.7 MB, free: 3.031 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.483e-05/0.1326, allocations: 64.27 kB / 481.8 MB, free: 2.953 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1326, allocations: 0 / 481.8 MB, free: 2.953 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.926e-05/0.1327, allocations: 67.33 kB / 481.9 MB, free: 2.875 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.761e-05/0.1327, allocations: 29.7 kB / 481.9 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.1327, allocations: 0 / 481.9 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.1328, allocations: 8.031 kB / 481.9 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-07/0.1328, allocations: 0 / 481.9 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.677e-06/0.1328, allocations: 0 / 481.9 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.358e-05/0.1328, allocations: 7.938 kB / 481.9 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.255e-06/0.1328, allocations: 3.984 kB / 481.9 MB, free: 2.82 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.059e-05/0.1329, allocations: 135.5 kB / 482 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.806e-06/0.1329, allocations: 4 kB / 482 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.106e-05/0.1329, allocations: 11.06 kB / 482.1 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.1329, allocations: 0 / 482.1 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.1329, allocations: 4 kB / 482.1 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.844e-06/0.1329, allocations: 0 / 482.1 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.53e-05/0.133, allocations: 141.7 kB / 482.2 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.133, allocations: 4 kB / 482.2 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.733e-06/0.133, allocations: 3.984 kB / 482.2 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.183e-06/0.133, allocations: 0 / 482.2 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.133, allocations: 3.938 kB / 482.2 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.133, allocations: 0 / 482.2 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1331, allocations: 0 / 482.2 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.813e-05/0.1331, allocations: 94.78 kB / 482.3 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.007e-05/0.1332, allocations: 81.09 kB / 482.4 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.281e-05/0.1332, allocations: 3.938 kB / 482.4 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.088e-05/0.1332, allocations: 7.984 kB / 482.4 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.388e-06/0.1332, allocations: 4 kB / 482.4 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.1332, allocations: 0 / 482.4 MB, free: 2.227 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.439e-05/0.1333, allocations: 79.22 kB / 482.5 MB, free: 2.148 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1333, allocations: 0 / 482.5 MB, free: 2.148 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002095/0.1335, allocations: 27.98 kB / 482.5 MB, free: 2.121 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.0004787/0.134, allocations: 276.2 kB / 482.8 MB, free: 1.891 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.796e-05/0.1341, allocations: 55.41 kB / 482.8 MB, free: 1.824 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.145e-06/0.1341, allocations: 4 kB / 482.8 MB, free: 1.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.698e-05/0.1341, allocations: 55.41 kB / 482.9 MB, free: 1.754 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001148/0.1342, allocations: 4 kB / 482.9 MB, free: 1.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001556/0.1344, allocations: 78.59 kB / 483 MB, free: 1.645 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002126/0.1346, allocations: 0.6732 MB / 483.6 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.503e-06/0.1346, allocations: 8 kB / 483.6 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.194e-06/0.1346, allocations: 11.38 kB / 483.7 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1346, allocations: 0 / 483.7 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of Templates: time 0.002784/0.1374, allocations: 0.7809 MB / 484.4 MB, free: 156 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