Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001475/0.001475, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.609/1.609, allocations: 205.3 MB / 214.1 MB, free: 14.12 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009344/0.0009342, allocations: 92.17 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4248/0.4248, allocations: 48.78 MB / 358.8 MB, free: 53.19 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.115e-05/2.124e-05, allocations: 3.938 kB / 425.4 MB, free: 8.121 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.13, allocations: 60.25 MB / 485.6 MB, free: 11.72 MB / 379.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.341/0.4711, allocations: 85.95 MB / 0.5582 GB, free: 14.98 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002842/0.4714, allocations: 71.97 kB / 0.5583 GB, free: 14.91 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01109/0.4825, allocations: 3.934 MB / 0.5621 GB, free: 11.03 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4826, allocations: 4 kB / 0.5621 GB, free: 11.02 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.666e-05/0.4826, allocations: 8 kB / 0.5621 GB, free: 11.02 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0006289/0.4832, allocations: 489.4 kB / 0.5626 GB, free: 10.5 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.4833, allocations: 8.031 kB / 0.5626 GB, free: 10.49 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.357e-05/0.4834, allocations: 38.58 kB / 0.5626 GB, free: 10.45 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003972/0.4838, allocations: 266.4 kB / 0.5629 GB, free: 10.16 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.791e-05/0.4838, allocations: 7.984 kB / 0.5629 GB, free: 10.15 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.078e-05/0.4838, allocations: 15.94 kB / 0.5629 GB, free: 10.13 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000191/0.484, allocations: 85.36 kB / 0.563 GB, free: 10.05 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002417/0.4843, allocations: 139.3 kB / 0.5631 GB, free: 9.906 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.4843, allocations: 0 / 0.5631 GB, free: 9.906 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.778e-05/0.4843, allocations: 4 kB / 0.5631 GB, free: 9.902 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.4843, allocations: 7.953 kB / 0.5631 GB, free: 9.895 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009103/0.4853, allocations: 0.6141 MB / 0.5637 GB, free: 9.234 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002024/0.4855, allocations: 119.1 kB / 0.5638 GB, free: 9.109 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001394/0.4856, allocations: 60.86 kB / 0.5639 GB, free: 9.047 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.575e-05/0.4857, allocations: 0 / 0.5639 GB, free: 9.047 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.735e-05/0.4857, allocations: 38.56 kB / 0.5639 GB, free: 9 MB / 395.1 MB Notification: Performance of pre-optimization done (n=18): time 2.585e-06/0.4857, allocations: 4 kB / 0.5639 GB, free: 8.996 MB / 395.1 MB Notification: Performance of matching and sorting (n=19): time 0.0008697/0.4866, allocations: 454 kB / 0.5644 GB, free: 8.496 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.157e-05/0.4866, allocations: 55.41 kB / 0.5644 GB, free: 8.43 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001901/0.4868, allocations: 200.4 kB / 0.5646 GB, free: 8.23 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.733e-05/0.4868, allocations: 25.7 kB / 0.5646 GB, free: 8.199 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.634e-05/0.4869, allocations: 140.4 kB / 0.5648 GB, free: 8.059 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.165e-05/0.487, allocations: 69.95 kB / 0.5648 GB, free: 7.992 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.316e-06/0.487, allocations: 7.938 kB / 0.5649 GB, free: 7.984 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.4872, allocations: 330.8 kB / 0.5652 GB, free: 7.652 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.189e-05/0.4872, allocations: 36 kB / 0.5652 GB, free: 7.617 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.742e-05/0.4873, allocations: 61.7 kB / 0.5653 GB, free: 7.551 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.89e-05/0.4874, allocations: 43.98 kB / 0.5653 GB, free: 7.508 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.4874, allocations: 3.953 kB / 0.5653 GB, free: 7.504 MB / 395.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002695/0.4877, allocations: 164.2 kB / 0.5655 GB, free: 7.34 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.4878, allocations: 8.031 kB / 0.5655 GB, free: 7.332 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.587e-06/0.4878, allocations: 5.875 kB / 0.5655 GB, free: 7.328 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.4878, allocations: 0 / 0.5655 GB, free: 7.328 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004193/0.4882, allocations: 75.89 kB / 0.5656 GB, free: 7.254 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001066/0.4893, allocations: 1.289 MB / 0.5668 GB, free: 5.848 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00015/0.4895, allocations: 8.016 kB / 0.5668 GB, free: 5.84 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.792e-05/0.4895, allocations: 8 kB / 0.5668 GB, free: 5.832 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001197/0.4896, allocations: 109 kB / 0.5669 GB, free: 5.719 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00025/0.4899, allocations: 144.9 kB / 0.5671 GB, free: 5.574 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.26e-05/0.4899, allocations: 23.67 kB / 0.5671 GB, free: 5.551 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002884/0.4902, allocations: 163.1 kB / 0.5672 GB, free: 5.391 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.4902, allocations: 0 / 0.5672 GB, free: 5.391 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.452e-06/0.4902, allocations: 0 / 0.5672 GB, free: 5.391 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.4902, allocations: 3.984 kB / 0.5672 GB, free: 5.387 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005951/0.4908, allocations: 490.8 kB / 0.5677 GB, free: 4.863 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.4909, allocations: 0 / 0.5677 GB, free: 4.863 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002457/0.4911, allocations: 53.28 kB / 0.5678 GB, free: 4.812 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.4911, allocations: 4 kB / 0.5678 GB, free: 4.809 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.4911, allocations: 3.828 kB / 0.5678 GB, free: 4.809 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.4912, allocations: 0 / 0.5678 GB, free: 4.809 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.4912, allocations: 0 / 0.5678 GB, free: 4.809 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000358/0.4915, allocations: 317.4 kB / 0.5681 GB, free: 4.484 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.225e-05/0.4916, allocations: 112.8 kB / 0.5682 GB, free: 4.355 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.852e-05/0.4917, allocations: 4 kB / 0.5682 GB, free: 4.352 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000152/0.4918, allocations: 8 kB / 0.5682 GB, free: 4.344 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.167e-05/0.4919, allocations: 15.91 kB / 0.5682 GB, free: 4.328 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.163e-05/0.4919, allocations: 8 kB / 0.5682 GB, free: 4.32 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0001497/0.4921, allocations: 156.5 kB / 0.5684 GB, free: 4.168 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4921, allocations: 0 / 0.5684 GB, free: 4.168 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0003037/0.4924, allocations: 47.94 kB / 0.5684 GB, free: 4.121 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (generator.phi,generator.omega_m,generator.omega_e_filt,grid.port.theta) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * 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.0007386/0.4931, allocations: 0.8496 MB / 0.5692 GB, free: 3.25 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0003708/0.4935, allocations: 141.5 kB / 0.5694 GB, free: 3.113 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.4935, allocations: 0 / 0.5694 GB, free: 3.113 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001069/0.4936, allocations: 63.94 kB / 0.5694 GB, free: 3.051 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003419/0.494, allocations: 35.47 kB / 0.5695 GB, free: 3.02 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001201/0.4952, allocations: 0.5721 MB / 0.57 GB, free: 2.426 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003418/0.4955, allocations: 0.7594 MB / 0.5708 GB, free: 1.641 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.00011/0.4957, allocations: 32.17 kB / 0.5708 GB, free: 1.609 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001313/0.4958, allocations: 83.41 kB / 0.5709 GB, free: 1.527 MB / 395.1 MB Notification: Performance of SimCode: time 2.6e-07/0.4958, allocations: 0 / 0.5709 GB, free: 1.527 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02448/0.5203, allocations: 4.025 MB / 0.5748 GB, free: 13.54 MB / 411.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001894/0.5206, allocations: 145.2 kB / 0.575 GB, free: 13.35 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.83/2.351, allocations: 2.844 kB / 0.575 GB, free: 13.35 MB / 411.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1)