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.001187/0.001186, allocations: 103.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.001264/0.001264, allocations: 188.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.383/1.383, 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.226/0.226, 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.001661/0.001661, allocations: 61.62 kB / 441.3 MB, free: 6.188 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1381, allocations: 57.79 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001923/0.14, allocations: 0.4909 MB / 499.6 MB, free: 11.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003414/0.1435, allocations: 2.05 MB / 0.4899 GB, free: 9.766 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.236e-05/0.1436, allocations: 0 / 0.4899 GB, free: 9.766 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.915e-05/0.1437, allocations: 0 / 0.4899 GB, free: 9.766 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.14e-05/0.1437, allocations: 0 / 0.4899 GB, free: 9.766 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001626/0.1453, allocations: 378.8 kB / 0.4902 GB, free: 9.395 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.763e-05/0.1454, allocations: 3.984 kB / 0.4902 GB, free: 9.391 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.221e-05/0.1454, allocations: 7.984 kB / 0.4902 GB, free: 9.383 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.941e-05/0.1455, allocations: 3.938 kB / 0.4902 GB, free: 9.379 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01707/0.1625, allocations: 3.35 MB / 0.4935 GB, free: 6.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.567e-05/0.1626, allocations: 0 / 0.4935 GB, free: 6.07 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001459/0.1628, allocations: 8 kB / 0.4935 GB, free: 6.062 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.603e-05/0.1628, allocations: 0 / 0.4935 GB, free: 6.062 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.868e-05/0.1628, allocations: 3.984 kB / 0.4935 GB, free: 6.059 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002566/0.1631, allocations: 8 kB / 0.4935 GB, free: 6.051 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.449e-05/0.1631, allocations: 4 kB / 0.4935 GB, free: 6.047 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.1631, allocations: 0 / 0.4935 GB, free: 6.047 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.448e-06/0.1632, allocations: 0 / 0.4935 GB, free: 6.047 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.0004605/0.1636, allocations: 319.5 kB / 0.4938 GB, free: 5.688 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.155e-05/0.1637, allocations: 15.89 kB / 0.4938 GB, free: 5.672 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.241e-05/0.1638, allocations: 106 kB / 0.4939 GB, free: 5.559 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002482/0.164, allocations: 88.2 kB / 0.494 GB, free: 5.473 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001835/0.1642, allocations: 239.6 kB / 0.4943 GB, free: 5.199 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.435e-05/0.1643, allocations: 150.9 kB / 0.4944 GB, free: 5.051 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.811e-05/0.1644, allocations: 154.5 kB / 0.4945 GB, free: 4.898 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001188/0.1645, allocations: 116.9 kB / 0.4947 GB, free: 4.777 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.151e-05/0.1646, allocations: 75.28 kB / 0.4947 GB, free: 4.703 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.411e-05/0.1646, allocations: 150.6 kB / 0.4949 GB, free: 4.555 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.349e-05/0.1647, allocations: 150.6 kB / 0.495 GB, free: 4.406 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.169e-05/0.1648, allocations: 150.6 kB / 0.4952 GB, free: 4.258 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003675/0.1652, allocations: 449.9 kB / 0.4956 GB, free: 3.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001108/0.1653, allocations: 177 kB / 0.4958 GB, free: 3.586 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.863e-05/0.1654, allocations: 80.14 kB / 0.4958 GB, free: 3.504 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.799e-05/0.1654, allocations: 79.22 kB / 0.4959 GB, free: 3.426 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.055e-05/0.1655, allocations: 109.8 kB / 0.496 GB, free: 3.309 MB / 382.1 MB Notification: Performance of pre-optimization done (n=0): time 1.954e-06/0.1655, allocations: 0 / 0.496 GB, free: 3.309 MB / 382.1 MB Notification: Performance of matching and sorting (n=0): time 0.000115/0.1656, allocations: 29.7 kB / 0.496 GB, free: 3.273 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001431/0.1658, allocations: 182.1 kB / 0.4962 GB, free: 3.07 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001435/0.1659, allocations: 97.8 kB / 0.4963 GB, free: 2.965 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.148e-05/0.166, allocations: 25.7 kB / 0.4963 GB, free: 2.934 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.316e-05/0.166, allocations: 80.14 kB / 0.4964 GB, free: 2.852 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.643e-06/0.166, allocations: 8.125 kB / 0.4964 GB, free: 2.844 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.279e-05/0.1661, allocations: 9.719 kB / 0.4964 GB, free: 2.828 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.1663, allocations: 310.8 kB / 0.4967 GB, free: 2.516 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.406e-06/0.1663, allocations: 48 / 0.4967 GB, free: 2.516 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.501e-05/0.1663, allocations: 17.72 kB / 0.4967 GB, free: 2.492 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.823e-05/0.1664, allocations: 75.28 kB / 0.4968 GB, free: 2.418 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.327e-05/0.1664, allocations: 79.28 kB / 0.4969 GB, free: 2.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 7.945e-05/0.1665, allocations: 37.66 kB / 0.4969 GB, free: 2.297 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.371e-05/0.1666, allocations: 83.28 kB / 0.497 GB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.367e-05/0.1666, allocations: 79.22 kB / 0.4971 GB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.852e-05/0.1667, allocations: 154.6 kB / 0.4972 GB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.102e-05/0.1667, allocations: 83.22 kB / 0.4973 GB, free: 1.902 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.919e-05/0.1668, allocations: 150.6 kB / 0.4975 GB, free: 1.754 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001332/0.1669, allocations: 79.28 kB / 0.4975 GB, free: 1.676 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.852e-05/0.167, allocations: 83.22 kB / 0.4976 GB, free: 1.594 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.0001533/0.1671, allocations: 272.3 kB / 0.4979 GB, free: 1.316 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.696e-05/0.1672, allocations: 105 kB / 0.498 GB, free: 1.207 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.339e-05/0.1673, allocations: 112 kB / 0.4981 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.706e-05/0.1674, allocations: 176.3 kB / 0.4982 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.509e-05/0.1675, allocations: 180.3 kB / 0.4984 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.394e-05/0.1676, allocations: 192.2 kB / 0.4986 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002873/0.1678, allocations: 397.2 kB / 0.499 GB, free: 84 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-05/0.1679, allocations: 104.9 kB / 0.4991 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.083e-05/0.168, allocations: 109 kB / 0.4992 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.288e-05/0.1681, allocations: 180.3 kB / 0.4993 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.062e-05/0.1682, allocations: 188.2 kB / 0.4995 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.866e-05/0.1683, allocations: 176.3 kB / 0.4997 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001011/0.1684, allocations: 184.5 kB / 0.4999 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002405/0.1686, allocations: 311.7 kB / 0.5002 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000119/0.1688, allocations: 186.1 kB / 0.5003 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001152/0.1689, allocations: 176.3 kB / 0.5005 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.169, allocations: 108.9 kB / 0.5006 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.704e-05/0.1691, allocations: 180.2 kB / 0.5008 GB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.294e-05/0.1692, allocations: 108.9 kB / 0.5009 GB, free: 13.99 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.629e-05/0.1693, allocations: 87.22 kB / 0.501 GB, free: 13.91 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1693, allocations: 4 kB / 0.501 GB, free: 13.9 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003128/0.1696, allocations: 0 / 0.501 GB, free: 13.9 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.0005552/0.1702, allocations: 0.8009 MB / 0.5018 GB, free: 13.07 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.327e-05/0.1702, allocations: 96 / 0.5018 GB, free: 13.07 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.1703, allocations: 4 kB / 0.5018 GB, free: 13.07 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.098e-06/0.1703, allocations: 7.938 kB / 0.5018 GB, free: 13.06 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003933/0.1707, allocations: 451.7 kB / 0.5022 GB, free: 12.61 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004549/0.1711, allocations: 189.9 kB / 0.5024 GB, free: 12.39 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000343/0.1715, allocations: 0.6729 MB / 0.503 GB, free: 11.69 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.273e-05/0.1716, allocations: 4 kB / 0.503 GB, free: 11.68 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.081e-05/0.1716, allocations: 7.438 kB / 0.5031 GB, free: 11.68 MB / 398.1 MB Notification: Performance of SimCode: time 7.82e-07/0.1716, allocations: 4 kB / 0.5031 GB, free: 11.67 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01943/0.191, allocations: 1.011 MB / 0.504 GB, free: 10.63 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.813/8.004, allocations: 11.98 kB / 0.5041 GB, free: 10.62 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