Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00157/0.00157, allocations: 185.5 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.412/2.412, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001186/0.001186, allocations: 92.34 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5355/0.5355, allocations: 43.56 MB / 362.7 MB, free: 52.22 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000483/0.0004831, allocations: 8 kB / 431.5 MB, free: 6.066 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1561/0.1566, allocations: 58.84 MB / 490.3 MB, free: 11.14 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5239/0.6805, allocations: 88.77 MB / 0.5655 GB, free: 13.78 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002757/0.6809, allocations: 67.97 kB / 0.5656 GB, free: 13.71 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04736/0.7282, allocations: 9.921 MB / 0.5753 GB, free: 3.809 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.909e-06/0.7283, allocations: 4 kB / 0.5753 GB, free: 3.805 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.7283, allocations: 4 kB / 0.5753 GB, free: 3.801 MB / 394.7 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.0007618/0.7291, allocations: 481.5 kB / 0.5757 GB, free: 3.277 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.7292, allocations: 8.031 kB / 0.5757 GB, free: 3.27 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.333e-05/0.7292, allocations: 30.56 kB / 0.5758 GB, free: 3.23 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.405e-05/0.7293, allocations: 11.44 kB / 0.5758 GB, free: 3.223 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001063/0.7294, allocations: 159.1 kB / 0.5759 GB, free: 3.027 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.031e-05/0.7294, allocations: 0 / 0.5759 GB, free: 3.027 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.263e-05/0.7294, allocations: 0 / 0.5759 GB, free: 3.027 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001061/0.7295, allocations: 41.62 kB / 0.576 GB, free: 2.98 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.7296, allocations: 0 / 0.576 GB, free: 2.98 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.006e-05/0.7296, allocations: 3.875 kB / 0.576 GB, free: 2.98 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.7296, allocations: 1.031 kB / 0.576 GB, free: 2.98 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.227e-05/0.7296, allocations: 0 / 0.576 GB, free: 2.98 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001488/0.7298, allocations: 149.6 kB / 0.5761 GB, free: 2.785 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.812e-05/0.7298, allocations: 26.36 kB / 0.5761 GB, free: 2.754 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.827e-06/0.7299, allocations: 0 / 0.5761 GB, free: 2.754 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.601e-05/0.7299, allocations: 68.62 kB / 0.5762 GB, free: 2.672 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.413e-06/0.7299, allocations: 0 / 0.5762 GB, free: 2.672 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002339/0.7302, allocations: 59.47 kB / 0.5763 GB, free: 2.602 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.012e-05/0.7303, allocations: 81.11 kB / 0.5763 GB, free: 2.504 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.013e-05/0.7303, allocations: 85 kB / 0.5764 GB, free: 2.414 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.484e-05/0.7303, allocations: 25.7 kB / 0.5764 GB, free: 2.383 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.247e-05/0.7304, allocations: 154.6 kB / 0.5766 GB, free: 2.23 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.906e-05/0.7304, allocations: 0.9375 kB / 0.5766 GB, free: 2.23 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.045e-06/0.7305, allocations: 4.125 kB / 0.5766 GB, free: 2.227 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.7306, allocations: 314.8 kB / 0.5769 GB, free: 1.91 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.15e-05/0.7306, allocations: 0 / 0.5769 GB, free: 1.91 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.195e-06/0.7306, allocations: 4 kB / 0.5769 GB, free: 1.906 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.723e-05/0.7307, allocations: 25.7 kB / 0.5769 GB, free: 1.875 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.79e-06/0.7307, allocations: 7.891 kB / 0.5769 GB, free: 1.867 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.565e-05/0.7308, allocations: 59.41 kB / 0.577 GB, free: 1.797 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.411e-05/0.7309, allocations: 29.7 kB / 0.577 GB, free: 1.762 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.7309, allocations: 8.078 kB / 0.577 GB, free: 1.754 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.7309, allocations: 4 kB / 0.577 GB, free: 1.75 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.452e-06/0.7309, allocations: 0 / 0.577 GB, free: 1.75 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.7309, allocations: 0 / 0.577 GB, free: 1.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.965e-05/0.731, allocations: 0 / 0.577 GB, free: 1.75 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.143e-05/0.731, allocations: 4 kB / 0.577 GB, free: 1.746 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001111/0.7311, allocations: 139.5 kB / 0.5772 GB, free: 1.594 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.499e-05/0.7311, allocations: 5.984 kB / 0.5772 GB, free: 1.59 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.425e-05/0.7312, allocations: 3.125 kB / 0.5772 GB, free: 1.59 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.7312, allocations: 4 kB / 0.5772 GB, free: 1.586 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.7312, allocations: 0 / 0.5772 GB, free: 1.586 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.7312, allocations: 0 / 0.5772 GB, free: 1.586 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001165/0.7313, allocations: 149.7 kB / 0.5773 GB, free: 1.391 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.7313, allocations: 0 / 0.5773 GB, free: 1.391 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.357e-06/0.7313, allocations: 3.953 kB / 0.5773 GB, free: 1.387 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.7314, allocations: 0 / 0.5773 GB, free: 1.387 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.059e-05/0.7314, allocations: 0 / 0.5773 GB, free: 1.387 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.7314, allocations: 3.938 kB / 0.5773 GB, free: 1.383 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.7314, allocations: 3.938 kB / 0.5773 GB, free: 1.379 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001324/0.7315, allocations: 94.83 kB / 0.5774 GB, free: 1.262 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.299e-05/0.7316, allocations: 77.11 kB / 0.5775 GB, free: 1.168 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.885e-05/0.7316, allocations: 7.953 kB / 0.5775 GB, free: 1.16 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.17e-05/0.7316, allocations: 0.75 kB / 0.5775 GB, free: 1.16 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.714e-05/0.7317, allocations: 0 / 0.5775 GB, free: 1.16 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.055e-06/0.7317, allocations: 3.984 kB / 0.5775 GB, free: 1.156 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.957e-05/0.7317, allocations: 79.28 kB / 0.5776 GB, free: 1.078 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.7317, allocations: 0 / 0.5776 GB, free: 1.078 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008641/0.7326, allocations: 179.8 kB / 0.5777 GB, free: 0.9023 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001711/0.7343, allocations: 0.9303 MB / 0.5787 GB, free: 15.94 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001368/0.7345, allocations: 55.41 kB / 0.5787 GB, free: 15.88 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.7345, allocations: 0 / 0.5787 GB, free: 15.88 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 4.897e-05/0.7346, allocations: 55.41 kB / 0.5788 GB, free: 15.81 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001076/0.7347, allocations: 7.953 kB / 0.5788 GB, free: 15.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006587/0.7354, allocations: 232.7 kB / 0.579 GB, free: 15.53 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002877/0.7357, allocations: 0.677 MB / 0.5797 GB, free: 14.82 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.314e-05/0.7357, allocations: 10.17 kB / 0.5797 GB, free: 14.82 MB / 410.7 MB Notification: Performance of SimCode: time 1.293e-06/0.7357, allocations: 0 / 0.5797 GB, free: 14.82 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.473/3.209, allocations: 4.009 MB / 0.5836 GB, free: 10.83 MB / 410.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_ComplexMath_TestComplexOperations_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexOperations_res.mat does not exist to compare? outputFormat=mat