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.001234/0.001234, allocations: 111 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001279/0.001279, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 246.9 MB, free: 9.008 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2286/0.2286, allocations: 46.11 MB / 344.3 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002619/0.002619, allocations: 81.42 kB / 417.5 MB, free: 20.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1282, allocations: 62.45 MB / 479.9 MB, free: 5.707 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001654/0.1299, allocations: 0.5255 MB / 480.5 MB, free: 5.176 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005953/0.1305, allocations: 265.8 kB / 480.7 MB, free: 4.918 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.11e-05/0.1305, allocations: 0 / 480.7 MB, free: 4.918 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.614e-05/0.1306, allocations: 4 kB / 480.7 MB, free: 4.914 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.499e-06/0.1306, allocations: 0 / 480.7 MB, free: 4.914 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.0002464/0.1308, allocations: 43.89 kB / 480.8 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.718e-05/0.1309, allocations: 0 / 480.8 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.467e-05/0.1309, allocations: 0 / 480.8 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.225e-05/0.1309, allocations: 0 / 480.8 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.589e-05/0.1309, allocations: 4 kB / 480.8 MB, free: 4.867 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.354e-06/0.131, allocations: 0 / 480.8 MB, free: 4.867 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001148/0.1311, allocations: 55.95 kB / 480.8 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.233e-06/0.1311, allocations: 4 kB / 480.8 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.028e-05/0.1311, allocations: 4 kB / 480.8 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.527e-05/0.1312, allocations: 43.92 kB / 480.9 MB, free: 4.762 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.1312, allocations: 0 / 480.9 MB, free: 4.762 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.81e-07/0.1312, allocations: 3.938 kB / 480.9 MB, free: 4.758 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.477e-06/0.1312, allocations: 0 / 480.9 MB, free: 4.758 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.0003054/0.1315, allocations: 361.3 kB / 481.2 MB, free: 4.348 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.1316, allocations: 12.81 kB / 481.2 MB, free: 4.336 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.854e-05/0.1316, allocations: 0.9375 kB / 481.2 MB, free: 4.336 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.875e-05/0.1317, allocations: 160.4 kB / 481.4 MB, free: 4.141 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.004e-05/0.1317, allocations: 4.312 kB / 481.4 MB, free: 4.137 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.538e-06/0.1317, allocations: 12.38 kB / 481.4 MB, free: 4.125 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.651e-05/0.1318, allocations: 30.25 kB / 481.4 MB, free: 4.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-06/0.1318, allocations: 192 / 481.4 MB, free: 4.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.594e-06/0.1318, allocations: 3.938 kB / 481.4 MB, free: 4.086 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.1318, allocations: 0 / 481.4 MB, free: 4.086 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.73e-05/0.1319, allocations: 4 kB / 481.4 MB, free: 4.082 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001228/0.132, allocations: 145.7 kB / 481.6 MB, free: 3.891 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.777e-05/0.132, allocations: 22.55 kB / 481.6 MB, free: 3.859 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.275e-05/0.1321, allocations: 8.859 kB / 481.6 MB, free: 3.848 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.827e-06/0.1321, allocations: 0 / 481.6 MB, free: 3.848 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.377e-05/0.1321, allocations: 60.25 kB / 481.7 MB, free: 3.773 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.41e-07/0.1321, allocations: 0 / 481.7 MB, free: 3.773 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001623/0.1323, allocations: 67.41 kB / 481.7 MB, free: 3.695 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.69e-05/0.1323, allocations: 77.11 kB / 481.8 MB, free: 3.602 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.559e-05/0.1324, allocations: 93.86 kB / 481.9 MB, free: 3.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.156e-05/0.1324, allocations: 29.83 kB / 481.9 MB, free: 3.465 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.466e-05/0.1324, allocations: 84.12 kB / 482 MB, free: 3.379 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.62e-05/0.1325, allocations: 0 / 482 MB, free: 3.379 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.621e-05/0.1325, allocations: 9.719 kB / 482 MB, free: 3.363 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.1326, allocations: 326.7 kB / 482.4 MB, free: 3.035 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.455e-06/0.1326, allocations: 0 / 482.4 MB, free: 3.035 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.578e-06/0.1326, allocations: 0 / 482.4 MB, free: 3.035 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.832e-05/0.1327, allocations: 60.33 kB / 482.4 MB, free: 2.961 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1327, allocations: 4 kB / 482.4 MB, free: 2.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.304e-05/0.1328, allocations: 63.39 kB / 482.5 MB, free: 2.883 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.732e-05/0.1328, allocations: 29.7 kB / 482.5 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.1328, allocations: 0 / 482.5 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.1328, allocations: 3.938 kB / 482.5 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.1328, allocations: 0 / 482.5 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.012e-06/0.1328, allocations: 4 kB / 482.5 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.672e-05/0.1329, allocations: 0 / 482.5 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.424e-06/0.1329, allocations: 7.938 kB / 482.5 MB, free: 2.832 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.596e-05/0.1329, allocations: 143.6 kB / 482.7 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.454e-06/0.133, allocations: 0 / 482.7 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.936e-06/0.133, allocations: 7.062 kB / 482.7 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.133, allocations: 0 / 482.7 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.133, allocations: 0 / 482.7 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.133, allocations: 0 / 482.7 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.629e-05/0.1331, allocations: 149.6 kB / 482.8 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.1331, allocations: 0 / 482.8 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.054e-06/0.1331, allocations: 3.984 kB / 482.8 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.1331, allocations: 0 / 482.8 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.1331, allocations: 7.938 kB / 482.8 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.1331, allocations: 0 / 482.8 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.1331, allocations: 0 / 482.8 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.118e-05/0.1332, allocations: 86.84 kB / 482.9 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.815e-05/0.1333, allocations: 85.08 kB / 483 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.44e-05/0.1333, allocations: 7.938 kB / 483 MB, free: 2.246 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.875e-06/0.1333, allocations: 4 kB / 483 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.641e-05/0.1333, allocations: 7.969 kB / 483 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.14e-06/0.1333, allocations: 4 kB / 483 MB, free: 2.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.428e-05/0.1333, allocations: 75.28 kB / 483.1 MB, free: 2.156 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1333, allocations: 0 / 483.1 MB, free: 2.156 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002173/0.1336, allocations: 20 kB / 483.1 MB, free: 2.137 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.0004938/0.1341, allocations: 285.4 kB / 483.4 MB, free: 1.902 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.797e-05/0.1342, allocations: 55.41 kB / 483.4 MB, free: 1.836 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.1342, allocations: 0 / 483.4 MB, free: 1.836 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.807e-05/0.1342, allocations: 59.47 kB / 483.5 MB, free: 1.766 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001171/0.1343, allocations: 4 kB / 483.5 MB, free: 1.762 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001724/0.1345, allocations: 104.4 kB / 483.6 MB, free: 1.625 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002218/0.1347, allocations: 0.6731 MB / 484.3 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.268e-06/0.1348, allocations: 7.438 kB / 484.3 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.1348, allocations: 0 / 484.3 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of Templates: time 0.002352/0.1371, allocations: 0.9639 MB / 485.3 MB, free: 15.96 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/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