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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001407/0.001407, allocations: 105 kB / 19.74 MB, free: 2.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001558/0.001558, allocations: 215.1 kB / 22.92 MB, free: 5.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 230.2 MB / 256.1 MB, free: 8.734 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2045/0.2045, allocations: 46.89 MB / 359.3 MB, free: 4.938 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "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.002151/0.002151, allocations: 79.88 kB / 0.4939 GB, free: 9.098 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.2598, allocations: 65.98 MB / 0.5584 GB, free: 5.324 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001407/0.2612, allocations: 473 kB / 0.5588 GB, free: 4.859 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003281/0.2645, allocations: 2.446 MB / 0.5612 GB, free: 2.395 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.914e-05/0.2645, allocations: 4 kB / 0.5612 GB, free: 2.391 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.089e-05/0.2645, allocations: 0 / 0.5612 GB, free: 2.391 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.658e-06/0.2645, allocations: 3.938 kB / 0.5612 GB, free: 2.387 MB / 398.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.002325/0.2668, allocations: 1.148 MB / 0.5623 GB, free: 1.238 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.182e-05/0.2669, allocations: 11.92 kB / 0.5624 GB, free: 1.227 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.86e-05/0.2669, allocations: 0 / 0.5624 GB, free: 1.227 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.462e-05/0.2669, allocations: 8 kB / 0.5624 GB, free: 1.219 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.611e-05/0.2669, allocations: 0 / 0.5624 GB, free: 1.219 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.628e-06/0.2669, allocations: 0 / 0.5624 GB, free: 1.219 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001394/0.2683, allocations: 1.026 MB / 0.5634 GB, free: 196 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.959e-06/0.2683, allocations: 3.984 kB / 0.5634 GB, free: 192 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.433e-05/0.2684, allocations: 0 / 0.5634 GB, free: 192 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005488/0.2689, allocations: 453.2 kB / 0.5638 GB, free: 15.75 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.2689, allocations: 0 / 0.5638 GB, free: 15.75 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2689, allocations: 0 / 0.5638 GB, free: 15.75 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.977e-06/0.2689, allocations: 4 kB / 0.5638 GB, free: 15.74 MB / 414.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.0004234/0.2693, allocations: 444.3 kB / 0.5642 GB, free: 15.25 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.2694, allocations: 12.03 kB / 0.5642 GB, free: 15.24 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.064e-05/0.2694, allocations: 34.75 kB / 0.5643 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.937e-05/0.2694, allocations: 0.9375 kB / 0.5643 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000103/0.2695, allocations: 160.4 kB / 0.5644 GB, free: 15 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.172e-06/0.2695, allocations: 8.25 kB / 0.5644 GB, free: 15 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.051e-05/0.2695, allocations: 4.359 kB / 0.5644 GB, free: 14.99 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.691e-05/0.2696, allocations: 45.75 kB / 0.5645 GB, free: 14.94 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.783e-06/0.2696, allocations: 4 kB / 0.5645 GB, free: 14.94 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.761e-06/0.2696, allocations: 0 / 0.5645 GB, free: 14.94 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.2696, allocations: 0 / 0.5645 GB, free: 14.94 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.615e-05/0.2696, allocations: 4 kB / 0.5645 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001348/0.2698, allocations: 141.7 kB / 0.5646 GB, free: 14.75 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.411e-05/0.2698, allocations: 14.58 kB / 0.5646 GB, free: 14.72 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.657e-05/0.2698, allocations: 12.94 kB / 0.5646 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.321e-06/0.2698, allocations: 4 kB / 0.5647 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.46e-05/0.2699, allocations: 68.14 kB / 0.5647 GB, free: 14.62 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.2699, allocations: 0 / 0.5647 GB, free: 14.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001483/0.27, allocations: 59.41 kB / 0.5648 GB, free: 14.55 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.897e-05/0.2701, allocations: 81.09 kB / 0.5649 GB, free: 14.45 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.258e-05/0.2701, allocations: 93.81 kB / 0.5649 GB, free: 14.35 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.2701, allocations: 25.7 kB / 0.565 GB, free: 14.32 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.353e-05/0.2702, allocations: 84.14 kB / 0.565 GB, free: 14.23 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.397e-05/0.2702, allocations: 4.125 kB / 0.5651 GB, free: 14.23 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.528e-05/0.2702, allocations: 13.72 kB / 0.5651 GB, free: 14.21 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.2703, allocations: 310.8 kB / 0.5654 GB, free: 13.9 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.889e-06/0.2703, allocations: 4 kB / 0.5654 GB, free: 13.89 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.472e-06/0.2704, allocations: 3.938 kB / 0.5654 GB, free: 13.89 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.252e-05/0.2704, allocations: 60.27 kB / 0.5654 GB, free: 13.82 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.2704, allocations: 0 / 0.5654 GB, free: 13.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.009e-05/0.2705, allocations: 71.45 kB / 0.5655 GB, free: 13.73 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.978e-05/0.2705, allocations: 33.64 kB / 0.5655 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.956e-06/0.2705, allocations: 0 / 0.5655 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.438e-06/0.2705, allocations: 0 / 0.5655 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.31e-07/0.2705, allocations: 0 / 0.5655 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.547e-06/0.2705, allocations: 0 / 0.5655 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.462e-05/0.2705, allocations: 4 kB / 0.5655 GB, free: 13.69 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.568e-06/0.2705, allocations: 0 / 0.5655 GB, free: 13.69 MB / 414.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 8.577e-05/0.2706, allocations: 135.5 kB / 0.5657 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.084e-05/0.2706, allocations: 7.969 kB / 0.5657 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.901e-06/0.2706, allocations: 7.125 kB / 0.5657 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.12e-07/0.2706, allocations: 3.938 kB / 0.5657 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.2706, allocations: 3.938 kB / 0.5657 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-06/0.2706, allocations: 0 / 0.5657 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001004/0.2707, allocations: 153.7 kB / 0.5658 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.2707, allocations: 0 / 0.5658 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.2707, allocations: 4 kB / 0.5658 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.2708, allocations: 7.875 kB / 0.5658 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.1e-06/0.2708, allocations: 0 / 0.5658 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.2708, allocations: 4 kB / 0.5658 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.2708, allocations: 4 kB / 0.5658 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.277e-05/0.2709, allocations: 90.83 kB / 0.5659 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.38e-05/0.2709, allocations: 81.05 kB / 0.566 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.428e-06/0.2709, allocations: 0 / 0.566 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.745e-06/0.2709, allocations: 0 / 0.566 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.65e-05/0.2709, allocations: 4 kB / 0.566 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.185e-06/0.2709, allocations: 0 / 0.566 GB, free: 13.09 MB / 414.1 MB Notification: Performance of sorting global known variables: time 2.921e-05/0.271, allocations: 79.31 kB / 0.5661 GB, free: 13.01 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.271, allocations: 0 / 0.5661 GB, free: 13.01 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003992/0.2714, allocations: 159.5 kB / 0.5662 GB, free: 12.86 MB / 414.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.0009223/0.2723, allocations: 0.9127 MB / 0.5671 GB, free: 11.91 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 8.336e-05/0.2724, allocations: 55.41 kB / 0.5672 GB, free: 11.84 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.2724, allocations: 0 / 0.5672 GB, free: 11.84 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.581e-05/0.2724, allocations: 59.47 kB / 0.5672 GB, free: 11.77 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001119/0.2725, allocations: 14.27 kB / 0.5673 GB, free: 11.76 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003294/0.2728, allocations: 182.2 kB / 0.5674 GB, free: 11.54 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002752/0.2731, allocations: 0.6729 MB / 0.5681 GB, free: 10.84 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.981e-06/0.2731, allocations: 4 kB / 0.5681 GB, free: 10.84 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.247e-05/0.2731, allocations: 7.438 kB / 0.5681 GB, free: 10.83 MB / 414.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2731, allocations: 0 / 0.5681 GB, free: 10.83 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02534/0.2985, allocations: 5.653 MB / 0.5736 GB, free: 5.246 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.307/7.606, allocations: 5.484 kB / 0.5736 GB, free: 5.242 MB / 414.1 MB " [Timeout remaining time 652] (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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.167771899010404]