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.001131/0.001131, allocations: 108.1 kB / 16.41 MB, free: 6.398 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.001035/0.001035, allocations: 195.2 kB / 17.34 MB, free: 5.691 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.415/1.415, 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.2163/0.2163, 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.001487/0.001487, allocations: 66.19 kB / 441.3 MB, free: 6.176 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1291/0.1306, allocations: 57.79 MB / 499.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.002177/0.1328, allocations: 494.5 kB / 499.6 MB, free: 11.83 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003477/0.1363, allocations: 2.046 MB / 0.4898 GB, free: 9.766 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.149e-05/0.1364, allocations: 0 / 0.4898 GB, free: 9.766 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.953e-05/0.1364, allocations: 0 / 0.4898 GB, free: 9.766 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.43e-05/0.1365, allocations: 7.938 kB / 0.4899 GB, free: 9.758 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001644/0.1381, allocations: 378.8 kB / 0.4902 GB, free: 9.387 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.546e-05/0.1382, allocations: 3.984 kB / 0.4902 GB, free: 9.383 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.06e-05/0.1383, allocations: 7.984 kB / 0.4902 GB, free: 9.375 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.907e-05/0.1383, allocations: 0 / 0.4902 GB, free: 9.375 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01604/0.1543, allocations: 3.35 MB / 0.4935 GB, free: 6.066 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.074e-05/0.1544, allocations: 0 / 0.4935 GB, free: 6.066 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001191/0.1545, allocations: 7.984 kB / 0.4935 GB, free: 6.059 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.124e-05/0.1545, allocations: 0 / 0.4935 GB, free: 6.059 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.929e-05/0.1545, allocations: 3.984 kB / 0.4935 GB, free: 6.055 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001585/0.1547, allocations: 11.94 kB / 0.4935 GB, free: 6.043 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1547, allocations: 0 / 0.4935 GB, free: 6.043 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1547, allocations: 0 / 0.4935 GB, free: 6.043 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.071e-06/0.1547, allocations: 4 kB / 0.4935 GB, free: 6.039 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.0003801/0.1551, allocations: 319.5 kB / 0.4938 GB, free: 5.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.771e-05/0.1552, allocations: 11.89 kB / 0.4938 GB, free: 5.668 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.507e-05/0.1553, allocations: 106 kB / 0.4939 GB, free: 5.555 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002441/0.1555, allocations: 88.2 kB / 0.494 GB, free: 5.469 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001708/0.1557, allocations: 239.7 kB / 0.4943 GB, free: 5.195 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.824e-05/0.1558, allocations: 154.9 kB / 0.4944 GB, free: 5.043 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.444e-05/0.1559, allocations: 162.5 kB / 0.4946 GB, free: 4.883 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.265e-05/0.1559, allocations: 101 kB / 0.4947 GB, free: 4.777 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.348e-05/0.156, allocations: 75.28 kB / 0.4947 GB, free: 4.703 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.733e-05/0.1561, allocations: 158.5 kB / 0.4949 GB, free: 4.547 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.025e-05/0.1561, allocations: 150.6 kB / 0.495 GB, free: 4.398 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.59e-05/0.1562, allocations: 154.6 kB / 0.4952 GB, free: 4.246 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003326/0.1565, allocations: 445.9 kB / 0.4956 GB, free: 3.762 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001736/0.1567, allocations: 173.1 kB / 0.4958 GB, free: 3.582 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.642e-05/0.1568, allocations: 84.08 kB / 0.4958 GB, free: 3.496 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.373e-05/0.1568, allocations: 79.22 kB / 0.4959 GB, free: 3.418 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.401e-05/0.1569, allocations: 113.8 kB / 0.496 GB, free: 3.297 MB / 382.1 MB Notification: Performance of pre-optimization done (n=0): time 1.342e-06/0.1569, allocations: 0 / 0.496 GB, free: 3.297 MB / 382.1 MB Notification: Performance of matching and sorting (n=0): time 8.188e-05/0.157, allocations: 25.7 kB / 0.496 GB, free: 3.266 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/0.1571, allocations: 182.1 kB / 0.4962 GB, free: 3.062 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001286/0.1572, allocations: 89.86 kB / 0.4963 GB, free: 2.965 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/0.1573, allocations: 29.69 kB / 0.4963 GB, free: 2.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.726e-05/0.1573, allocations: 84.27 kB / 0.4964 GB, free: 2.844 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.703e-06/0.1573, allocations: 0 / 0.4964 GB, free: 2.844 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.347e-05/0.1574, allocations: 13.72 kB / 0.4964 GB, free: 2.824 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.1575, allocations: 314.8 kB / 0.4967 GB, free: 2.508 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.493e-06/0.1575, allocations: 48 / 0.4967 GB, free: 2.508 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.385e-05/0.1575, allocations: 21.66 kB / 0.4967 GB, free: 2.48 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.461e-05/0.1576, allocations: 75.28 kB / 0.4968 GB, free: 2.406 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-05/0.1576, allocations: 79.31 kB / 0.4969 GB, free: 2.328 MB / 382.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 7.15e-05/0.1577, allocations: 33.64 kB / 0.4969 GB, free: 2.289 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.29e-05/0.1577, allocations: 79.28 kB / 0.497 GB, free: 2.211 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-05/0.1578, allocations: 79.27 kB / 0.4971 GB, free: 2.133 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.483e-05/0.1579, allocations: 158.5 kB / 0.4972 GB, free: 1.977 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.65e-05/0.1579, allocations: 75.28 kB / 0.4973 GB, free: 1.902 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-05/0.158, allocations: 162.5 kB / 0.4975 GB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.148e-05/0.1581, allocations: 79.28 kB / 0.4975 GB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.931e-05/0.1581, allocations: 79.28 kB / 0.4976 GB, free: 1.586 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.0001353/0.1583, allocations: 268.2 kB / 0.4979 GB, free: 1.312 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.539e-05/0.1583, allocations: 109 kB / 0.498 GB, free: 1.199 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.173e-05/0.1584, allocations: 108.1 kB / 0.4981 GB, free: 1.082 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.365e-05/0.1585, allocations: 188.1 kB / 0.4982 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.859e-05/0.1585, allocations: 176.3 kB / 0.4984 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.674e-05/0.1586, allocations: 184.2 kB / 0.4986 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002467/0.1589, allocations: 401.2 kB / 0.499 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.433e-05/0.1589, allocations: 105.1 kB / 0.4991 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.439e-05/0.159, allocations: 104.9 kB / 0.4992 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.117e-05/0.1591, allocations: 184.3 kB / 0.4994 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.324e-05/0.1591, allocations: 188.2 kB / 0.4995 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.387e-05/0.1592, allocations: 176.3 kB / 0.4997 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-05/0.1593, allocations: 176.6 kB / 0.4999 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001378/0.1594, allocations: 315.7 kB / 0.5002 GB, free: 14.78 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.127e-05/0.1595, allocations: 194 kB / 0.5004 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.735e-05/0.1596, allocations: 176.3 kB / 0.5005 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.501e-05/0.1597, allocations: 105 kB / 0.5006 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.093e-05/0.1598, allocations: 184.2 kB / 0.5008 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.433e-05/0.1598, allocations: 108.9 kB / 0.5009 GB, free: 13.98 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.514e-05/0.1599, allocations: 79.28 kB / 0.501 GB, free: 13.9 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1599, allocations: 0 / 0.501 GB, free: 13.9 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002767/0.1602, allocations: 4 kB / 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.0004023/0.1606, allocations: 0.8049 MB / 0.5018 GB, free: 13.06 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 4.873e-05/0.1606, allocations: 0 / 0.5018 GB, free: 13.06 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1606, allocations: 0 / 0.5018 GB, free: 13.06 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.579e-06/0.1606, allocations: 3.984 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.0003876/0.161, allocations: 459.6 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.0003713/0.1614, allocations: 189.8 kB / 0.5024 GB, free: 12.38 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002415/0.1617, allocations: 0.6729 MB / 0.503 GB, free: 11.68 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.176e-05/0.1617, allocations: 0 / 0.503 GB, free: 11.68 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.362e-05/0.1617, allocations: 7.438 kB / 0.5031 GB, free: 11.67 MB / 398.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1617, allocations: 0 / 0.5031 GB, free: 11.67 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01866/0.1804, allocations: 1.011 MB / 0.504 GB, free: 10.62 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.27/7.451, allocations: 12.05 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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 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.csv","/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