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.00147/0.00147, allocations: 104.8 kB / 16.4 MB, free: 6.457 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.001687/0.001687, allocations: 192.2 kB / 17.34 MB, free: 5.715 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.623/1.623, allocations: 205.1 MB / 223.2 MB, free: 12.22 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.2203/0.2203, allocations: 43.52 MB / 314.1 MB, free: 452 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.001316/0.001316, allocations: 69.45 kB / 441.8 MB, free: 5.672 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.123, allocations: 57.77 MB / 499.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001571/0.1246, allocations: 0.5057 MB / 0.4883 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001933/0.1266, allocations: 1.264 MB / 0.4896 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.471e-05/0.1266, allocations: 0 / 0.4896 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.548e-05/0.1266, allocations: 0 / 0.4896 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001613/0.1268, allocations: 8 kB / 0.4896 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001049/0.1279, allocations: 250 kB / 0.4898 GB, free: 9.801 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.019e-05/0.1279, allocations: 15.91 kB / 0.4898 GB, free: 9.785 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.071e-05/0.128, allocations: 4 kB / 0.4898 GB, free: 9.781 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.921e-05/0.128, allocations: 3.938 kB / 0.4898 GB, free: 9.777 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.405e-05/0.1281, allocations: 4 kB / 0.4898 GB, free: 9.773 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.736e-06/0.1281, allocations: 0 / 0.4898 GB, free: 9.773 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003068/0.1312, allocations: 0.6859 MB / 0.4905 GB, free: 9.141 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.558e-06/0.1312, allocations: 0 / 0.4905 GB, free: 9.141 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.432e-05/0.1312, allocations: 0 / 0.4905 GB, free: 9.141 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003061/0.1315, allocations: 179.5 kB / 0.4907 GB, free: 8.965 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.1316, allocations: 3.984 kB / 0.4907 GB, free: 8.961 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1316, allocations: 4 kB / 0.4907 GB, free: 8.957 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.1316, allocations: 4 kB / 0.4907 GB, free: 8.953 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.0004136/0.132, allocations: 388.7 kB / 0.4911 GB, free: 8.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.132, allocations: 11.89 kB / 0.4911 GB, free: 8.508 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.657e-05/0.1321, allocations: 0.9375 kB / 0.4911 GB, free: 8.508 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001371/0.1322, allocations: 172.4 kB / 0.4912 GB, free: 8.301 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.214e-05/0.1322, allocations: 384 / 0.4913 GB, free: 8.301 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.624e-06/0.1323, allocations: 384 / 0.4913 GB, free: 8.301 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.839e-05/0.1324, allocations: 37.83 kB / 0.4913 GB, free: 8.258 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.413e-06/0.1324, allocations: 0 / 0.4913 GB, free: 8.258 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.1324, allocations: 4 kB / 0.4913 GB, free: 8.254 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.1324, allocations: 0 / 0.4913 GB, free: 8.254 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.042e-05/0.1324, allocations: 3.938 kB / 0.4913 GB, free: 8.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001454/0.1326, allocations: 157.6 kB / 0.4914 GB, free: 8.047 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.749e-05/0.1326, allocations: 14.58 kB / 0.4915 GB, free: 8.023 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.637e-05/0.1326, allocations: 8.953 kB / 0.4915 GB, free: 8.012 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.004e-05/0.1327, allocations: 3.984 kB / 0.4915 GB, free: 8.008 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.249e-05/0.1327, allocations: 68.2 kB / 0.4915 GB, free: 7.926 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.1327, allocations: 0 / 0.4915 GB, free: 7.926 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001646/0.1329, allocations: 67.33 kB / 0.4916 GB, free: 7.848 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.585e-05/0.1329, allocations: 81.11 kB / 0.4917 GB, free: 7.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.911e-05/0.133, allocations: 93.86 kB / 0.4918 GB, free: 7.648 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.173e-05/0.133, allocations: 25.7 kB / 0.4918 GB, free: 7.617 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.784e-05/0.1331, allocations: 84.14 kB / 0.4919 GB, free: 7.531 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.502e-05/0.1331, allocations: 8.203 kB / 0.4919 GB, free: 7.523 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.418e-05/0.1331, allocations: 9.719 kB / 0.4919 GB, free: 7.508 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.1332, allocations: 318.8 kB / 0.4922 GB, free: 7.188 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.608e-06/0.1332, allocations: 0 / 0.4922 GB, free: 7.188 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.52e-06/0.1332, allocations: 16 / 0.4922 GB, free: 7.188 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.671e-05/0.1333, allocations: 64.27 kB / 0.4923 GB, free: 7.109 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.1333, allocations: 3.938 kB / 0.4923 GB, free: 7.105 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.94e-05/0.1334, allocations: 71.33 kB / 0.4923 GB, free: 7.023 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.936e-05/0.1334, allocations: 37.73 kB / 0.4924 GB, free: 6.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.1334, allocations: 0 / 0.4924 GB, free: 6.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.1334, allocations: 0 / 0.4924 GB, free: 6.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.71e-07/0.1334, allocations: 0 / 0.4924 GB, free: 6.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.978e-06/0.1334, allocations: 0 / 0.4924 GB, free: 6.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.363e-05/0.1335, allocations: 0 / 0.4924 GB, free: 6.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.1335, allocations: 0 / 0.4924 GB, free: 6.98 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.305e-05/0.1336, allocations: 143.5 kB / 0.4925 GB, free: 6.824 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.418e-06/0.1336, allocations: 3.938 kB / 0.4925 GB, free: 6.82 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.202e-05/0.1336, allocations: 11.11 kB / 0.4925 GB, free: 6.805 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.1336, allocations: 4 kB / 0.4925 GB, free: 6.801 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.1336, allocations: 0 / 0.4925 GB, free: 6.801 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.1336, allocations: 0 / 0.4925 GB, free: 6.801 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.438e-05/0.1337, allocations: 141.7 kB / 0.4927 GB, free: 6.613 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.1337, allocations: 0 / 0.4927 GB, free: 6.613 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.925e-06/0.1337, allocations: 7.938 kB / 0.4927 GB, free: 6.605 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.1337, allocations: 3.984 kB / 0.4927 GB, free: 6.602 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.901e-06/0.1337, allocations: 0 / 0.4927 GB, free: 6.602 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.1338, allocations: 0 / 0.4927 GB, free: 6.602 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1338, allocations: 0 / 0.4927 GB, free: 6.602 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001013/0.1339, allocations: 98.8 kB / 0.4928 GB, free: 6.48 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.969e-05/0.1339, allocations: 85.03 kB / 0.4928 GB, free: 6.379 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.473e-05/0.1339, allocations: 4 kB / 0.4928 GB, free: 6.375 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.147e-06/0.1339, allocations: 3.938 kB / 0.4928 GB, free: 6.371 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.091e-05/0.134, allocations: 0 / 0.4928 GB, free: 6.371 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-06/0.134, allocations: 4 kB / 0.4928 GB, free: 6.367 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.67e-05/0.134, allocations: 87.31 kB / 0.4929 GB, free: 6.281 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.134, allocations: 0 / 0.4929 GB, free: 6.281 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002928/0.1343, allocations: 63.8 kB / 0.493 GB, free: 6.219 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.000716/0.135, allocations: 317.9 kB / 0.4933 GB, free: 5.895 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001264/0.1352, allocations: 59.41 kB / 0.4934 GB, free: 5.824 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.1352, allocations: 3.938 kB / 0.4934 GB, free: 5.82 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 6.305e-05/0.1353, allocations: 59.39 kB / 0.4934 GB, free: 5.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001623/0.1354, allocations: 3.938 kB / 0.4934 GB, free: 5.746 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002577/0.1357, allocations: 96.75 kB / 0.4935 GB, free: 5.625 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003456/0.136, allocations: 0.6768 MB / 0.4942 GB, free: 4.922 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.344e-06/0.1361, allocations: 0 / 0.4942 GB, free: 4.922 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.493e-05/0.1361, allocations: 11.56 kB / 0.4942 GB, free: 4.91 MB / 382.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1361, allocations: 0 / 0.4942 GB, free: 4.91 MB / 382.1 MB Notification: Performance of Templates: time 0.004654/0.1408, allocations: 1.588 MB / 0.4957 GB, free: 3.324 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches