Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001719/0.001719, allocations: 117.4 kB / 17.08 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00202/0.00202, allocations: 200.2 kB / 18.02 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.345/1.345, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1935/0.1935, allocations: 43.52 MB / 314.8 MB, free: 460 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 61.47 kB / 442.4 MB, free: 5.691 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1038, allocations: 57.8 MB / 0.4885 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001558/0.1054, allocations: 498 kB / 0.489 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001877/0.1073, allocations: 1.265 MB / 0.4902 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.458e-05/0.1073, allocations: 0 / 0.4902 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.456e-05/0.1073, allocations: 4 kB / 0.4902 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001523/0.1075, allocations: 11.94 kB / 0.4902 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001065/0.1086, allocations: 252.6 kB / 0.4905 GB, free: 9.812 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.519e-05/0.1087, allocations: 11.98 kB / 0.4905 GB, free: 9.801 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.27e-05/0.1087, allocations: 0 / 0.4905 GB, free: 9.801 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.813e-05/0.1087, allocations: 7.938 kB / 0.4905 GB, free: 9.793 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.198e-05/0.1088, allocations: 7.984 kB / 0.4905 GB, free: 9.785 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.575e-06/0.1088, allocations: 0 / 0.4905 GB, free: 9.785 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003036/0.1119, allocations: 0.6916 MB / 0.4912 GB, free: 9.148 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.073e-05/0.1119, allocations: 0 / 0.4912 GB, free: 9.148 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.966e-05/0.1119, allocations: 0 / 0.4912 GB, free: 9.148 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003076/0.1122, allocations: 179.7 kB / 0.4914 GB, free: 8.973 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.1122, allocations: 0 / 0.4914 GB, free: 8.973 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1123, allocations: 4 kB / 0.4914 GB, free: 8.969 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.1123, allocations: 0 / 0.4914 GB, free: 8.969 MB / 382.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.0003919/0.1127, allocations: 388.6 kB / 0.4917 GB, free: 8.539 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.1127, allocations: 11.89 kB / 0.4917 GB, free: 8.527 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.998e-05/0.1127, allocations: 0.9375 kB / 0.4917 GB, free: 8.527 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001249/0.1129, allocations: 164.4 kB / 0.4919 GB, free: 8.328 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.142e-05/0.1129, allocations: 4.375 kB / 0.4919 GB, free: 8.324 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.065e-05/0.1129, allocations: 4.312 kB / 0.4919 GB, free: 8.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.597e-05/0.113, allocations: 37.83 kB / 0.4919 GB, free: 8.277 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.113, allocations: 0 / 0.4919 GB, free: 8.277 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.574e-06/0.113, allocations: 0 / 0.4919 GB, free: 8.277 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.113, allocations: 0 / 0.4919 GB, free: 8.277 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.564e-05/0.113, allocations: 0 / 0.4919 GB, free: 8.277 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000136/0.1132, allocations: 153.7 kB / 0.4921 GB, free: 8.078 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.91e-05/0.1132, allocations: 18.52 kB / 0.4921 GB, free: 8.051 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.537e-05/0.1132, allocations: 12.86 kB / 0.4921 GB, free: 8.035 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.441e-06/0.1133, allocations: 4 kB / 0.4921 GB, free: 8.031 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.926e-05/0.1133, allocations: 60.2 kB / 0.4922 GB, free: 7.957 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.1133, allocations: 0 / 0.4922 GB, free: 7.957 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001524/0.1135, allocations: 67.39 kB / 0.4922 GB, free: 7.879 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.028e-05/0.1135, allocations: 81.11 kB / 0.4923 GB, free: 7.781 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.172e-05/0.1136, allocations: 89.86 kB / 0.4924 GB, free: 7.684 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.232e-05/0.1136, allocations: 25.7 kB / 0.4924 GB, free: 7.652 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.332e-05/0.1136, allocations: 84.39 kB / 0.4925 GB, free: 7.566 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.26e-05/0.1137, allocations: 4 kB / 0.4925 GB, free: 7.562 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.842e-05/0.1137, allocations: 17.7 kB / 0.4925 GB, free: 7.539 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.438e-05/0.1138, allocations: 310.8 kB / 0.4928 GB, free: 7.227 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.638e-06/0.1138, allocations: 7.938 kB / 0.4928 GB, free: 7.219 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.097e-06/0.1138, allocations: 4 kB / 0.4928 GB, free: 7.215 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.738e-05/0.1139, allocations: 64.2 kB / 0.4929 GB, free: 7.137 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1139, allocations: 0 / 0.4929 GB, free: 7.137 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.479e-05/0.114, allocations: 79.3 kB / 0.493 GB, free: 7.047 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.808e-05/0.114, allocations: 29.7 kB / 0.493 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.114, allocations: 7.984 kB / 0.493 GB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.114, allocations: 0 / 0.493 GB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.71e-07/0.114, allocations: 0 / 0.493 GB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.114, allocations: 0 / 0.493 GB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.577e-05/0.1141, allocations: 0 / 0.493 GB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.926e-06/0.1141, allocations: 0 / 0.493 GB, free: 7.004 MB / 382.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.518e-05/0.1142, allocations: 143.4 kB / 0.4932 GB, free: 6.848 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.029e-05/0.1142, allocations: 7.969 kB / 0.4932 GB, free: 6.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.331e-05/0.1142, allocations: 7.109 kB / 0.4932 GB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-06/0.1142, allocations: 0 / 0.4932 GB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.1142, allocations: 4 kB / 0.4932 GB, free: 6.824 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.1142, allocations: 0 / 0.4932 GB, free: 6.824 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.231e-05/0.1143, allocations: 145.7 kB / 0.4933 GB, free: 6.633 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.1143, allocations: 0 / 0.4933 GB, free: 6.633 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.637e-06/0.1143, allocations: 7.922 kB / 0.4933 GB, free: 6.625 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.1143, allocations: 4 kB / 0.4933 GB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-06/0.1144, allocations: 0 / 0.4933 GB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1144, allocations: 4 kB / 0.4933 GB, free: 6.617 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1144, allocations: 0 / 0.4933 GB, free: 6.617 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.555e-05/0.1145, allocations: 98.84 kB / 0.4934 GB, free: 6.496 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.918e-05/0.1145, allocations: 81.05 kB / 0.4935 GB, free: 6.398 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.518e-05/0.1145, allocations: 4 kB / 0.4935 GB, free: 6.395 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.009e-05/0.1146, allocations: 0 / 0.4935 GB, free: 6.395 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.066e-05/0.1146, allocations: 3.938 kB / 0.4935 GB, free: 6.391 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-06/0.1146, allocations: 3.938 kB / 0.4935 GB, free: 6.387 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.938e-05/0.1146, allocations: 83.31 kB / 0.4936 GB, free: 6.305 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1146, allocations: 0 / 0.4936 GB, free: 6.305 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003127/0.1149, allocations: 67.98 kB / 0.4937 GB, free: 6.238 MB / 382.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.0006466/0.1156, allocations: 322 kB / 0.494 GB, free: 5.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.347e-05/0.1157, allocations: 67.39 kB / 0.494 GB, free: 5.832 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1157, allocations: 0 / 0.494 GB, free: 5.832 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.189e-05/0.1157, allocations: 55.41 kB / 0.4941 GB, free: 5.766 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001323/0.1159, allocations: 0 / 0.4941 GB, free: 5.766 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001955/0.1161, allocations: 114.6 kB / 0.4942 GB, free: 5.621 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002313/0.1163, allocations: 0.6769 MB / 0.4948 GB, free: 4.918 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.326e-05/0.1163, allocations: 11.44 kB / 0.4949 GB, free: 4.906 MB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1164, allocations: 0 / 0.4949 GB, free: 4.906 MB / 382.1 MB Notification: Performance of Templates: time 0.003612/0.12, allocations: 1.673 MB / 0.4965 GB, free: 3.23 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches