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.00178/0.00178, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002026/0.002026, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 227.4 MB / 247.5 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2279/0.2279, allocations: 46.11 MB / 344.8 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002195/0.002195, allocations: 77.03 kB / 418.3 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1179, allocations: 62.46 MB / 480.8 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001811/0.1197, allocations: 478.8 kB / 481.2 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002083/0.1218, allocations: 1.275 MB / 482.5 MB, free: 3.465 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.333e-05/0.1219, allocations: 0 / 482.5 MB, free: 3.465 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.338e-05/0.1219, allocations: 0 / 482.5 MB, free: 3.465 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001713/0.1221, allocations: 11.88 kB / 482.5 MB, free: 3.453 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.001059/0.1231, allocations: 261.1 kB / 482.8 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.371e-05/0.1232, allocations: 0 / 482.8 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.079e-05/0.1232, allocations: 4 kB / 482.8 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.687e-05/0.1233, allocations: 0 / 482.8 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.25e-05/0.1234, allocations: 11.98 kB / 482.8 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.013e-05/0.1234, allocations: 4 kB / 482.8 MB, free: 3.184 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003961/0.1273, allocations: 0.653 MB / 483.4 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.626e-06/0.1274, allocations: 4 kB / 483.4 MB, free: 2.648 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.985e-05/0.1274, allocations: 3.938 kB / 483.4 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002764/0.1277, allocations: 179.7 kB / 483.6 MB, free: 2.469 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1277, allocations: 0 / 483.6 MB, free: 2.469 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1277, allocations: 0 / 483.6 MB, free: 2.469 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.1277, allocations: 0 / 483.6 MB, free: 2.469 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.0004298/0.1281, allocations: 381.5 kB / 484 MB, free: 2.043 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.1282, allocations: 8.031 kB / 484 MB, free: 2.035 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.892e-05/0.1282, allocations: 0.9375 kB / 484 MB, free: 2.035 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001478/0.1284, allocations: 168.4 kB / 484.2 MB, free: 1.832 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.57e-05/0.1284, allocations: 8.375 kB / 484.2 MB, free: 1.824 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.194e-05/0.1284, allocations: 384 / 484.2 MB, free: 1.824 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.847e-05/0.1285, allocations: 33.77 kB / 484.2 MB, free: 1.785 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.687e-06/0.1285, allocations: 0 / 484.2 MB, free: 1.785 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-06/0.1285, allocations: 4 kB / 484.2 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.848e-06/0.1285, allocations: 0 / 484.2 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.611e-05/0.1286, allocations: 0 / 484.2 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00016/0.1287, allocations: 153.7 kB / 484.4 MB, free: 1.582 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.5e-05/0.1288, allocations: 22.52 kB / 484.4 MB, free: 1.551 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.649e-05/0.1288, allocations: 4.859 kB / 484.4 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.25e-05/0.1288, allocations: 4.062 kB / 484.4 MB, free: 1.539 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.443e-05/0.1289, allocations: 72.08 kB / 484.5 MB, free: 1.453 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.81e-07/0.1289, allocations: 0 / 484.5 MB, free: 1.453 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001854/0.1291, allocations: 71.3 kB / 484.5 MB, free: 1.371 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.143e-05/0.1291, allocations: 77.11 kB / 484.6 MB, free: 1.277 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.941e-05/0.1292, allocations: 97.98 kB / 484.7 MB, free: 1.172 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.629e-05/0.1293, allocations: 25.7 kB / 484.7 MB, free: 1.141 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.522e-05/0.1293, allocations: 80.14 kB / 484.8 MB, free: 1.059 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.546e-05/0.1293, allocations: 4 kB / 484.8 MB, free: 1.055 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.863e-05/0.1294, allocations: 13.72 kB / 484.8 MB, free: 1.035 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.1295, allocations: 314.8 kB / 485.1 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.178e-05/0.1295, allocations: 4 kB / 485.1 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.548e-06/0.1295, allocations: 4.125 kB / 485.1 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.033e-05/0.1296, allocations: 64.2 kB / 485.2 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.1296, allocations: 0 / 485.2 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.75e-05/0.1297, allocations: 71.33 kB / 485.3 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.078e-05/0.1297, allocations: 29.7 kB / 485.3 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.1297, allocations: 0 / 485.3 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.1298, allocations: 4 kB / 485.3 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.71e-07/0.1298, allocations: 0 / 485.3 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.958e-06/0.1298, allocations: 0 / 485.3 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.534e-05/0.1298, allocations: 4.094 kB / 485.3 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.521e-06/0.1298, allocations: 0 / 485.3 MB, free: 0.5078 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.923e-05/0.1299, allocations: 135.5 kB / 485.4 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.149e-05/0.1299, allocations: 3.938 kB / 485.4 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.618e-06/0.1299, allocations: 7.109 kB / 485.5 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.52e-07/0.1299, allocations: 0 / 485.5 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.1299, allocations: 0 / 485.5 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.1299, allocations: 7.938 kB / 485.5 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001136/0.1301, allocations: 145.7 kB / 485.6 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.1301, allocations: 0 / 485.6 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.278e-06/0.1301, allocations: 11.92 kB / 485.6 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.1301, allocations: 0 / 485.6 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.1301, allocations: 4 kB / 485.6 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.1301, allocations: 0 / 485.6 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.1301, allocations: 0 / 485.6 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001121/0.1302, allocations: 86.88 kB / 485.7 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.238e-05/0.1303, allocations: 88.97 kB / 485.8 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.262e-05/0.1303, allocations: 4.031 kB / 485.8 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.226e-05/0.1303, allocations: 4 kB / 485.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.508e-05/0.1304, allocations: 3.938 kB / 485.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-06/0.1304, allocations: 0 / 485.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.68e-05/0.1304, allocations: 75.28 kB / 485.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1304, allocations: 0 / 485.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002903/0.1307, allocations: 71.98 kB / 485.9 MB, free: 15.77 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.0008028/0.1315, allocations: 337.5 kB / 486.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001032/0.1316, allocations: 63.41 kB / 486.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1317, allocations: 0 / 486.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.926e-05/0.1317, allocations: 59.39 kB / 486.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000127/0.1318, allocations: 2.344 kB / 486.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002104/0.1321, allocations: 118.5 kB / 486.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000331/0.1324, allocations: 0.673 MB / 487.2 MB, free: 14.49 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.808e-06/0.1324, allocations: 11.44 kB / 487.2 MB, free: 14.48 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1324, allocations: 0 / 487.2 MB, free: 14.48 MB / 366.1 MB Notification: Performance of Templates: time 0.003702/0.1361, allocations: 1.669 MB / 488.9 MB, free: 12.82 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/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