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.001473/0.001473, allocations: 98.67 kB / 16.27 MB, free: 5.93 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.001653/0.001653, allocations: 190.1 kB / 17.2 MB, free: 5.574 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.371/1.371, allocations: 205.1 MB / 223.1 MB, free: 12.29 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.2142/0.2142, allocations: 43.51 MB / 313.9 MB, free: 0.5195 MB / 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.001633/0.001633, allocations: 73.81 kB / 382.8 MB, free: 56.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1248, allocations: 57.79 MB / 440.6 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001749/0.1266, allocations: 481.4 kB / 441.1 MB, free: 6.332 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00267/0.1293, allocations: 2.316 MB / 443.4 MB, free: 3.996 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.958e-05/0.1294, allocations: 0 / 443.4 MB, free: 3.996 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.121e-05/0.1294, allocations: 3.938 kB / 443.4 MB, free: 3.992 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.62e-06/0.1294, allocations: 0 / 443.4 MB, free: 3.992 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002276/0.1317, allocations: 1.125 MB / 444.5 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.087e-05/0.1317, allocations: 0 / 444.5 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.012e-05/0.1318, allocations: 4 kB / 444.5 MB, free: 2.863 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.721e-05/0.1318, allocations: 4 kB / 444.5 MB, free: 2.859 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.216e-05/0.1318, allocations: 3.938 kB / 444.5 MB, free: 2.855 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.983e-06/0.1319, allocations: 3.984 kB / 444.5 MB, free: 2.852 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00116/0.133, allocations: 0.9599 MB / 445.5 MB, free: 1.891 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.005e-06/0.133, allocations: 0 / 445.5 MB, free: 1.891 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 1.86e-05/0.1331, allocations: 4 kB / 445.5 MB, free: 1.887 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004787/0.1335, allocations: 423.3 kB / 445.9 MB, free: 1.473 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.1336, allocations: 0 / 445.9 MB, free: 1.473 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1336, allocations: 0 / 445.9 MB, free: 1.473 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.65e-06/0.1336, allocations: 0 / 445.9 MB, free: 1.473 MB / 318.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.0003713/0.134, allocations: 437.3 kB / 446.3 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.134, allocations: 15.89 kB / 446.4 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.123e-05/0.134, allocations: 38.69 kB / 446.4 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.408e-05/0.1341, allocations: 0.9375 kB / 446.4 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.194e-05/0.1342, allocations: 164.4 kB / 446.6 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.406e-06/0.1342, allocations: 384 / 446.6 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.041e-05/0.1342, allocations: 4.375 kB / 446.6 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.832e-05/0.1343, allocations: 29.83 kB / 446.6 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.1343, allocations: 0 / 446.6 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.156e-06/0.1343, allocations: 0 / 446.6 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.1343, allocations: 4 kB / 446.6 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.992e-05/0.1344, allocations: 7.922 kB / 446.6 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001135/0.1345, allocations: 145.7 kB / 446.7 MB, free: 500 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.444e-05/0.1345, allocations: 26.61 kB / 446.8 MB, free: 464 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.335e-05/0.1345, allocations: 4.859 kB / 446.8 MB, free: 456 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.751e-06/0.1345, allocations: 0 / 446.8 MB, free: 456 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.093e-05/0.1346, allocations: 60.2 kB / 446.8 MB, free: 380 kB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 7.11e-07/0.1346, allocations: 0 / 446.8 MB, free: 380 kB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001517/0.1347, allocations: 67.39 kB / 446.9 MB, free: 300 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.955e-05/0.1348, allocations: 81.23 kB / 447 MB, free: 200 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.096e-05/0.1348, allocations: 97.86 kB / 447.1 MB, free: 92 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.853e-06/0.1348, allocations: 25.7 kB / 447.1 MB, free: 60 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.315e-05/0.1349, allocations: 80.14 kB / 447.2 MB, free: 15.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.359e-05/0.1349, allocations: 0 / 447.2 MB, free: 15.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.742e-05/0.1349, allocations: 13.72 kB / 447.2 MB, free: 15.96 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002655/0.1352, allocations: 314.8 kB / 447.5 MB, free: 15.64 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.009e-05/0.1352, allocations: 3.938 kB / 447.5 MB, free: 15.64 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.55e-06/0.1352, allocations: 0 / 447.5 MB, free: 15.64 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.776e-05/0.1353, allocations: 68.33 kB / 447.6 MB, free: 15.55 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.1353, allocations: 0 / 447.6 MB, free: 15.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.981e-05/0.1354, allocations: 63.34 kB / 447.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.59e-05/0.1354, allocations: 37.62 kB / 447.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.1354, allocations: 0 / 447.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.1354, allocations: 0 / 447.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.1354, allocations: 4 kB / 447.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.68e-06/0.1354, allocations: 0 / 447.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.532e-05/0.1355, allocations: 0 / 447.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.175e-06/0.1355, allocations: 8.016 kB / 447.7 MB, free: 15.43 MB / 334.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 9.348e-05/0.1356, allocations: 139.5 kB / 447.8 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.247e-06/0.1356, allocations: 3.938 kB / 447.8 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.438e-06/0.1356, allocations: 3.125 kB / 447.8 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/0.1356, allocations: 3.984 kB / 447.8 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.1356, allocations: 0 / 447.8 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.683e-06/0.1356, allocations: 0 / 447.8 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001043/0.1357, allocations: 153.6 kB / 448 MB, free: 15.06 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.1357, allocations: 0 / 448 MB, free: 15.06 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.1358, allocations: 4 kB / 448 MB, free: 15.06 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.554e-06/0.1358, allocations: 3.938 kB / 448 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.1358, allocations: 0 / 448 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.1358, allocations: 0 / 448 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.1358, allocations: 3.984 kB / 448 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.673e-05/0.1359, allocations: 94.77 kB / 448.1 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.281e-05/0.1359, allocations: 81.05 kB / 448.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.531e-05/0.1359, allocations: 7.984 kB / 448.2 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.636e-06/0.136, allocations: 4.031 kB / 448.2 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.431e-05/0.136, allocations: 0 / 448.2 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-06/0.136, allocations: 0 / 448.2 MB, free: 14.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 2.786e-05/0.136, allocations: 75.28 kB / 448.2 MB, free: 14.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.136, allocations: 0 / 448.2 MB, free: 14.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000446/0.1365, allocations: 136 kB / 448.4 MB, free: 14.62 MB / 334.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.0009182/0.1374, allocations: 0.8951 MB / 449.3 MB, free: 13.7 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001/0.1375, allocations: 59.41 kB / 449.3 MB, free: 13.62 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1375, allocations: 0 / 449.3 MB, free: 13.62 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.748e-05/0.1376, allocations: 59.41 kB / 449.4 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000124/0.1377, allocations: 7.094 kB / 449.4 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003579/0.1381, allocations: 170.5 kB / 449.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002349/0.1383, allocations: 0.6729 MB / 450.2 MB, free: 12.64 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.061e-06/0.1383, allocations: 0 / 450.2 MB, free: 12.64 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.965e-05/0.1383, allocations: 7.438 kB / 450.2 MB, free: 12.64 MB / 334.1 MB Notification: Performance of SimCode: time 1.944e-06/0.1384, allocations: 4.125 kB / 450.2 MB, free: 12.63 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02419/0.1625, allocations: 5.3 MB / 455.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.863/8.026, allocations: 0.875 kB / 455.6 MB, free: 7.336 MB / 334.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