Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.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: "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 105.7 kB / 16.41 MB, free: 6.02 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.001591/0.001591, allocations: 192.5 kB / 17.34 MB, free: 5.609 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.624/1.624, 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.2405/0.2405, allocations: 43.53 MB / 314.1 MB, free: 440 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.002079/0.002079, allocations: 69.45 kB / 441.3 MB, free: 6.172 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1455/0.1476, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001835/0.1495, allocations: 494.8 kB / 499.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003641/0.1532, allocations: 2.05 MB / 0.4899 GB, free: 9.754 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.229e-05/0.1532, allocations: 0 / 0.4899 GB, free: 9.754 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.199e-05/0.1532, allocations: 0 / 0.4899 GB, free: 9.754 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.081e-05/0.1533, allocations: 0 / 0.4899 GB, free: 9.754 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001245/0.1545, allocations: 378.8 kB / 0.4902 GB, free: 9.383 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.033e-05/0.1546, allocations: 4 kB / 0.4902 GB, free: 9.379 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.444e-05/0.1546, allocations: 0 / 0.4902 GB, free: 9.379 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.919e-05/0.1547, allocations: 3.984 kB / 0.4902 GB, free: 9.375 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02037/0.175, allocations: 3.361 MB / 0.4935 GB, free: 6.059 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.287e-05/0.1751, allocations: 0 / 0.4935 GB, free: 6.059 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001086/0.1752, allocations: 8 kB / 0.4935 GB, free: 6.051 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.633e-05/0.1752, allocations: 0 / 0.4935 GB, free: 6.051 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.741e-05/0.1753, allocations: 4 kB / 0.4935 GB, free: 6.047 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001648/0.1754, allocations: 11.97 kB / 0.4935 GB, free: 6.035 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.1754, allocations: 0 / 0.4935 GB, free: 6.035 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1754, allocations: 0 / 0.4935 GB, free: 6.035 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.1755, allocations: 0 / 0.4935 GB, free: 6.035 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.000427/0.1759, allocations: 319.5 kB / 0.4938 GB, free: 5.676 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.342e-05/0.176, allocations: 11.89 kB / 0.4938 GB, free: 5.664 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.38e-05/0.176, allocations: 110 kB / 0.494 GB, free: 5.547 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002468/0.1763, allocations: 84.2 kB / 0.494 GB, free: 5.465 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001824/0.1765, allocations: 239.6 kB / 0.4943 GB, free: 5.191 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.871e-05/0.1766, allocations: 150.9 kB / 0.4944 GB, free: 5.043 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.394e-05/0.1767, allocations: 162.5 kB / 0.4946 GB, free: 4.883 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.626e-05/0.1768, allocations: 112.9 kB / 0.4947 GB, free: 4.766 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.411e-05/0.1768, allocations: 75.28 kB / 0.4947 GB, free: 4.691 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.882e-05/0.1769, allocations: 150.6 kB / 0.4949 GB, free: 4.543 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.172e-05/0.177, allocations: 150.6 kB / 0.495 GB, free: 4.395 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.458e-05/0.1771, allocations: 150.6 kB / 0.4952 GB, free: 4.246 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003806/0.1775, allocations: 450 kB / 0.4956 GB, free: 3.758 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001352/0.1776, allocations: 173 kB / 0.4958 GB, free: 3.578 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.37e-05/0.1777, allocations: 80.14 kB / 0.4958 GB, free: 3.496 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.29e-05/0.1777, allocations: 79.22 kB / 0.4959 GB, free: 3.418 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.392e-05/0.1778, allocations: 109.8 kB / 0.496 GB, free: 3.301 MB / 382.1 MB Notification: Performance of pre-optimization done (n=0): time 3.056e-06/0.1778, allocations: 3.984 kB / 0.496 GB, free: 3.297 MB / 382.1 MB Notification: Performance of matching and sorting (n=0): time 8.799e-05/0.1779, allocations: 33.69 kB / 0.4961 GB, free: 3.258 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.1781, allocations: 178.1 kB / 0.4962 GB, free: 3.059 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001111/0.1782, allocations: 93.86 kB / 0.4963 GB, free: 2.957 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.04e-05/0.1782, allocations: 33.64 kB / 0.4963 GB, free: 2.918 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.678e-05/0.1783, allocations: 80.27 kB / 0.4964 GB, free: 2.836 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.756e-06/0.1783, allocations: 4 kB / 0.4964 GB, free: 2.832 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.444e-05/0.1783, allocations: 9.719 kB / 0.4964 GB, free: 2.816 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.1785, allocations: 314.8 kB / 0.4967 GB, free: 2.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.761e-06/0.1785, allocations: 48 / 0.4967 GB, free: 2.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.37e-05/0.1785, allocations: 17.7 kB / 0.4968 GB, free: 2.477 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.067e-05/0.1786, allocations: 75.28 kB / 0.4968 GB, free: 2.402 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.089e-05/0.1786, allocations: 79.28 kB / 0.4969 GB, free: 2.324 MB / 382.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.069e-05/0.1787, allocations: 37.67 kB / 0.4969 GB, free: 2.281 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.974e-05/0.1788, allocations: 79.28 kB / 0.497 GB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.265e-05/0.1788, allocations: 83.22 kB / 0.4971 GB, free: 2.121 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.132e-05/0.1789, allocations: 150.6 kB / 0.4972 GB, free: 1.973 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.111e-05/0.179, allocations: 79.22 kB / 0.4973 GB, free: 1.895 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-05/0.1791, allocations: 150.6 kB / 0.4975 GB, free: 1.746 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000115/0.1792, allocations: 87.27 kB / 0.4975 GB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.918e-05/0.1792, allocations: 79.22 kB / 0.4976 GB, free: 1.582 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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 0.000182/0.1794, allocations: 272.3 kB / 0.4979 GB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.422e-05/0.1795, allocations: 101 kB / 0.498 GB, free: 1.199 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.861e-05/0.1796, allocations: 112 kB / 0.4981 GB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001103/0.1797, allocations: 184.2 kB / 0.4983 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.00011/0.1798, allocations: 180.3 kB / 0.4984 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001006/0.1799, allocations: 184.2 kB / 0.4986 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003135/0.1802, allocations: 397.2 kB / 0.499 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.329e-05/0.1803, allocations: 116.9 kB / 0.4991 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.155e-05/0.1804, allocations: 101 kB / 0.4992 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001038/0.1805, allocations: 180.3 kB / 0.4994 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001084/0.1806, allocations: 188.2 kB / 0.4995 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.553e-05/0.1807, allocations: 180.3 kB / 0.4997 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001273/0.1808, allocations: 184.5 kB / 0.4999 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002558/0.1811, allocations: 307.8 kB / 0.5002 GB, free: 14.78 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001257/0.1812, allocations: 190 kB / 0.5004 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001141/0.1814, allocations: 180.2 kB / 0.5005 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001233/0.1815, allocations: 108.9 kB / 0.5006 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.944e-05/0.1816, allocations: 176.3 kB / 0.5008 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.504e-05/0.1817, allocations: 101 kB / 0.5009 GB, free: 13.98 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.963e-05/0.1817, allocations: 95.16 kB / 0.501 GB, free: 13.89 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1817, allocations: 0 / 0.501 GB, free: 13.89 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003193/0.182, allocations: 0 / 0.501 GB, free: 13.89 MB / 398.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0005777/0.1826, allocations: 0.8009 MB / 0.5018 GB, free: 13.06 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 5.668e-05/0.1827, allocations: 8.094 kB / 0.5018 GB, free: 13.05 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1827, allocations: 0 / 0.5018 GB, free: 13.05 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.857e-06/0.1827, allocations: 3.938 kB / 0.5018 GB, free: 13.05 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004425/0.1832, allocations: 451.7 kB / 0.5022 GB, free: 12.6 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004189/0.1836, allocations: 197.7 kB / 0.5024 GB, free: 12.37 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003508/0.1839, allocations: 0.6729 MB / 0.5031 GB, free: 11.67 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.938e-05/0.184, allocations: 0 / 0.5031 GB, free: 11.67 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.548e-05/0.184, allocations: 7.438 kB / 0.5031 GB, free: 11.66 MB / 398.1 MB Notification: Performance of SimCode: time 3.1e-07/0.184, allocations: 4 kB / 0.5031 GB, free: 11.66 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02381/0.2078, allocations: 1.007 MB / 0.5041 GB, free: 10.62 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.974/8.182, allocations: 11.98 kB / 0.5041 GB, free: 10.61 MB / 398.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Utilities_TestExamplesCalculator_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Utilities_TestExamplesCalculator.fmu > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches