Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.009398/0.009402, allocations: 174.6 kB / 15.13 MB, free: 6.031 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 2.066/2.066, allocations: 194.5 MB / 210.3 MB, free: 7.602 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001914/0.001913, allocations: 112.1 kB / 255.6 MB, free: 10.22 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2759/0.2759, allocations: 40.01 MB / 340.8 MB, free: 11.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005215/0.0005217, allocations: 9.906 kB / 406.3 MB, free: 51.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1153, allocations: 54.87 MB / 461.1 MB, free: 3.18 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0006226/0.116, allocations: 214.2 kB / 461.4 MB, free: 2.969 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003854/0.1198, allocations: 2.139 MB / 463.5 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.225e-05/0.1199, allocations: 0 / 463.5 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.196e-05/0.12, allocations: 0 / 463.5 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.935e-06/0.12, allocations: 0 / 463.5 MB, free: 0.8086 MB / 298.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+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.00331/0.1233, allocations: 0.9111 MB / 464.4 MB, free: 15.9 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.744e-05/0.1234, allocations: 4 kB / 464.4 MB, free: 15.89 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.828e-05/0.1234, allocations: 0 / 464.4 MB, free: 15.89 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.051e-05/0.1235, allocations: 7.938 kB / 464.4 MB, free: 15.89 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.026e-05/0.1235, allocations: 3.938 kB / 464.4 MB, free: 15.88 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.294e-06/0.1235, allocations: 0 / 464.4 MB, free: 15.88 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002647/0.1262, allocations: 0.8897 MB / 465.3 MB, free: 14.99 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.06e-05/0.1263, allocations: 0 / 465.3 MB, free: 14.99 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 4.933e-05/0.1263, allocations: 29.7 kB / 465.3 MB, free: 14.96 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008394/0.1272, allocations: 259.4 kB / 465.6 MB, free: 14.7 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.313e-06/0.1272, allocations: 0 / 465.6 MB, free: 14.7 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.1272, allocations: 0 / 465.6 MB, free: 14.7 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.1272, allocations: 4 kB / 465.6 MB, free: 14.7 MB / 314.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.0005402/0.1278, allocations: 433 kB / 466 MB, free: 14.22 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.1279, allocations: 8.031 kB / 466 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.367e-05/0.1279, allocations: 34.56 kB / 466.1 MB, free: 14.17 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.971e-05/0.1279, allocations: 3.938 kB / 466.1 MB, free: 14.17 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001092/0.1281, allocations: 159.1 kB / 466.2 MB, free: 13.97 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.1281, allocations: 3.984 kB / 466.2 MB, free: 13.97 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.225e-05/0.1281, allocations: 0 / 466.2 MB, free: 13.97 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001316/0.1282, allocations: 33.7 kB / 466.3 MB, free: 13.93 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.1283, allocations: 4 kB / 466.3 MB, free: 13.93 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.1283, allocations: 3.953 kB / 466.3 MB, free: 13.92 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.1283, allocations: 0 / 466.3 MB, free: 13.92 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.102e-05/0.1283, allocations: 0 / 466.3 MB, free: 13.92 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001515/0.1285, allocations: 145.7 kB / 466.4 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.796e-05/0.1286, allocations: 34.44 kB / 466.4 MB, free: 13.69 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.768e-05/0.1286, allocations: 4.859 kB / 466.4 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.404e-06/0.1286, allocations: 8.094 kB / 466.4 MB, free: 13.67 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.914e-05/0.1287, allocations: 56.27 kB / 466.5 MB, free: 13.6 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 1.673e-06/0.1287, allocations: 0 / 466.5 MB, free: 13.6 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002049/0.1289, allocations: 59.41 kB / 466.6 MB, free: 13.53 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.26e-05/0.129, allocations: 92.98 kB / 466.7 MB, free: 13.42 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.353e-05/0.129, allocations: 89.86 kB / 466.7 MB, free: 13.32 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.376e-05/0.1291, allocations: 25.7 kB / 466.8 MB, free: 13.29 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.551e-05/0.1291, allocations: 80.14 kB / 466.8 MB, free: 13.21 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.801e-05/0.1291, allocations: 4.125 kB / 466.8 MB, free: 13.21 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.775e-06/0.1291, allocations: 4 kB / 466.9 MB, free: 13.2 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.1293, allocations: 310.8 kB / 467.2 MB, free: 12.89 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.081e-05/0.1293, allocations: 0 / 467.2 MB, free: 12.89 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.005e-06/0.1293, allocations: 0 / 467.2 MB, free: 12.89 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.198e-05/0.1294, allocations: 29.7 kB / 467.2 MB, free: 12.86 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1294, allocations: 0 / 467.2 MB, free: 12.86 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.443e-05/0.1295, allocations: 63.39 kB / 467.2 MB, free: 12.78 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.349e-05/0.1295, allocations: 39.36 kB / 467.3 MB, free: 12.74 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.1296, allocations: 3.938 kB / 467.3 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.1296, allocations: 0 / 467.3 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.653e-06/0.1296, allocations: 0 / 467.3 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.1296, allocations: 0 / 467.3 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.426e-05/0.1296, allocations: 3.953 kB / 467.3 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.168e-05/0.1297, allocations: 4 kB / 467.3 MB, free: 12.73 MB / 314.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.0001025/0.1298, allocations: 135.5 kB / 467.4 MB, free: 12.58 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.288e-05/0.1298, allocations: 3.984 kB / 467.4 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.28e-05/0.1298, allocations: 15.08 kB / 467.4 MB, free: 12.56 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.1298, allocations: 0 / 467.4 MB, free: 12.56 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.1298, allocations: 0 / 467.4 MB, free: 12.56 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.1299, allocations: 0 / 467.4 MB, free: 12.56 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001132/0.13, allocations: 145.6 kB / 467.6 MB, free: 12.37 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.13, allocations: 0 / 467.6 MB, free: 12.37 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.92e-07/0.13, allocations: 0 / 467.6 MB, free: 12.37 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.99e-06/0.13, allocations: 7.984 kB / 467.6 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.333e-05/0.13, allocations: 3.984 kB / 467.6 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.13, allocations: 3.938 kB / 467.6 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1301, allocations: 0 / 467.6 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001329/0.1302, allocations: 98.8 kB / 467.7 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.23e-05/0.1303, allocations: 81.09 kB / 467.8 MB, free: 12.14 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.679e-05/0.1303, allocations: 0 / 467.8 MB, free: 12.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.288e-05/0.1303, allocations: 0 / 467.8 MB, free: 12.14 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.973e-05/0.1303, allocations: 4 kB / 467.8 MB, free: 12.13 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.74e-06/0.1303, allocations: 3.938 kB / 467.8 MB, free: 12.13 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.317e-05/0.1304, allocations: 75.28 kB / 467.9 MB, free: 12.05 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.1304, allocations: 4.031 kB / 467.9 MB, free: 12.05 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006818/0.1311, allocations: 136 kB / 468 MB, free: 11.92 MB / 314.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.001466/0.1326, allocations: 0.875 MB / 468.9 MB, free: 11.01 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001516/0.1328, allocations: 63.39 kB / 468.9 MB, free: 10.94 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.1328, allocations: 0 / 468.9 MB, free: 10.94 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 4.524e-05/0.1328, allocations: 63.28 kB / 469 MB, free: 10.86 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000174/0.133, allocations: 6.156 kB / 469 MB, free: 10.86 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005532/0.1336, allocations: 176.2 kB / 469.2 MB, free: 10.65 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002599/0.1339, allocations: 0.677 MB / 469.9 MB, free: 9.945 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.194e-06/0.1339, allocations: 0 / 469.9 MB, free: 9.945 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.004e-05/0.1339, allocations: 7.438 kB / 469.9 MB, free: 9.938 MB / 314.7 MB Notification: Performance of SimCode: time 1.182e-06/0.1339, allocations: 0 / 469.9 MB, free: 9.938 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03743/0.1714, allocations: 4.909 MB / 474.8 MB, free: 5.078 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003476/0.1718, allocations: 232.6 kB / 475 MB, free: 4.832 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.902/3.074, allocations: 0 / 475 MB, free: 4.832 MB / 314.7 MB