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.001081/0.001081, allocations: 116.9 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.001255/0.001255, allocations: 200.6 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.337/1.337, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2064/0.2064, allocations: 46.1 MB / 344.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001362, allocations: 80.44 kB / 419 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1145, allocations: 62.44 MB / 481.4 MB, free: 4.531 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001804/0.1163, allocations: 490.7 kB / 481.9 MB, free: 4.051 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002156/0.1185, allocations: 1.271 MB / 483.2 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.222e-05/0.1185, allocations: 0 / 483.2 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.388e-05/0.1186, allocations: 4 kB / 483.2 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001778/0.1188, allocations: 7.938 kB / 483.2 MB, free: 2.762 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.0009943/0.1198, allocations: 244.8 kB / 483.4 MB, free: 2.527 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.329e-05/0.1198, allocations: 11.92 kB / 483.5 MB, free: 2.516 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.164e-05/0.1199, allocations: 0 / 483.5 MB, free: 2.516 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.794e-05/0.1199, allocations: 4 kB / 483.5 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.997e-05/0.12, allocations: 11.98 kB / 483.5 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.225e-06/0.12, allocations: 0 / 483.5 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002813/0.1228, allocations: 0.677 MB / 484.1 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.864e-06/0.1228, allocations: 0 / 484.1 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.25e-05/0.1228, allocations: 3.938 kB / 484.1 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002796/0.1231, allocations: 183.6 kB / 484.3 MB, free: 1.762 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1231, allocations: 0 / 484.3 MB, free: 1.762 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1231, allocations: 4 kB / 484.3 MB, free: 1.758 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.1231, allocations: 0 / 484.3 MB, free: 1.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.0003858/0.1235, allocations: 381.2 kB / 484.7 MB, free: 1.332 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.1236, allocations: 12.03 kB / 484.7 MB, free: 1.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.444e-05/0.1236, allocations: 0.9375 kB / 484.7 MB, free: 1.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001173/0.1237, allocations: 164.4 kB / 484.9 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.108e-05/0.1238, allocations: 384 / 484.9 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.578e-06/0.1238, allocations: 4.375 kB / 484.9 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.565e-05/0.1239, allocations: 37.83 kB / 484.9 MB, free: 1.074 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.1239, allocations: 0 / 484.9 MB, free: 1.074 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.1239, allocations: 3.984 kB / 484.9 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.1239, allocations: 0 / 484.9 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.965e-05/0.1239, allocations: 7.938 kB / 484.9 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001388/0.1241, allocations: 149.6 kB / 485.1 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.744e-05/0.1241, allocations: 18.61 kB / 485.1 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.543e-05/0.1241, allocations: 8.859 kB / 485.1 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.257e-06/0.1242, allocations: 4 kB / 485.1 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.338e-05/0.1242, allocations: 68.2 kB / 485.2 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.1242, allocations: 0 / 485.2 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001717/0.1244, allocations: 71.23 kB / 485.2 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.503e-05/0.1244, allocations: 77.11 kB / 485.3 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.461e-05/0.1245, allocations: 97.86 kB / 485.4 MB, free: 472 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.13e-05/0.1245, allocations: 25.7 kB / 485.4 MB, free: 440 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.718e-05/0.1246, allocations: 84.39 kB / 485.5 MB, free: 352 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.285e-05/0.1246, allocations: 0 / 485.5 MB, free: 352 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.654e-05/0.1246, allocations: 17.7 kB / 485.5 MB, free: 328 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.369e-05/0.1247, allocations: 314.8 kB / 485.8 MB, free: 4 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.338e-06/0.1247, allocations: 0 / 485.8 MB, free: 4 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.013e-06/0.1247, allocations: 4 kB / 485.8 MB, free: 0 / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.053e-05/0.1248, allocations: 60.27 kB / 485.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1248, allocations: 64 / 485.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.955e-05/0.1249, allocations: 75.27 kB / 486 MB, free: 15.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.382e-05/0.1249, allocations: 29.7 kB / 486 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.026e-06/0.1249, allocations: 0 / 486 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.267e-06/0.1249, allocations: 0 / 486 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.62e-07/0.1249, allocations: 0 / 486 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.747e-06/0.1249, allocations: 4 kB / 486 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.317e-05/0.125, allocations: 0 / 486 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.21e-06/0.125, allocations: 0 / 486 MB, free: 15.8 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 7.195e-05/0.125, allocations: 143.6 kB / 486.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.197e-06/0.1251, allocations: 3.938 kB / 486.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.897e-06/0.1251, allocations: 7.109 kB / 486.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.32e-07/0.1251, allocations: 0 / 486.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-06/0.1251, allocations: 0 / 486.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.824e-06/0.1251, allocations: 0 / 486.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.651e-05/0.1252, allocations: 145.7 kB / 486.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1252, allocations: 0 / 486.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.837e-06/0.1252, allocations: 7.922 kB / 486.3 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.183e-06/0.1252, allocations: 0 / 486.3 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.785e-06/0.1252, allocations: 4 kB / 486.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.185e-06/0.1252, allocations: 8 kB / 486.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.1252, allocations: 0 / 486.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.519e-05/0.1253, allocations: 98.8 kB / 486.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.012e-05/0.1254, allocations: 84.98 kB / 486.5 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.233e-05/0.1254, allocations: 0 / 486.5 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.097e-06/0.1254, allocations: 3.938 kB / 486.5 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.148e-05/0.1254, allocations: 8 kB / 486.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-06/0.1254, allocations: 4.031 kB / 486.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.714e-05/0.1255, allocations: 75.28 kB / 486.6 MB, free: 15.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1255, allocations: 0 / 486.6 MB, free: 15.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002685/0.1257, allocations: 59.98 kB / 486.7 MB, free: 15.05 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.000571/0.1263, allocations: 326.5 kB / 487 MB, free: 14.78 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.533e-05/0.1264, allocations: 63.39 kB / 487 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1264, allocations: 8 kB / 487 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.844e-05/0.1265, allocations: 55.41 kB / 487.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001265/0.1266, allocations: 10.61 kB / 487.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001675/0.1268, allocations: 88.78 kB / 487.2 MB, free: 14.51 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002054/0.127, allocations: 0.6806 MB / 487.9 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.669e-06/0.127, allocations: 0 / 487.9 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.374e-06/0.127, allocations: 7.438 kB / 487.9 MB, free: 13.8 MB / 366.1 MB Notification: Performance of SimCode: time 1.383e-06/0.127, allocations: 3.938 kB / 487.9 MB, free: 13.8 MB / 366.1 MB Notification: Performance of Templates: time 0.004041/0.1311, allocations: 1.58 MB / 489.5 MB, free: 12.22 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 gbode -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