Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.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.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexFunctions",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.00134/0.00134, allocations: 101.4 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.001224/0.001224, 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.467/1.467, 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.2474/0.2474, 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.003217/0.003217, allocations: 65.47 kB / 441.3 MB, free: 6.184 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1486/0.1518, allocations: 57.79 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001769/0.1537, allocations: 485.9 kB / 499.5 MB, free: 11.85 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003874/0.1576, allocations: 2.318 MB / 0.4901 GB, free: 9.508 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.672e-05/0.1576, allocations: 7.938 kB / 0.4901 GB, free: 9.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.308e-05/0.1577, allocations: 0 / 0.4901 GB, free: 9.5 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.941e-06/0.1577, allocations: 0 / 0.4901 GB, free: 9.5 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003067/0.1608, allocations: 1.121 MB / 0.4912 GB, free: 8.375 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.817e-05/0.1608, allocations: 3.984 kB / 0.4912 GB, free: 8.371 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.737e-05/0.1609, allocations: 4 kB / 0.4912 GB, free: 8.367 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.901e-05/0.1609, allocations: 4 kB / 0.4912 GB, free: 8.363 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.785e-05/0.1609, allocations: 7.984 kB / 0.4912 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.231e-06/0.161, allocations: 3.938 kB / 0.4912 GB, free: 8.352 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001967/0.1629, allocations: 0.9795 MB / 0.4922 GB, free: 7.371 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.259e-05/0.163, allocations: 4 kB / 0.4922 GB, free: 7.367 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.21e-05/0.163, allocations: 0 / 0.4922 GB, free: 7.367 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007726/0.1638, allocations: 427.1 kB / 0.4926 GB, free: 6.949 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.1638, allocations: 0 / 0.4926 GB, free: 6.949 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.1638, allocations: 0 / 0.4926 GB, free: 6.949 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.1638, allocations: 4 kB / 0.4926 GB, free: 6.945 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.0006096/0.1644, allocations: 432.5 kB / 0.493 GB, free: 6.469 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.684e-05/0.1645, allocations: 11.89 kB / 0.493 GB, free: 6.457 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.708e-05/0.1645, allocations: 30.75 kB / 0.493 GB, free: 6.418 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.592e-05/0.1646, allocations: 4.938 kB / 0.493 GB, free: 6.414 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001661/0.1648, allocations: 160.4 kB / 0.4932 GB, free: 6.219 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.1648, allocations: 384 / 0.4932 GB, free: 6.219 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.321e-05/0.1648, allocations: 384 / 0.4932 GB, free: 6.219 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001432/0.1649, allocations: 45.81 kB / 0.4932 GB, free: 6.168 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.165, allocations: 3.984 kB / 0.4933 GB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.165, allocations: 0 / 0.4933 GB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.165, allocations: 0 / 0.4933 GB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.373e-05/0.165, allocations: 3.938 kB / 0.4933 GB, free: 6.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002096/0.1652, allocations: 145.7 kB / 0.4934 GB, free: 5.969 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.89e-05/0.1653, allocations: 14.58 kB / 0.4934 GB, free: 5.945 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.454e-05/0.1653, allocations: 8.844 kB / 0.4934 GB, free: 5.934 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.066e-05/0.1654, allocations: 4 kB / 0.4934 GB, free: 5.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.096e-05/0.1654, allocations: 68.27 kB / 0.4935 GB, free: 5.848 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.864e-06/0.1655, allocations: 3.938 kB / 0.4935 GB, free: 5.844 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002255/0.1657, allocations: 63.34 kB / 0.4935 GB, free: 5.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.334e-05/0.1658, allocations: 77.11 kB / 0.4936 GB, free: 5.676 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.895e-05/0.1658, allocations: 93.84 kB / 0.4937 GB, free: 5.574 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.572e-05/0.1659, allocations: 25.7 kB / 0.4937 GB, free: 5.543 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.059e-05/0.1659, allocations: 80.27 kB / 0.4938 GB, free: 5.461 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.285e-05/0.166, allocations: 4 kB / 0.4938 GB, free: 5.457 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.591e-05/0.166, allocations: 21.66 kB / 0.4938 GB, free: 5.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000192/0.1662, allocations: 310.8 kB / 0.4941 GB, free: 5.117 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.198e-05/0.1662, allocations: 0 / 0.4941 GB, free: 5.117 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.107e-06/0.1662, allocations: 4 kB / 0.4941 GB, free: 5.113 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.739e-05/0.1663, allocations: 56.27 kB / 0.4942 GB, free: 5.043 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1663, allocations: 0 / 0.4942 GB, free: 5.043 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.414e-05/0.1664, allocations: 75.39 kB / 0.4943 GB, free: 4.957 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.39e-05/0.1664, allocations: 37.64 kB / 0.4943 GB, free: 4.914 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.1665, allocations: 0 / 0.4943 GB, free: 4.914 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.1665, allocations: 0 / 0.4943 GB, free: 4.914 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.72e-07/0.1665, allocations: 0 / 0.4943 GB, free: 4.914 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.1665, allocations: 0 / 0.4943 GB, free: 4.914 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.568e-05/0.1665, allocations: 0 / 0.4943 GB, free: 4.914 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.13e-05/0.1665, allocations: 3.984 kB / 0.4943 GB, free: 4.91 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 0.0001231/0.1667, allocations: 143.5 kB / 0.4944 GB, free: 4.754 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.538e-06/0.1667, allocations: 7.969 kB / 0.4944 GB, free: 4.746 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.354e-05/0.1667, allocations: 3.125 kB / 0.4944 GB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.1667, allocations: 0 / 0.4944 GB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1667, allocations: 4 kB / 0.4945 GB, free: 4.734 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.1667, allocations: 0 / 0.4945 GB, free: 4.734 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000132/0.1669, allocations: 149.6 kB / 0.4946 GB, free: 4.539 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.98e-06/0.1669, allocations: 3.984 kB / 0.4946 GB, free: 4.535 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.1669, allocations: 0 / 0.4946 GB, free: 4.535 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.1669, allocations: 3.938 kB / 0.4946 GB, free: 4.531 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.789e-06/0.1669, allocations: 8 kB / 0.4946 GB, free: 4.523 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1669, allocations: 0 / 0.4946 GB, free: 4.523 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1669, allocations: 4 kB / 0.4946 GB, free: 4.52 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001376/0.1671, allocations: 98.75 kB / 0.4947 GB, free: 4.398 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.025e-05/0.1671, allocations: 81.05 kB / 0.4948 GB, free: 4.301 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.432e-05/0.1672, allocations: 3.938 kB / 0.4948 GB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.426e-06/0.1672, allocations: 0 / 0.4948 GB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.935e-05/0.1672, allocations: 0 / 0.4948 GB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.881e-06/0.1672, allocations: 4 kB / 0.4948 GB, free: 4.293 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.478e-05/0.1673, allocations: 79.31 kB / 0.4949 GB, free: 4.215 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1673, allocations: 0 / 0.4949 GB, free: 4.215 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005573/0.1678, allocations: 143.6 kB / 0.495 GB, free: 4.074 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.001286/0.1691, allocations: 0.8876 MB / 0.4959 GB, free: 3.152 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001268/0.1693, allocations: 59.41 kB / 0.4959 GB, free: 3.082 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1693, allocations: 0 / 0.4959 GB, free: 3.082 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 6.401e-05/0.1694, allocations: 59.47 kB / 0.496 GB, free: 3.012 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001625/0.1695, allocations: 3.984 kB / 0.496 GB, free: 3.008 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004384/0.17, allocations: 186 kB / 0.4962 GB, free: 2.785 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003483/0.1703, allocations: 0.6729 MB / 0.4968 GB, free: 2.086 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.332e-06/0.1704, allocations: 0 / 0.4968 GB, free: 2.086 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.67e-05/0.1704, allocations: 7.438 kB / 0.4968 GB, free: 2.078 MB / 382.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1704, allocations: 0 / 0.4968 GB, free: 2.078 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03025/0.2006, allocations: 5.31 MB / 0.502 GB, free: 12.76 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.527/8.728, allocations: 15.86 kB / 0.502 GB, free: 12.75 MB / 398.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions_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_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches