Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_0_0_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.001019/0.001019, allocations: 100.1 kB / 16.99 MB, free: 5.941 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.0008756/0.0008756, allocations: 183.7 kB / 17.88 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.383/1.383, allocations: 223.2 MB / 241.8 MB, free: 14.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2199/0.2199, allocations: 44.22 MB / 337.1 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005388/0.000539, allocations: 12 kB / 409.6 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1593/0.1598, allocations: 61.91 MB / 471.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0006987/0.1606, allocations: 195 kB / 471.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002984/0.1636, allocations: 2.123 MB / 473.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.142e-05/0.1636, allocations: 0 / 473.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.3e-05/0.1637, allocations: 0 / 473.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.939e-06/0.1637, allocations: 0 / 473.8 MB, free: 11.31 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/ComplexMath.mo:4:3-189:23:writable] Warning: Pure function ‘ModelicaTest.ComplexMath.ComplexFunctions‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.002197/0.1659, allocations: 0.8993 MB / 474.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.012e-05/0.1659, allocations: 0 / 474.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.509e-05/0.166, allocations: 3.938 kB / 474.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.708e-05/0.166, allocations: 0 / 474.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.794e-05/0.166, allocations: 4 kB / 474.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.156e-05/0.1661, allocations: 8 kB / 474.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001105/0.1672, allocations: 0.7296 MB / 475.5 MB, free: 9.664 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.282e-06/0.1672, allocations: 0 / 475.5 MB, free: 9.664 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.079e-05/0.1672, allocations: 29.64 kB / 475.5 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003564/0.1676, allocations: 255.5 kB / 475.8 MB, free: 9.379 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.384e-06/0.1676, allocations: 0 / 475.8 MB, free: 9.379 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1676, allocations: 0 / 475.8 MB, free: 9.379 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.1676, allocations: 0 / 475.8 MB, free: 9.379 MB / 350.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.0004052/0.168, allocations: 433 kB / 476.2 MB, free: 8.902 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.1681, allocations: 8.031 kB / 476.2 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.086e-05/0.1681, allocations: 30.56 kB / 476.2 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.32e-05/0.1681, allocations: 0 / 476.2 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.082e-05/0.1682, allocations: 159.1 kB / 476.4 MB, free: 8.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.196e-05/0.1683, allocations: 4 kB / 476.4 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.011e-05/0.1683, allocations: 3.953 kB / 476.4 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.568e-05/0.1684, allocations: 33.62 kB / 476.4 MB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.545e-06/0.1684, allocations: 7.984 kB / 476.4 MB, free: 8.605 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.426e-06/0.1684, allocations: 0 / 476.4 MB, free: 8.605 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.1684, allocations: 4 kB / 476.4 MB, free: 8.602 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.933e-05/0.1684, allocations: 0 / 476.4 MB, free: 8.602 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001267/0.1686, allocations: 145.7 kB / 476.6 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.32e-05/0.1686, allocations: 18.61 kB / 476.6 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.232e-06/0.1686, allocations: 0 / 476.6 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.18e-05/0.1687, allocations: 64.2 kB / 476.7 MB, free: 8.305 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.21e-07/0.1687, allocations: 0 / 476.7 MB, free: 8.305 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002105/0.1689, allocations: 67.41 kB / 476.7 MB, free: 8.227 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.296e-05/0.169, allocations: 81.11 kB / 476.8 MB, free: 8.129 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.586e-05/0.169, allocations: 93.86 kB / 476.9 MB, free: 8.027 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.264e-05/0.169, allocations: 25.7 kB / 476.9 MB, free: 7.996 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.785e-05/0.1691, allocations: 80.14 kB / 477 MB, free: 7.914 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.726e-05/0.1691, allocations: 288 / 477 MB, free: 7.914 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.134e-06/0.1691, allocations: 0 / 477 MB, free: 7.914 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.1692, allocations: 314.8 kB / 477.3 MB, free: 7.598 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.556e-06/0.1692, allocations: 4.125 kB / 477.3 MB, free: 7.594 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.851e-06/0.1692, allocations: 4 kB / 477.3 MB, free: 7.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.356e-05/0.1693, allocations: 25.7 kB / 477.3 MB, free: 7.559 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1693, allocations: 0 / 477.3 MB, free: 7.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.661e-05/0.1694, allocations: 67.34 kB / 477.4 MB, free: 7.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.253e-05/0.1694, allocations: 33.69 kB / 477.4 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.1694, allocations: 0 / 477.4 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.1694, allocations: 3.953 kB / 477.4 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.1694, allocations: 4 kB / 477.4 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.301e-06/0.1694, allocations: 4.094 kB / 477.4 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.766e-05/0.1695, allocations: 7.875 kB / 477.5 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/0.1695, allocations: 0 / 477.5 MB, free: 7.422 MB / 350.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 8.768e-05/0.1696, allocations: 140 kB / 477.6 MB, free: 7.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.975e-06/0.1696, allocations: 3.906 kB / 477.6 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.241e-05/0.1696, allocations: 7.078 kB / 477.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.1696, allocations: 3.953 kB / 477.6 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.1696, allocations: 4 kB / 477.6 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.1696, allocations: 3.984 kB / 477.6 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001412/0.1698, allocations: 149.7 kB / 477.8 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.1698, allocations: 0 / 477.8 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1698, allocations: 0 / 477.8 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.1698, allocations: 0 / 477.8 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.641e-06/0.1698, allocations: 0 / 477.8 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.1698, allocations: 0 / 477.8 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.1698, allocations: 3.953 kB / 477.8 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.253e-05/0.1699, allocations: 98.77 kB / 477.9 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.197e-05/0.17, allocations: 81.14 kB / 477.9 MB, free: 6.828 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.355e-05/0.17, allocations: 4 kB / 477.9 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.626e-06/0.17, allocations: 0 / 477.9 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.611e-05/0.17, allocations: 3.984 kB / 477.9 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.29e-06/0.17, allocations: 7.938 kB / 478 MB, free: 6.812 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.98e-05/0.1701, allocations: 75.28 kB / 478 MB, free: 6.738 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1701, allocations: 0 / 478 MB, free: 6.738 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004195/0.1705, allocations: 140 kB / 478.2 MB, free: 6.602 MB / 350.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.0009935/0.1715, allocations: 0.8822 MB / 479 MB, free: 5.695 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001094/0.1716, allocations: 63.41 kB / 479.1 MB, free: 5.621 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1716, allocations: 0 / 479.1 MB, free: 5.621 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.469e-05/0.1717, allocations: 59.39 kB / 479.2 MB, free: 5.551 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001281/0.1718, allocations: 0 / 479.2 MB, free: 5.551 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004648/0.1723, allocations: 164.3 kB / 479.3 MB, free: 5.348 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002355/0.1725, allocations: 0.6733 MB / 480 MB, free: 4.648 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.845e-06/0.1725, allocations: 7.984 kB / 480 MB, free: 4.641 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.611e-05/0.1726, allocations: 7.438 kB / 480 MB, free: 4.633 MB / 350.1 MB Notification: Performance of SimCode: time 1.443e-06/0.1726, allocations: 4 kB / 480 MB, free: 4.629 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01701/0.1896, allocations: 4.878 MB / 484.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002001/0.1899, allocations: 230.4 kB / 485.1 MB, free: 15.62 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.818/2.008, allocations: 0 / 485.1 MB, free: 15.62 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat does not exist to compare? outputFormat=mat