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.001395/0.001395, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001465/0.001465, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.4 MB / 247.5 MB, free: 10.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2086/0.2086, allocations: 46.1 MB / 344.9 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 75.88 kB / 419 MB, free: 19.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1384/0.1398, allocations: 62.45 MB / 481.4 MB, free: 4.594 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001802/0.1416, allocations: 489.8 kB / 481.9 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001959/0.1436, allocations: 1.267 MB / 483.2 MB, free: 2.844 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.452e-05/0.1436, allocations: 4 kB / 483.2 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.399e-05/0.1437, allocations: 0 / 483.2 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001649/0.1438, allocations: 19.8 kB / 483.2 MB, free: 2.82 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.0009924/0.1448, allocations: 231.3 kB / 483.4 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.256e-05/0.1449, allocations: 7.984 kB / 483.4 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.765e-05/0.1449, allocations: 7.984 kB / 483.5 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.614e-05/0.145, allocations: 0 / 483.5 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.328e-05/0.145, allocations: 4 kB / 483.5 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.243e-05/0.1451, allocations: 0 / 483.5 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002992/0.1481, allocations: 0.6869 MB / 484.1 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.899e-06/0.1481, allocations: 0 / 484.1 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.464e-05/0.1481, allocations: 7.938 kB / 484.1 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000366/0.1485, allocations: 171.7 kB / 484.3 MB, free: 1.836 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1485, allocations: 8 kB / 484.3 MB, free: 1.828 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1485, allocations: 0 / 484.3 MB, free: 1.828 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.202e-06/0.1485, allocations: 0 / 484.3 MB, free: 1.828 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.0004199/0.1489, allocations: 389.1 kB / 484.7 MB, free: 1.395 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.149, allocations: 8.031 kB / 484.7 MB, free: 1.387 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.142e-05/0.149, allocations: 0.9375 kB / 484.7 MB, free: 1.387 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001574/0.1492, allocations: 168.4 kB / 484.9 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.263e-05/0.1492, allocations: 384 / 484.9 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.935e-06/0.1492, allocations: 384 / 484.9 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.883e-05/0.1493, allocations: 41.81 kB / 484.9 MB, free: 1.137 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.1493, allocations: 0 / 484.9 MB, free: 1.137 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.958e-06/0.1494, allocations: 0 / 484.9 MB, free: 1.137 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.1494, allocations: 0 / 484.9 MB, free: 1.137 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.634e-05/0.1494, allocations: 0 / 484.9 MB, free: 1.137 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001436/0.1495, allocations: 149.7 kB / 485.1 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.96e-05/0.1496, allocations: 22.5 kB / 485.1 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.781e-05/0.1496, allocations: 8.953 kB / 485.1 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.096e-05/0.1496, allocations: 4 kB / 485.1 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.597e-05/0.1497, allocations: 68.12 kB / 485.2 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.1497, allocations: 0 / 485.2 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001862/0.1499, allocations: 71.31 kB / 485.2 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.4e-05/0.1499, allocations: 85.03 kB / 485.3 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.448e-05/0.15, allocations: 89.86 kB / 485.4 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.506e-05/0.15, allocations: 29.7 kB / 485.4 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.15e-05/0.1501, allocations: 88.39 kB / 485.5 MB, free: 416 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.573e-05/0.1501, allocations: 0 / 485.5 MB, free: 416 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.811e-05/0.1501, allocations: 9.719 kB / 485.5 MB, free: 400 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.1502, allocations: 314.8 kB / 485.8 MB, free: 76 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.338e-05/0.1503, allocations: 3.984 kB / 485.8 MB, free: 72 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.833e-06/0.1503, allocations: 3.938 kB / 485.8 MB, free: 68 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.223e-05/0.1503, allocations: 68.27 kB / 485.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1503, allocations: 4.062 kB / 485.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.731e-05/0.1504, allocations: 67.28 kB / 486 MB, free: 15.9 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.948e-05/0.1505, allocations: 37.69 kB / 486 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.1505, allocations: 0 / 486 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.1505, allocations: 0 / 486 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.052e-06/0.1505, allocations: 0 / 486 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.1505, allocations: 0 / 486 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.375e-05/0.1505, allocations: 0 / 486 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.043e-05/0.1505, allocations: 4 kB / 486 MB, free: 15.86 MB / 366.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 9.009e-05/0.1506, allocations: 135.6 kB / 486.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.046e-05/0.1506, allocations: 3.938 kB / 486.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.428e-05/0.1507, allocations: 11.12 kB / 486.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.1507, allocations: 0 / 486.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1507, allocations: 0 / 486.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.1507, allocations: 3.984 kB / 486.2 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001004/0.1508, allocations: 141.7 kB / 486.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.1508, allocations: 4 kB / 486.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.255e-06/0.1508, allocations: 3.938 kB / 486.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1508, allocations: 0 / 486.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.043e-06/0.1508, allocations: 0 / 486.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1508, allocations: 4 kB / 486.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.1508, allocations: 3.984 kB / 486.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001034/0.151, allocations: 94.81 kB / 486.4 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.708e-05/0.151, allocations: 84.98 kB / 486.5 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.715e-05/0.151, allocations: 7.984 kB / 486.5 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.618e-06/0.151, allocations: 0 / 486.5 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.144e-05/0.1511, allocations: 0 / 486.5 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.226e-06/0.1511, allocations: 4.031 kB / 486.5 MB, free: 15.26 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.552e-05/0.1511, allocations: 79.28 kB / 486.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1511, allocations: 0 / 486.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003084/0.1515, allocations: 63.98 kB / 486.7 MB, free: 15.12 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.0006824/0.1521, allocations: 326.5 kB / 487 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001063/0.1523, allocations: 59.41 kB / 487 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.1523, allocations: 0 / 487 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.247e-05/0.1523, allocations: 55.41 kB / 487.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000144/0.1525, allocations: 13.31 kB / 487.1 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002315/0.1527, allocations: 96.72 kB / 487.2 MB, free: 14.58 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002494/0.153, allocations: 0.669 MB / 487.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.164e-06/0.153, allocations: 4 kB / 487.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.216e-05/0.153, allocations: 7.438 kB / 487.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of SimCode: time 1.613e-06/0.153, allocations: 0 / 487.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of Templates: time 0.004927/0.1579, allocations: 1.6 MB / 489.5 MB, free: 12.28 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 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches