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.001669/0.001669, allocations: 102.8 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001726/0.001726, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 227.4 MB / 246.8 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2905/0.2905, allocations: 46.12 MB / 344.2 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002146/0.002146, allocations: 79.59 kB / 417.6 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1256, allocations: 62.45 MB / 480.1 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.002173/0.1278, allocations: 494 kB / 480.6 MB, free: 4.711 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006853/0.1285, allocations: 250 kB / 480.8 MB, free: 4.469 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.723e-05/0.1286, allocations: 0 / 480.8 MB, free: 4.469 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.913e-05/0.1286, allocations: 0 / 480.8 MB, free: 4.469 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.898e-06/0.1286, allocations: 3.938 kB / 480.8 MB, free: 4.465 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.0003723/0.129, allocations: 47.83 kB / 480.9 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.173e-05/0.1291, allocations: 8 kB / 480.9 MB, free: 4.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.414e-05/0.1291, allocations: 0 / 480.9 MB, free: 4.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.347e-05/0.1291, allocations: 11.86 kB / 480.9 MB, free: 4.398 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.25e-05/0.1292, allocations: 0 / 480.9 MB, free: 4.398 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.05e-05/0.1292, allocations: 4 kB / 480.9 MB, free: 4.395 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001596/0.1294, allocations: 63.95 kB / 481 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.125e-06/0.1294, allocations: 0 / 481 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.143e-05/0.1294, allocations: 4 kB / 481 MB, free: 4.328 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001478/0.1296, allocations: 51.92 kB / 481 MB, free: 4.277 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.1296, allocations: 0 / 481 MB, free: 4.277 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1296, allocations: 0 / 481 MB, free: 4.277 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.12e-05/0.1296, allocations: 4 kB / 481 MB, free: 4.273 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.0004513/0.1301, allocations: 357.2 kB / 481.4 MB, free: 3.867 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.1301, allocations: 12.02 kB / 481.4 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.404e-05/0.1302, allocations: 4.938 kB / 481.4 MB, free: 3.852 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001551/0.1303, allocations: 160.4 kB / 481.5 MB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.543e-05/0.1303, allocations: 384 / 481.5 MB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.296e-05/0.1304, allocations: 4.375 kB / 481.5 MB, free: 3.652 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001089/0.1305, allocations: 30.2 kB / 481.6 MB, free: 3.617 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.637e-06/0.1305, allocations: 192 / 481.6 MB, free: 3.617 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.1305, allocations: 3.938 kB / 481.6 MB, free: 3.613 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.1305, allocations: 4 kB / 481.6 MB, free: 3.609 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.104e-05/0.1305, allocations: 4 kB / 481.6 MB, free: 3.605 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001513/0.1307, allocations: 149.7 kB / 481.7 MB, free: 3.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.61e-05/0.1308, allocations: 18.61 kB / 481.7 MB, free: 3.383 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.452e-05/0.1308, allocations: 4.859 kB / 481.8 MB, free: 3.375 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.336e-06/0.1308, allocations: 0 / 481.8 MB, free: 3.375 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.649e-05/0.1309, allocations: 64.2 kB / 481.8 MB, free: 3.297 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.31e-07/0.1309, allocations: 64 / 481.8 MB, free: 3.297 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001854/0.1311, allocations: 71.33 kB / 481.9 MB, free: 3.215 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.597e-05/0.1311, allocations: 81.11 kB / 482 MB, free: 3.117 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.746e-05/0.1312, allocations: 89.86 kB / 482.1 MB, free: 3.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.782e-05/0.1312, allocations: 25.7 kB / 482.1 MB, free: 2.988 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.991e-05/0.1312, allocations: 80.14 kB / 482.2 MB, free: 2.906 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.827e-05/0.1313, allocations: 0 / 482.2 MB, free: 2.906 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.157e-05/0.1313, allocations: 17.72 kB / 482.2 MB, free: 2.883 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.1314, allocations: 310.8 kB / 482.5 MB, free: 2.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.422e-05/0.1315, allocations: 8.109 kB / 482.5 MB, free: 2.562 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.009e-06/0.1315, allocations: 0 / 482.5 MB, free: 2.562 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.151e-05/0.1315, allocations: 64.2 kB / 482.5 MB, free: 2.484 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.1315, allocations: 0 / 482.5 MB, free: 2.484 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.187e-05/0.1316, allocations: 63.41 kB / 482.6 MB, free: 2.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.612e-05/0.1317, allocations: 36.03 kB / 482.6 MB, free: 2.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.1317, allocations: 3.938 kB / 482.6 MB, free: 2.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.1317, allocations: 11.88 kB / 482.7 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.735e-06/0.1317, allocations: 4 kB / 482.7 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.89e-06/0.1317, allocations: 4.094 kB / 482.7 MB, free: 2.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.602e-05/0.1317, allocations: 0 / 482.7 MB, free: 2.348 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-06/0.1318, allocations: 0 / 482.7 MB, free: 2.348 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.935e-05/0.1319, allocations: 135.5 kB / 482.8 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.224e-06/0.1319, allocations: 0 / 482.8 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.178e-05/0.1319, allocations: 11.05 kB / 482.8 MB, free: 2.191 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.1319, allocations: 0 / 482.8 MB, free: 2.191 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.1319, allocations: 0 / 482.8 MB, free: 2.191 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-06/0.1319, allocations: 0 / 482.8 MB, free: 2.191 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001078/0.132, allocations: 153.7 kB / 483 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.132, allocations: 0 / 483 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.595e-06/0.132, allocations: 3.938 kB / 483 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.132, allocations: 0 / 483 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.905e-06/0.1321, allocations: 3.938 kB / 483 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.1321, allocations: 0 / 483 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1321, allocations: 0 / 483 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001054/0.1322, allocations: 94.83 kB / 483.1 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.88e-05/0.1322, allocations: 81.14 kB / 483.1 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.463e-05/0.1322, allocations: 7.938 kB / 483.1 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.506e-06/0.1323, allocations: 0 / 483.1 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.558e-05/0.1323, allocations: 3.984 kB / 483.2 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-06/0.1323, allocations: 0 / 483.2 MB, free: 1.758 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.088e-05/0.1323, allocations: 75.28 kB / 483.2 MB, free: 1.684 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1323, allocations: 0 / 483.2 MB, free: 1.684 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002435/0.1326, allocations: 20 kB / 483.2 MB, free: 1.664 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.0006604/0.1333, allocations: 279.6 kB / 483.5 MB, free: 1.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001052/0.1334, allocations: 67.33 kB / 483.6 MB, free: 1.352 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1334, allocations: 0 / 483.6 MB, free: 1.352 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.33e-05/0.1334, allocations: 55.41 kB / 483.6 MB, free: 1.285 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001238/0.1335, allocations: 7.938 kB / 483.6 MB, free: 1.277 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001817/0.1337, allocations: 88.84 kB / 483.7 MB, free: 1.164 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003119/0.1341, allocations: 0.6729 MB / 484.4 MB, free: 476 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.913e-06/0.1341, allocations: 0 / 484.4 MB, free: 476 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.01e-05/0.1341, allocations: 7.562 kB / 484.4 MB, free: 472 kB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1341, allocations: 4 kB / 484.4 MB, free: 468 kB / 350.1 MB Notification: Performance of Templates: time 0.003647/0.1377, allocations: 0.7893 MB / 485.2 MB, free: 15.67 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