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.001317/0.001317, allocations: 101.9 kB / 16.4 MB, free: 6.449 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.001233/0.001233, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.381/1.381, allocations: 205.1 MB / 223.2 MB, free: 12.21 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.2367/0.2367, allocations: 43.52 MB / 314.1 MB, free: 448 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.001678/0.001678, allocations: 69.47 kB / 441.3 MB, free: 6.199 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1299/0.1316, allocations: 57.79 MB / 499.1 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.002731/0.1344, allocations: 0.4912 MB / 499.6 MB, free: 11.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004278/0.1387, allocations: 2.042 MB / 0.4898 GB, free: 9.781 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.612e-05/0.1387, allocations: 4 kB / 0.4898 GB, free: 9.777 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.169e-05/0.1388, allocations: 0 / 0.4898 GB, free: 9.777 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.396e-05/0.1389, allocations: 4 kB / 0.4899 GB, free: 9.773 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001866/0.1407, allocations: 374.8 kB / 0.4902 GB, free: 9.406 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.197e-05/0.1408, allocations: 4 kB / 0.4902 GB, free: 9.402 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.395e-05/0.1409, allocations: 0 / 0.4902 GB, free: 9.402 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.417e-05/0.1409, allocations: 7.938 kB / 0.4902 GB, free: 9.395 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01669/0.1576, allocations: 3.361 MB / 0.4935 GB, free: 6.078 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.058e-05/0.1576, allocations: 4 kB / 0.4935 GB, free: 6.074 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.548e-05/0.1578, allocations: 4 kB / 0.4935 GB, free: 6.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.125e-05/0.1578, allocations: 0 / 0.4935 GB, free: 6.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.579e-05/0.1578, allocations: 0 / 0.4935 GB, free: 6.07 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001414/0.1579, allocations: 15.98 kB / 0.4935 GB, free: 6.055 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.158, allocations: 0 / 0.4935 GB, free: 6.055 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.158, allocations: 0 / 0.4935 GB, free: 6.055 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.158, allocations: 0 / 0.4935 GB, free: 6.055 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.0003576/0.1583, allocations: 323.5 kB / 0.4938 GB, free: 5.691 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.299e-05/0.1584, allocations: 11.89 kB / 0.4938 GB, free: 5.68 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.057e-05/0.1585, allocations: 106 kB / 0.4939 GB, free: 5.566 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000257/0.1588, allocations: 88.22 kB / 0.494 GB, free: 5.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001567/0.1589, allocations: 243.6 kB / 0.4943 GB, free: 5.203 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.714e-05/0.159, allocations: 150.9 kB / 0.4944 GB, free: 5.055 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.492e-05/0.1591, allocations: 158.5 kB / 0.4946 GB, free: 4.898 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.266e-05/0.1591, allocations: 104.9 kB / 0.4947 GB, free: 4.789 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.016e-05/0.1592, allocations: 75.28 kB / 0.4947 GB, free: 4.715 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.144e-05/0.1593, allocations: 150.6 kB / 0.4949 GB, free: 4.566 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-05/0.1593, allocations: 154.6 kB / 0.495 GB, free: 4.414 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.493e-05/0.1594, allocations: 154.6 kB / 0.4952 GB, free: 4.262 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003252/0.1597, allocations: 445.9 kB / 0.4956 GB, free: 3.777 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.432e-05/0.1598, allocations: 177 kB / 0.4958 GB, free: 3.594 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.468e-05/0.1599, allocations: 84.12 kB / 0.4958 GB, free: 3.508 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.787e-05/0.1599, allocations: 79.28 kB / 0.4959 GB, free: 3.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.144e-05/0.16, allocations: 113.8 kB / 0.496 GB, free: 3.309 MB / 382.1 MB Notification: Performance of pre-optimization done (n=0): time 1.743e-06/0.16, allocations: 0 / 0.496 GB, free: 3.309 MB / 382.1 MB Notification: Performance of matching and sorting (n=0): time 8.988e-05/0.1601, allocations: 25.7 kB / 0.4961 GB, free: 3.277 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/0.1602, allocations: 178.1 kB / 0.4962 GB, free: 3.078 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001078/0.1604, allocations: 97.8 kB / 0.4963 GB, free: 2.973 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.648e-05/0.1604, allocations: 25.7 kB / 0.4963 GB, free: 2.941 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.489e-05/0.1604, allocations: 84.27 kB / 0.4964 GB, free: 2.855 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.044e-06/0.1604, allocations: 0 / 0.4964 GB, free: 2.855 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.291e-05/0.1605, allocations: 17.72 kB / 0.4964 GB, free: 2.832 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.1606, allocations: 314.8 kB / 0.4967 GB, free: 2.516 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.981e-06/0.1606, allocations: 48 / 0.4967 GB, free: 2.516 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.851e-05/0.1607, allocations: 17.72 kB / 0.4968 GB, free: 2.492 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.494e-05/0.1607, allocations: 75.28 kB / 0.4968 GB, free: 2.418 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.673e-05/0.1607, allocations: 79.31 kB / 0.4969 GB, free: 2.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.26e-05/0.1608, allocations: 33.64 kB / 0.4969 GB, free: 2.301 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.012e-05/0.1609, allocations: 79.28 kB / 0.497 GB, free: 2.223 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.119e-05/0.1609, allocations: 79.22 kB / 0.4971 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.116e-05/0.161, allocations: 150.6 kB / 0.4972 GB, free: 1.996 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.015e-05/0.1611, allocations: 87.2 kB / 0.4973 GB, free: 1.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.698e-05/0.1611, allocations: 154.6 kB / 0.4975 GB, free: 1.758 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001239/0.1613, allocations: 83.28 kB / 0.4975 GB, free: 1.676 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.22e-05/0.1613, allocations: 79.22 kB / 0.4976 GB, free: 1.598 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.0001458/0.1615, allocations: 268.3 kB / 0.4979 GB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.819e-05/0.1616, allocations: 101 kB / 0.498 GB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.547e-05/0.1616, allocations: 124 kB / 0.4981 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.908e-05/0.1617, allocations: 180.3 kB / 0.4983 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.999e-05/0.1618, allocations: 176.3 kB / 0.4984 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.773e-05/0.1619, allocations: 180.2 kB / 0.4986 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002644/0.1621, allocations: 409.2 kB / 0.499 GB, free: 84 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.058e-05/0.1622, allocations: 104.9 kB / 0.4991 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.311e-05/0.1623, allocations: 101 kB / 0.4992 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.192e-05/0.1624, allocations: 184.3 kB / 0.4994 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.589e-05/0.1624, allocations: 184.2 kB / 0.4995 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.432e-05/0.1625, allocations: 180.2 kB / 0.4997 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.941e-05/0.1626, allocations: 180.5 kB / 0.4999 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001776/0.1628, allocations: 311.7 kB / 0.5002 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.441e-05/0.1629, allocations: 190.1 kB / 0.5004 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.465e-05/0.163, allocations: 176.3 kB / 0.5005 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001125/0.1631, allocations: 108.9 kB / 0.5006 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.269e-05/0.1632, allocations: 184.2 kB / 0.5008 GB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.576e-05/0.1633, allocations: 104.9 kB / 0.5009 GB, free: 14 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.062e-05/0.1633, allocations: 79.28 kB / 0.501 GB, free: 13.92 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1633, allocations: 0 / 0.501 GB, free: 13.92 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002954/0.1636, allocations: 4 kB / 0.501 GB, free: 13.91 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.0004495/0.1641, allocations: 0.8088 MB / 0.5018 GB, free: 13.07 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 5.732e-05/0.1641, allocations: 0 / 0.5018 GB, free: 13.07 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.1642, allocations: 0 / 0.5018 GB, free: 13.07 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.757e-06/0.1642, allocations: 3.938 kB / 0.5018 GB, free: 13.07 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004014/0.1646, allocations: 459.7 kB / 0.5022 GB, free: 12.62 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004497/0.165, allocations: 189.8 kB / 0.5024 GB, free: 12.39 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003312/0.1654, allocations: 0.6729 MB / 0.5031 GB, free: 11.69 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.954e-05/0.1654, allocations: 0 / 0.5031 GB, free: 11.69 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.981e-05/0.1654, allocations: 7.438 kB / 0.5031 GB, free: 11.68 MB / 398.1 MB Notification: Performance of SimCode: time 7.52e-07/0.1654, allocations: 0 / 0.5031 GB, free: 11.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01876/0.1842, allocations: 1.007 MB / 0.504 GB, free: 10.64 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.78/7.964, allocations: 16.05 kB / 0.5041 GB, free: 10.63 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