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.0009865/0.000986, allocations: 96.28 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009546/0.0009546, allocations: 177.7 kB / 16.57 MB, free: 6.852 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.726/1.726, allocations: 205.4 MB / 222.7 MB, free: 5.672 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4798/0.4798, allocations: 43.55 MB / 314.5 MB, free: 9.047 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.0005116/0.0005117, allocations: 15.98 kB / 384 MB, free: 8.184 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1497/0.1502, allocations: 58.85 MB / 442.8 MB, free: 13.22 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0005824/0.1509, allocations: 216.4 kB / 443 MB, free: 13.01 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003062/0.1539, allocations: 2.15 MB / 445.2 MB, free: 10.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.241e-05/0.154, allocations: 0 / 445.2 MB, free: 10.84 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.207e-05/0.154, allocations: 0 / 445.2 MB, free: 10.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.748e-06/0.154, allocations: 0 / 445.2 MB, free: 10.84 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002428/0.1564, allocations: 0.9036 MB / 446.1 MB, free: 9.934 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.649e-05/0.1565, allocations: 0 / 446.1 MB, free: 9.934 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.74e-05/0.1565, allocations: 0 / 446.1 MB, free: 9.934 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.884e-05/0.1566, allocations: 4 kB / 446.1 MB, free: 9.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.606e-05/0.1566, allocations: 3.984 kB / 446.1 MB, free: 9.926 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.895e-06/0.1566, allocations: 3.938 kB / 446.1 MB, free: 9.922 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001188/0.1578, allocations: 0.7101 MB / 446.8 MB, free: 9.211 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.595e-06/0.1578, allocations: 0 / 446.8 MB, free: 9.211 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.071e-05/0.1579, allocations: 25.7 kB / 446.8 MB, free: 9.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003848/0.1583, allocations: 255.5 kB / 447.1 MB, free: 8.93 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.1583, allocations: 0 / 447.1 MB, free: 8.93 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1583, allocations: 0 / 447.1 MB, free: 8.93 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.1583, allocations: 0 / 447.1 MB, free: 8.93 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.0004553/0.1587, allocations: 429.3 kB / 447.5 MB, free: 8.457 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.1588, allocations: 8.031 kB / 447.5 MB, free: 8.449 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.447e-05/0.1588, allocations: 38.5 kB / 447.6 MB, free: 8.402 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.116e-05/0.1589, allocations: 11.86 kB / 447.6 MB, free: 8.391 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001109/0.159, allocations: 159.1 kB / 447.7 MB, free: 8.195 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.167e-05/0.159, allocations: 0 / 447.7 MB, free: 8.195 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.015e-06/0.159, allocations: 0 / 447.7 MB, free: 8.195 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001073/0.1591, allocations: 37.69 kB / 447.8 MB, free: 8.152 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.1592, allocations: 0 / 447.8 MB, free: 8.152 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.1592, allocations: 3.938 kB / 447.8 MB, free: 8.148 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.226e-06/0.1592, allocations: 0 / 447.8 MB, free: 8.148 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.987e-05/0.1593, allocations: 3.953 kB / 447.8 MB, free: 8.145 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001811/0.1595, allocations: 153.6 kB / 447.9 MB, free: 7.945 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.593e-05/0.1595, allocations: 18.52 kB / 447.9 MB, free: 7.918 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.114e-06/0.1595, allocations: 0 / 447.9 MB, free: 7.918 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.958e-05/0.1596, allocations: 68.34 kB / 448 MB, free: 7.836 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 7.21e-07/0.1596, allocations: 0 / 448 MB, free: 7.836 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002176/0.1598, allocations: 55.41 kB / 448.1 MB, free: 7.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.576e-05/0.1599, allocations: 89.17 kB / 448.2 MB, free: 7.664 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.395e-05/0.16, allocations: 89.86 kB / 448.2 MB, free: 7.566 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.528e-05/0.16, allocations: 25.7 kB / 448.3 MB, free: 7.535 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.829e-05/0.16, allocations: 84.12 kB / 448.3 MB, free: 7.449 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.351e-05/0.1601, allocations: 0 / 448.3 MB, free: 7.449 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.366e-06/0.1601, allocations: 0 / 448.3 MB, free: 7.449 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.1602, allocations: 318.8 kB / 448.7 MB, free: 7.129 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.354e-05/0.1603, allocations: 4 kB / 448.7 MB, free: 7.125 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.382e-06/0.1603, allocations: 4 kB / 448.7 MB, free: 7.121 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.303e-05/0.1603, allocations: 25.7 kB / 448.7 MB, free: 7.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1603, allocations: 0 / 448.7 MB, free: 7.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.13e-05/0.1604, allocations: 59.41 kB / 448.7 MB, free: 7.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.929e-05/0.1605, allocations: 33.69 kB / 448.8 MB, free: 6.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.1605, allocations: 4 kB / 448.8 MB, free: 6.977 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.1605, allocations: 0 / 448.8 MB, free: 6.977 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.393e-06/0.1605, allocations: 0 / 448.8 MB, free: 6.977 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.1605, allocations: 3.938 kB / 448.8 MB, free: 6.973 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.886e-05/0.1606, allocations: 96 / 448.8 MB, free: 6.973 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.331e-05/0.1606, allocations: 4 kB / 448.8 MB, free: 6.969 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001227/0.1607, allocations: 151.4 kB / 448.9 MB, free: 6.805 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.903e-06/0.1607, allocations: 0 / 448.9 MB, free: 6.805 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.377e-05/0.1607, allocations: 3.125 kB / 448.9 MB, free: 6.801 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.1608, allocations: 3.984 kB / 448.9 MB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/0.1608, allocations: 4 kB / 449 MB, free: 6.793 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.1608, allocations: 4 kB / 449 MB, free: 6.789 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001221/0.1609, allocations: 149.6 kB / 449.1 MB, free: 6.594 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1609, allocations: 0 / 449.1 MB, free: 6.594 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.81e-07/0.1609, allocations: 7.938 kB / 449.1 MB, free: 6.586 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.263e-06/0.1609, allocations: 0 / 449.1 MB, free: 6.586 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.674e-06/0.1609, allocations: 0 / 449.1 MB, free: 6.586 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.31e-07/0.161, allocations: 4 kB / 449.1 MB, free: 6.582 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.161, allocations: 3.984 kB / 449.1 MB, free: 6.578 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001048/0.1611, allocations: 90.78 kB / 449.2 MB, free: 6.465 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.504e-05/0.1611, allocations: 81.11 kB / 449.3 MB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.414e-05/0.1612, allocations: 32 / 449.3 MB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.13e-05/0.1612, allocations: 7.984 kB / 449.3 MB, free: 6.359 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.205e-05/0.1612, allocations: 0 / 449.3 MB, free: 6.359 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-06/0.1612, allocations: 3.938 kB / 449.3 MB, free: 6.355 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.292e-05/0.1612, allocations: 75.28 kB / 449.4 MB, free: 6.281 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1613, allocations: 4 kB / 449.4 MB, free: 6.277 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000435/0.1617, allocations: 136 kB / 449.5 MB, free: 6.145 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 (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.0009498/0.1627, allocations: 0.8832 MB / 450.4 MB, free: 5.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.337e-05/0.1628, allocations: 59.41 kB / 450.4 MB, free: 5.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1628, allocations: 0 / 450.4 MB, free: 5.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.53e-05/0.1628, allocations: 63.33 kB / 450.5 MB, free: 5.086 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.997e-05/0.1629, allocations: 3.938 kB / 450.5 MB, free: 5.082 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004246/0.1633, allocations: 180.3 kB / 450.7 MB, free: 4.867 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003159/0.1637, allocations: 0.6731 MB / 451.4 MB, free: 4.168 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.414e-06/0.1637, allocations: 0 / 451.4 MB, free: 4.168 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.45e-05/0.1637, allocations: 11.56 kB / 451.4 MB, free: 4.16 MB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1637, allocations: 4 kB / 451.4 MB, free: 4.156 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2569/0.4206, allocations: 4.856 MB / 456.2 MB, free: 45.39 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001658/0.4208, allocations: 220.1 kB / 456.4 MB, free: 45.15 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.912/2.333, allocations: 14.91 kB / 456.5 MB, free: 45.14 MB / 382.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexOperations_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations_res.mat does not exist to compare? outputFormat=mat