Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.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.TestComplexOperations,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001382/0.001382, allocations: 117.2 kB / 17.78 MB, free: 5.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001401/0.001401, allocations: 200.6 kB / 18.72 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.514/1.514, allocations: 227.4 MB / 247 MB, free: 10.46 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.2319/0.2319, allocations: 46.13 MB / 344.3 MB, free: 11.46 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.002434/0.002434, allocations: 75.88 kB / 480.8 MB, free: 4.562 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3154/0.3178, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001475/0.3193, allocations: 476.9 kB / 0.531 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003515/0.3229, allocations: 2.417 MB / 0.5334 GB, free: 11.13 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.431e-05/0.3229, allocations: 0 / 0.5334 GB, free: 11.13 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.402e-05/0.323, allocations: 0 / 0.5334 GB, free: 11.13 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.31e-06/0.323, allocations: 1.375 kB / 0.5334 GB, free: 11.13 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.002832/0.3258, allocations: 1.141 MB / 0.5345 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.533e-05/0.3259, allocations: 1.375 kB / 0.5345 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.91e-05/0.3259, allocations: 5.141 kB / 0.5345 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.435e-05/0.3259, allocations: 5.188 kB / 0.5345 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.871e-05/0.326, allocations: 0 / 0.5345 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.606e-06/0.326, allocations: 3.984 kB / 0.5345 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001676/0.3277, allocations: 1.04 MB / 0.5355 GB, free: 9.848 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.805e-06/0.3277, allocations: 0 / 0.5355 GB, free: 9.848 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.718e-05/0.3277, allocations: 1.219 kB / 0.5355 GB, free: 9.848 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006493/0.3284, allocations: 445.6 kB / 0.5359 GB, free: 9.59 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.227e-06/0.3284, allocations: 1.25 kB / 0.5359 GB, free: 9.59 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3284, allocations: 0 / 0.5359 GB, free: 9.59 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.3284, allocations: 0 / 0.5359 GB, free: 9.59 MB / 398.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.0004799/0.3289, allocations: 448 kB / 0.5364 GB, free: 9.137 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.3289, allocations: 9.281 kB / 0.5364 GB, free: 9.137 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.557e-05/0.329, allocations: 34.75 kB / 0.5364 GB, free: 9.094 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.243e-05/0.329, allocations: 2.125 kB / 0.5364 GB, free: 9.094 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000108/0.3291, allocations: 160.4 kB / 0.5366 GB, free: 8.898 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.006e-05/0.3291, allocations: 384 / 0.5366 GB, free: 8.898 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.033e-05/0.3291, allocations: 5.484 kB / 0.5366 GB, free: 8.895 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.972e-05/0.3292, allocations: 40.09 kB / 0.5366 GB, free: 8.852 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.032e-06/0.3292, allocations: 0 / 0.5366 GB, free: 8.852 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.613e-06/0.3292, allocations: 1.062 kB / 0.5366 GB, free: 8.852 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.3293, allocations: 0 / 0.5366 GB, free: 8.852 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.857e-05/0.3293, allocations: 9.156 kB / 0.5366 GB, free: 8.844 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001428/0.3294, allocations: 146.9 kB / 0.5368 GB, free: 8.652 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.921e-05/0.3295, allocations: 20.77 kB / 0.5368 GB, free: 8.625 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.388e-05/0.3295, allocations: 6.078 kB / 0.5368 GB, free: 8.617 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.606e-06/0.3295, allocations: 5.172 kB / 0.5368 GB, free: 8.613 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.089e-05/0.3296, allocations: 65.28 kB / 0.5369 GB, free: 8.535 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.51e-07/0.3296, allocations: 0 / 0.5369 GB, free: 8.535 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001656/0.3297, allocations: 71.38 kB / 0.5369 GB, free: 8.461 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.327e-05/0.3298, allocations: 77.11 kB / 0.537 GB, free: 8.367 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.633e-05/0.3299, allocations: 94.97 kB / 0.5371 GB, free: 8.266 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.056e-05/0.3299, allocations: 29.69 kB / 0.5371 GB, free: 8.23 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.157e-05/0.3299, allocations: 84.08 kB / 0.5372 GB, free: 8.145 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.705e-05/0.3299, allocations: 1.25 kB / 0.5372 GB, free: 8.145 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.89e-05/0.33, allocations: 12.41 kB / 0.5372 GB, free: 8.129 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.3301, allocations: 311 kB / 0.5375 GB, free: 7.816 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.848e-06/0.3301, allocations: 5.375 kB / 0.5375 GB, free: 7.812 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.211e-06/0.3301, allocations: 1.312 kB / 0.5375 GB, free: 7.812 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.983e-05/0.3302, allocations: 63.64 kB / 0.5376 GB, free: 7.738 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.3302, allocations: 0 / 0.5376 GB, free: 7.738 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.289e-05/0.3303, allocations: 65.98 kB / 0.5376 GB, free: 7.668 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.309e-05/0.3303, allocations: 34.64 kB / 0.5377 GB, free: 7.633 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.3303, allocations: 1.031 kB / 0.5377 GB, free: 7.633 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/0.3304, allocations: 0 / 0.5377 GB, free: 7.633 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.92e-07/0.3304, allocations: 5.219 kB / 0.5377 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.897e-06/0.3304, allocations: 0 / 0.5377 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.451e-05/0.3304, allocations: 0.8438 kB / 0.5377 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.726e-06/0.3304, allocations: 4.906 kB / 0.5377 GB, free: 7.625 MB / 398.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 9.525e-05/0.3305, allocations: 141.7 kB / 0.5378 GB, free: 7.473 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.027e-05/0.3305, allocations: 5 kB / 0.5378 GB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.683e-06/0.3305, allocations: 3.125 kB / 0.5378 GB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.3305, allocations: 1.094 kB / 0.5378 GB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.3306, allocations: 0 / 0.5378 GB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.3306, allocations: 7.938 kB / 0.5378 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001082/0.3307, allocations: 144.2 kB / 0.538 GB, free: 7.273 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.3307, allocations: 0 / 0.538 GB, free: 7.273 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.945e-06/0.3307, allocations: 3.984 kB / 0.538 GB, free: 7.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.3307, allocations: 5.062 kB / 0.538 GB, free: 7.266 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-06/0.3307, allocations: 0 / 0.538 GB, free: 7.266 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.3307, allocations: 1.188 kB / 0.538 GB, free: 7.266 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3307, allocations: 0 / 0.538 GB, free: 7.266 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001099/0.3308, allocations: 97.83 kB / 0.5381 GB, free: 7.156 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.239e-05/0.3309, allocations: 82.23 kB / 0.5382 GB, free: 7.059 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.125e-05/0.3309, allocations: 1.219 kB / 0.5382 GB, free: 7.059 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.656e-06/0.3309, allocations: 0 / 0.5382 GB, free: 7.059 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.869e-06/0.3309, allocations: 1.156 kB / 0.5382 GB, free: 7.059 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-06/0.331, allocations: 0 / 0.5382 GB, free: 7.059 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.595e-05/0.331, allocations: 76.25 kB / 0.5382 GB, free: 6.984 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.331, allocations: 0 / 0.5382 GB, free: 6.984 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004858/0.3315, allocations: 163 kB / 0.5384 GB, free: 6.926 MB / 398.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.001059/0.3326, allocations: 0.9171 MB / 0.5393 GB, free: 6.156 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001019/0.3327, allocations: 59.97 kB / 0.5393 GB, free: 6.09 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.3327, allocations: 0 / 0.5393 GB, free: 6.09 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.51e-05/0.3327, allocations: 54.62 kB / 0.5394 GB, free: 6.027 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001212/0.3328, allocations: 2 kB / 0.5394 GB, free: 6.027 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003857/0.3332, allocations: 188.4 kB / 0.5396 GB, free: 5.848 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002788/0.3335, allocations: 0.6698 MB / 0.5402 GB, free: 5.152 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.249e-06/0.3335, allocations: 0 / 0.5402 GB, free: 5.152 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.447e-05/0.3336, allocations: 9.656 kB / 0.5402 GB, free: 5.145 MB / 398.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3336, allocations: 0 / 0.5402 GB, free: 5.145 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02903/0.3626, allocations: 5.672 MB / 0.5458 GB, free: 1.766 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.364/8.726, allocations: 10.62 kB / 0.5458 GB, free: 1.762 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations_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_TestComplexOperations.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1)