Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001277/0.001278, allocations: 104.4 kB / 17.63 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001385/0.001385, allocations: 210.4 kB / 18.58 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.4 MB / 246.8 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2236/0.2236, allocations: 46.11 MB / 344.2 MB, free: 11.54 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.003467/0.003467, allocations: 81.09 kB / 417.7 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1443/0.1478, allocations: 62.45 MB / 480.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001727/0.1496, allocations: 470.2 kB / 480.7 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003805/0.1534, allocations: 2.418 MB / 483.1 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.128e-05/0.1535, allocations: 3.938 kB / 483.1 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.443e-05/0.1535, allocations: 0 / 483.1 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.411e-06/0.1535, allocations: 4 kB / 483.1 MB, free: 2.215 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.002757/0.1563, allocations: 1.142 MB / 484.2 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.338e-05/0.1563, allocations: 0 / 484.2 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.638e-05/0.1564, allocations: 0 / 484.2 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.068e-05/0.1564, allocations: 7.984 kB / 484.2 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.124e-05/0.1564, allocations: 3.938 kB / 484.2 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.64e-06/0.1564, allocations: 0 / 484.2 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001744/0.1582, allocations: 1.015 MB / 485.3 MB, free: 48 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.186e-05/0.1582, allocations: 0 / 485.3 MB, free: 48 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.766e-05/0.1583, allocations: 4 kB / 485.3 MB, free: 44 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007872/0.1591, allocations: 439.6 kB / 485.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.295e-05/0.1591, allocations: 8 kB / 485.7 MB, free: 15.6 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.817e-06/0.1591, allocations: 3.844 kB / 485.7 MB, free: 15.6 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.1591, allocations: 0 / 485.7 MB, free: 15.6 MB / 366.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.0006246/0.1597, allocations: 437.3 kB / 486.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.587e-05/0.1598, allocations: 12.03 kB / 486.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.699e-05/0.1598, allocations: 30.75 kB / 486.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.623e-05/0.1599, allocations: 4.922 kB / 486.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001477/0.16, allocations: 160.4 kB / 486.3 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.375e-05/0.1601, allocations: 4.375 kB / 486.3 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.096e-05/0.1601, allocations: 4.375 kB / 486.3 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001042/0.1602, allocations: 33.81 kB / 486.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.1602, allocations: 0 / 486.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.286e-06/0.1602, allocations: 0 / 486.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.1602, allocations: 0 / 486.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.38e-05/0.1603, allocations: 7.938 kB / 486.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001874/0.1604, allocations: 149.7 kB / 486.5 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.676e-05/0.1605, allocations: 26.55 kB / 486.5 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.709e-05/0.1605, allocations: 4.859 kB / 486.6 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.574e-06/0.1605, allocations: 0 / 486.6 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.033e-05/0.1606, allocations: 60.2 kB / 486.6 MB, free: 14.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 7.71e-07/0.1606, allocations: 0 / 486.6 MB, free: 14.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002/0.1608, allocations: 71.39 kB / 486.7 MB, free: 14.42 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.86e-05/0.1609, allocations: 77.11 kB / 486.8 MB, free: 14.33 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.713e-05/0.161, allocations: 97.98 kB / 486.9 MB, free: 14.22 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.908e-05/0.161, allocations: 25.7 kB / 486.9 MB, free: 14.19 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.852e-05/0.1611, allocations: 80.14 kB / 487 MB, free: 14.11 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.288e-05/0.1611, allocations: 3.938 kB / 487 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.815e-05/0.1611, allocations: 9.719 kB / 487 MB, free: 14.09 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.1613, allocations: 318.8 kB / 487.3 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.006e-05/0.1613, allocations: 0 / 487.3 MB, free: 13.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.085e-06/0.1613, allocations: 3.984 kB / 487.3 MB, free: 13.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.357e-05/0.1614, allocations: 64.33 kB / 487.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1614, allocations: 0 / 487.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.629e-05/0.1615, allocations: 63.34 kB / 487.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.204e-05/0.1615, allocations: 33.64 kB / 487.4 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.1616, allocations: 3.984 kB / 487.4 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.1616, allocations: 0 / 487.4 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.546e-06/0.1616, allocations: 3.984 kB / 487.4 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.1616, allocations: 4 kB / 487.5 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.942e-05/0.1616, allocations: 4 kB / 487.5 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.706e-06/0.1617, allocations: 4.031 kB / 487.5 MB, free: 13.55 MB / 366.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 0.0001228/0.1618, allocations: 135.5 kB / 487.6 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.024e-05/0.1618, allocations: 3.938 kB / 487.6 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.103e-05/0.1618, allocations: 3.125 kB / 487.6 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.1618, allocations: 0 / 487.6 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.615e-06/0.1618, allocations: 4 kB / 487.6 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.1618, allocations: 0 / 487.6 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001509/0.162, allocations: 153.6 kB / 487.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.81e-07/0.162, allocations: 0 / 487.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.162, allocations: 4 kB / 487.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.162, allocations: 3.938 kB / 487.8 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.034e-05/0.162, allocations: 0 / 487.8 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.162, allocations: 3.938 kB / 487.8 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.1621, allocations: 3.984 kB / 487.8 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001404/0.1622, allocations: 94.77 kB / 487.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.714e-05/0.1623, allocations: 81.05 kB / 487.9 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.504e-05/0.1623, allocations: 0 / 487.9 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.597e-06/0.1623, allocations: 8.031 kB / 487.9 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.438e-05/0.1623, allocations: 0 / 487.9 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.725e-06/0.1623, allocations: 7.984 kB / 488 MB, free: 12.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.27e-05/0.1624, allocations: 75.28 kB / 488 MB, free: 12.88 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1624, allocations: 0 / 488 MB, free: 12.88 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000568/0.163, allocations: 148 kB / 488.2 MB, free: 12.73 MB / 366.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.001287/0.1643, allocations: 0.913 MB / 489.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001176/0.1644, allocations: 63.39 kB / 489.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1644, allocations: 0 / 489.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.889e-05/0.1645, allocations: 51.41 kB / 489.2 MB, free: 11.65 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001329/0.1646, allocations: 6.234 kB / 489.2 MB, free: 11.65 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004315/0.165, allocations: 186.4 kB / 489.4 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003226/0.1654, allocations: 0.6729 MB / 490.1 MB, free: 10.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.3e-06/0.1654, allocations: 0 / 490.1 MB, free: 10.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.218e-05/0.1654, allocations: 11.56 kB / 490.1 MB, free: 10.72 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1654, allocations: 0 / 490.1 MB, free: 10.72 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02979/0.1952, allocations: 5.631 MB / 495.7 MB, free: 5.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.333/8.529, allocations: 8.234 kB / 495.7 MB, free: 5.156 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0-beta_om_ModelicaTest_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1)