Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.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.TestComplexOperations,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexOperations",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.001236/0.001236, allocations: 105 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.001246/0.001246, allocations: 189 kB / 17.34 MB, free: 5.715 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.619/1.619, 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.2516/0.2516, allocations: 43.52 MB / 314.1 MB, free: 456 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.002443/0.002443, allocations: 85.59 kB / 441.3 MB, free: 6.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1426, allocations: 57.78 MB / 499.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.002109/0.1447, allocations: 490.5 kB / 499.5 MB, free: 11.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004207/0.149, allocations: 2.326 MB / 0.4901 GB, free: 9.488 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.942e-05/0.149, allocations: 0 / 0.4901 GB, free: 9.488 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.211e-05/0.1491, allocations: 0 / 0.4901 GB, free: 9.488 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.402e-06/0.1491, allocations: 0 / 0.4901 GB, free: 9.488 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003167/0.1523, allocations: 1.121 MB / 0.4912 GB, free: 8.363 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.463e-05/0.1523, allocations: 3.938 kB / 0.4912 GB, free: 8.359 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.584e-05/0.1524, allocations: 8 kB / 0.4912 GB, free: 8.352 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.874e-05/0.1524, allocations: 0 / 0.4912 GB, free: 8.352 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.278e-05/0.1524, allocations: 0 / 0.4912 GB, free: 8.352 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.333e-06/0.1525, allocations: 0 / 0.4912 GB, free: 8.352 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002067/0.1545, allocations: 0.9873 MB / 0.4922 GB, free: 7.363 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.107e-05/0.1546, allocations: 0 / 0.4922 GB, free: 7.363 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.301e-05/0.1546, allocations: 0 / 0.4922 GB, free: 7.363 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001065/0.1557, allocations: 423.1 kB / 0.4926 GB, free: 6.949 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.1557, allocations: 4 kB / 0.4926 GB, free: 6.945 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1557, allocations: 4 kB / 0.4926 GB, free: 6.941 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.1557, allocations: 0 / 0.4926 GB, free: 6.941 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.0006745/0.1564, allocations: 432.5 kB / 0.493 GB, free: 6.465 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.008e-05/0.1564, allocations: 15.89 kB / 0.493 GB, free: 6.449 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.361e-05/0.1565, allocations: 30.75 kB / 0.493 GB, free: 6.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.565e-05/0.1565, allocations: 4.922 kB / 0.4931 GB, free: 6.406 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002225/0.1568, allocations: 164.4 kB / 0.4932 GB, free: 6.207 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.147e-05/0.1568, allocations: 384 / 0.4932 GB, free: 6.207 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.252e-05/0.1568, allocations: 384 / 0.4932 GB, free: 6.207 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001288/0.1569, allocations: 45.77 kB / 0.4933 GB, free: 6.156 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.157, allocations: 0 / 0.4933 GB, free: 6.156 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.716e-06/0.157, allocations: 0 / 0.4933 GB, free: 6.156 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.157, allocations: 0 / 0.4933 GB, free: 6.156 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.322e-05/0.157, allocations: 4 kB / 0.4933 GB, free: 6.152 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001923/0.1572, allocations: 145.7 kB / 0.4934 GB, free: 5.961 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.26e-05/0.1573, allocations: 18.56 kB / 0.4934 GB, free: 5.934 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.808e-05/0.1573, allocations: 8.953 kB / 0.4934 GB, free: 5.922 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.861e-06/0.1573, allocations: 4 kB / 0.4934 GB, free: 5.918 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.613e-05/0.1574, allocations: 60.2 kB / 0.4935 GB, free: 5.844 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 3.546e-06/0.1574, allocations: 3.938 kB / 0.4935 GB, free: 5.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002787/0.1577, allocations: 71.33 kB / 0.4936 GB, free: 5.758 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.256e-05/0.1578, allocations: 77.11 kB / 0.4936 GB, free: 5.664 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.993e-05/0.1578, allocations: 89.86 kB / 0.4937 GB, free: 5.566 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.945e-05/0.1579, allocations: 29.7 kB / 0.4937 GB, free: 5.531 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.072e-05/0.1579, allocations: 84.27 kB / 0.4938 GB, free: 5.445 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.546e-05/0.158, allocations: 0 / 0.4938 GB, free: 5.445 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.733e-05/0.158, allocations: 9.719 kB / 0.4938 GB, free: 5.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001947/0.1582, allocations: 314.8 kB / 0.4941 GB, free: 5.113 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.497e-05/0.1582, allocations: 7.938 kB / 0.4941 GB, free: 5.105 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.344e-06/0.1582, allocations: 0 / 0.4941 GB, free: 5.105 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.084e-05/0.1583, allocations: 68.19 kB / 0.4942 GB, free: 5.023 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.1583, allocations: 0 / 0.4942 GB, free: 5.023 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.219e-05/0.1584, allocations: 63.47 kB / 0.4943 GB, free: 4.949 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.6e-05/0.1585, allocations: 33.64 kB / 0.4943 GB, free: 4.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.1585, allocations: 0 / 0.4943 GB, free: 4.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.213e-05/0.1585, allocations: 0 / 0.4943 GB, free: 4.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.112e-06/0.1585, allocations: 0 / 0.4943 GB, free: 4.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.228e-06/0.1586, allocations: 4 kB / 0.4943 GB, free: 4.906 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.075e-05/0.1586, allocations: 0 / 0.4943 GB, free: 4.906 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.106e-05/0.1586, allocations: 3.984 kB / 0.4943 GB, free: 4.902 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.0001226/0.1587, allocations: 139.5 kB / 0.4944 GB, free: 4.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.081e-05/0.1587, allocations: 11.94 kB / 0.4944 GB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.653e-05/0.1588, allocations: 3.125 kB / 0.4945 GB, free: 4.73 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.1588, allocations: 0 / 0.4945 GB, free: 4.73 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.1588, allocations: 0 / 0.4945 GB, free: 4.73 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.1588, allocations: 0 / 0.4945 GB, free: 4.73 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001405/0.1589, allocations: 153.6 kB / 0.4946 GB, free: 4.531 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.1589, allocations: 0 / 0.4946 GB, free: 4.531 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.156e-06/0.159, allocations: 0 / 0.4946 GB, free: 4.531 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.069e-06/0.159, allocations: 7.875 kB / 0.4946 GB, free: 4.523 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.073e-06/0.159, allocations: 0 / 0.4946 GB, free: 4.523 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.159, allocations: 4 kB / 0.4946 GB, free: 4.52 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.159, allocations: 0 / 0.4946 GB, free: 4.52 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000129/0.1591, allocations: 90.83 kB / 0.4947 GB, free: 4.406 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.368e-05/0.1592, allocations: 81.05 kB / 0.4948 GB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.807e-05/0.1592, allocations: 0 / 0.4948 GB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.512e-05/0.1592, allocations: 11.94 kB / 0.4948 GB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.363e-05/0.1593, allocations: 0 / 0.4948 GB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-06/0.1593, allocations: 0 / 0.4948 GB, free: 4.297 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.565e-05/0.1593, allocations: 79.31 kB / 0.4949 GB, free: 4.219 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.1593, allocations: 0 / 0.4949 GB, free: 4.219 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006011/0.1599, allocations: 147.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.001244/0.1612, allocations: 0.8972 MB / 0.4959 GB, free: 3.141 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001327/0.1613, allocations: 59.41 kB / 0.4959 GB, free: 3.07 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1613, allocations: 0 / 0.4959 GB, free: 3.07 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.707e-05/0.1614, allocations: 63.45 kB / 0.496 GB, free: 2.996 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001507/0.1616, allocations: 4 kB / 0.496 GB, free: 2.992 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005167/0.1621, allocations: 186 kB / 0.4962 GB, free: 2.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003602/0.1625, allocations: 0.6729 MB / 0.4968 GB, free: 2.07 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.263e-06/0.1625, allocations: 4 kB / 0.4968 GB, free: 2.066 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.912e-05/0.1625, allocations: 7.438 kB / 0.4968 GB, free: 2.059 MB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1625, allocations: 0 / 0.4968 GB, free: 2.059 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03346/0.196, allocations: 5.299 MB / 0.502 GB, free: 12.75 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.409/8.605, allocations: 15.98 kB / 0.502 GB, free: 12.73 MB / 398.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations_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_TestComplexOperations.fmu > ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches