Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.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.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001059/0.001059, allocations: 103.7 kB / 17.63 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001169/0.001169, allocations: 204.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2301/0.2301, allocations: 46.11 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 76.94 kB / 417.6 MB, free: 19.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1259, allocations: 62.45 MB / 480 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001664/0.1276, allocations: 483.6 kB / 480.5 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001972/0.1296, allocations: 1.263 MB / 481.8 MB, free: 3.566 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.003e-05/0.1296, allocations: 0 / 481.8 MB, free: 3.566 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.283e-05/0.1296, allocations: 3.938 kB / 481.8 MB, free: 3.562 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000173/0.1298, allocations: 7.984 kB / 481.8 MB, free: 3.555 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:455:3-487:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0009638/0.1308, allocations: 250.1 kB / 482 MB, free: 3.312 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.951e-05/0.1309, allocations: 11.94 kB / 482 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.958e-05/0.1309, allocations: 3.984 kB / 482 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.766e-05/0.1309, allocations: 0 / 482 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.083e-05/0.131, allocations: 8 kB / 482 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.588e-06/0.131, allocations: 4 kB / 482 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003065/0.1341, allocations: 0.6496 MB / 482.7 MB, free: 2.758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.999e-06/0.1341, allocations: 3.984 kB / 482.7 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.375e-05/0.1341, allocations: 3.938 kB / 482.7 MB, free: 2.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002836/0.1344, allocations: 179.6 kB / 482.9 MB, free: 2.574 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.1344, allocations: 0 / 482.9 MB, free: 2.574 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.1344, allocations: 0 / 482.9 MB, free: 2.574 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.044e-06/0.1345, allocations: 0 / 482.9 MB, free: 2.574 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.0004225/0.1349, allocations: 381.5 kB / 483.2 MB, free: 2.148 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.1349, allocations: 12.03 kB / 483.3 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.608e-05/0.135, allocations: 4.922 kB / 483.3 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001322/0.1351, allocations: 164.4 kB / 483.4 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.306e-05/0.1351, allocations: 8.375 kB / 483.4 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.284e-05/0.1351, allocations: 384 / 483.4 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.288e-05/0.1352, allocations: 29.83 kB / 483.5 MB, free: 1.891 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.1353, allocations: 4 kB / 483.5 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/0.1353, allocations: 0 / 483.5 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.1353, allocations: 0 / 483.5 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.079e-05/0.1353, allocations: 3.938 kB / 483.5 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001595/0.1355, allocations: 157.7 kB / 483.6 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.862e-05/0.1355, allocations: 14.58 kB / 483.6 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.012e-05/0.1356, allocations: 8.922 kB / 483.6 MB, free: 1.645 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.671e-06/0.1356, allocations: 3.938 kB / 483.6 MB, free: 1.641 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.499e-05/0.1356, allocations: 60.2 kB / 483.7 MB, free: 1.566 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.1356, allocations: 0 / 483.7 MB, free: 1.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001983/0.1358, allocations: 87.16 kB / 483.8 MB, free: 1.469 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.773e-05/0.1359, allocations: 77.11 kB / 483.9 MB, free: 1.375 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.34e-05/0.136, allocations: 93.86 kB / 484 MB, free: 1.273 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.761e-05/0.136, allocations: 29.7 kB / 484 MB, free: 1.238 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.505e-05/0.1361, allocations: 80.14 kB / 484.1 MB, free: 1.156 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.67e-05/0.1361, allocations: 4 kB / 484.1 MB, free: 1.152 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.766e-05/0.1362, allocations: 13.7 kB / 484.1 MB, free: 1.133 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.1363, allocations: 315.1 kB / 484.4 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.163e-05/0.1363, allocations: 4 kB / 484.4 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.751e-06/0.1363, allocations: 0 / 484.4 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.701e-05/0.1363, allocations: 64.27 kB / 484.5 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1364, allocations: 0 / 484.5 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.909e-05/0.1364, allocations: 71.27 kB / 484.5 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.992e-05/0.1365, allocations: 29.7 kB / 484.6 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.1365, allocations: 4 kB / 484.6 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.1365, allocations: 96 / 484.6 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-07/0.1365, allocations: 4 kB / 484.6 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.1365, allocations: 3.984 kB / 484.6 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.366e-05/0.1365, allocations: 0 / 484.6 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.47e-06/0.1365, allocations: 0 / 484.6 MB, free: 0.6055 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.372e-05/0.1366, allocations: 135.5 kB / 484.7 MB, free: 468 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.166e-05/0.1366, allocations: 7.922 kB / 484.7 MB, free: 460 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.548e-06/0.1367, allocations: 7.125 kB / 484.7 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/0.1367, allocations: 0 / 484.7 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.1367, allocations: 4 kB / 484.7 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-06/0.1367, allocations: 4 kB / 484.7 MB, free: 448 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.89e-05/0.1368, allocations: 145.7 kB / 484.9 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.1368, allocations: 0 / 484.9 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.664e-06/0.1368, allocations: 3.938 kB / 484.9 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/0.1368, allocations: 0 / 484.9 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.32e-06/0.1368, allocations: 4 kB / 484.9 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.1368, allocations: 0 / 484.9 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.1368, allocations: 0 / 484.9 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001085/0.1369, allocations: 102.7 kB / 485 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.898e-05/0.137, allocations: 81.05 kB / 485 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.259e-05/0.137, allocations: 4 kB / 485.1 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.117e-05/0.137, allocations: 4 kB / 485.1 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.958e-06/0.137, allocations: 0 / 485.1 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-06/0.137, allocations: 0 / 485.1 MB, free: 8 kB / 350.1 MB Notification: Performance of sorting global known variables: time 4.595e-05/0.1371, allocations: 75.28 kB / 485.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1371, allocations: 4 kB / 485.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002765/0.1374, allocations: 68.11 kB / 485.2 MB, free: 15.86 MB / 366.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.0006018/0.138, allocations: 335.7 kB / 485.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.358e-05/0.1381, allocations: 59.39 kB / 485.6 MB, free: 15.51 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.1381, allocations: 0 / 485.6 MB, free: 15.51 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.11e-05/0.1381, allocations: 59.34 kB / 485.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001284/0.1383, allocations: 0 / 485.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001686/0.1384, allocations: 96.91 kB / 485.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002297/0.1387, allocations: 0.6729 MB / 486.4 MB, free: 14.62 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.859e-06/0.1387, allocations: 0 / 486.4 MB, free: 14.62 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.126e-05/0.1387, allocations: 11.44 kB / 486.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1387, allocations: 3.938 kB / 486.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of Templates: time 0.004269/0.143, allocations: 1.593 MB / 488 MB, free: 13.02 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches