Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.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.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",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.00129/0.00129, allocations: 177.1 kB / 8.35 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.424/1.424, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.000816/0.000816, allocations: 92.72 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4389/0.4389, allocations: 48.78 MB / 358.8 MB, free: 53.11 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.731e-05/1.749e-05, allocations: 0 / 425.4 MB, free: 8.141 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1171, allocations: 60.25 MB / 485.6 MB, free: 11.75 MB / 379.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3563/0.4735, allocations: 86.22 MB / 0.5585 GB, free: 14.85 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002883/0.4738, allocations: 71.97 kB / 0.5585 GB, free: 14.78 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01141/0.4852, allocations: 3.917 MB / 0.5623 GB, free: 10.91 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.4853, allocations: 0 / 0.5623 GB, free: 10.91 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.551e-05/0.4854, allocations: 7.938 kB / 0.5624 GB, free: 10.9 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0007842/0.4861, allocations: 0.4954 MB / 0.5628 GB, free: 10.37 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.4862, allocations: 10.98 kB / 0.5628 GB, free: 10.36 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.347e-05/0.4863, allocations: 31.62 kB / 0.5629 GB, free: 10.33 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003995/0.4867, allocations: 265.6 kB / 0.5631 GB, free: 10.03 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.5e-05/0.4868, allocations: 37.7 kB / 0.5632 GB, free: 9.988 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.35e-05/0.4868, allocations: 12.47 kB / 0.5632 GB, free: 9.977 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001896/0.487, allocations: 93.34 kB / 0.5633 GB, free: 9.887 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002503/0.4872, allocations: 141.5 kB / 0.5634 GB, free: 9.738 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.4873, allocations: 0 / 0.5634 GB, free: 9.738 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.66e-05/0.4873, allocations: 0 / 0.5634 GB, free: 9.738 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.173e-05/0.4873, allocations: 8.469 kB / 0.5634 GB, free: 9.73 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009158/0.4882, allocations: 0.627 MB / 0.564 GB, free: 9.059 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002968/0.4885, allocations: 136.4 kB / 0.5642 GB, free: 8.918 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001174/0.4887, allocations: 64.86 kB / 0.5642 GB, free: 8.852 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.4887, allocations: 6.719 kB / 0.5642 GB, free: 8.848 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.595e-05/0.4887, allocations: 34.56 kB / 0.5643 GB, free: 8.805 MB / 395.1 MB Notification: Performance of pre-optimization done (n=19): time 1.273e-06/0.4887, allocations: 0 / 0.5643 GB, free: 8.805 MB / 395.1 MB Notification: Performance of matching and sorting (n=20): time 0.0008392/0.4896, allocations: 474.3 kB / 0.5647 GB, free: 8.289 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.077e-05/0.4896, allocations: 55.41 kB / 0.5648 GB, free: 8.223 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001939/0.4898, allocations: 196.5 kB / 0.5649 GB, free: 8.027 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/0.4899, allocations: 28.66 kB / 0.565 GB, free: 7.996 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.867e-05/0.49, allocations: 148.3 kB / 0.5651 GB, free: 7.848 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.561e-05/0.49, allocations: 71 kB / 0.5652 GB, free: 7.777 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.706e-06/0.49, allocations: 0 / 0.5652 GB, free: 7.777 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.4902, allocations: 330.8 kB / 0.5655 GB, free: 7.445 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.566e-05/0.4903, allocations: 44 kB / 0.5655 GB, free: 7.402 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.304e-05/0.4904, allocations: 65.72 kB / 0.5656 GB, free: 7.332 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000123/0.4905, allocations: 51.92 kB / 0.5657 GB, free: 7.281 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.4905, allocations: 0 / 0.5657 GB, free: 7.281 MB / 395.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002664/0.4908, allocations: 172.3 kB / 0.5658 GB, free: 7.109 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/0.4908, allocations: 4 kB / 0.5658 GB, free: 7.105 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.4908, allocations: 0 / 0.5658 GB, free: 7.105 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.4908, allocations: 0 / 0.5658 GB, free: 7.105 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004225/0.4912, allocations: 89.73 kB / 0.5659 GB, free: 7.02 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.4913, allocations: 4 kB / 0.5659 GB, free: 7.016 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001272/0.4914, allocations: 7.984 kB / 0.5659 GB, free: 7.008 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.306e-05/0.4914, allocations: 8 kB / 0.5659 GB, free: 7 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: 1 (Breaker1.closed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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 prepare postOptimizeDAE: time 8.16e-05/0.4915, allocations: 110.2 kB / 0.566 GB, free: 6.887 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002411/0.4918, allocations: 149.3 kB / 0.5662 GB, free: 6.734 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.091e-05/0.4918, allocations: 23.72 kB / 0.5662 GB, free: 6.711 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002901/0.4921, allocations: 167.2 kB / 0.5664 GB, free: 6.543 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.4921, allocations: 3.938 kB / 0.5664 GB, free: 6.539 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.551e-05/0.4921, allocations: 4 kB / 0.5664 GB, free: 6.535 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.4922, allocations: 5.391 kB / 0.5664 GB, free: 6.531 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005945/0.4928, allocations: 491.2 kB / 0.5668 GB, free: 6.008 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.4928, allocations: 0 / 0.5668 GB, free: 6.008 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003898/0.4932, allocations: 78.11 kB / 0.5669 GB, free: 5.938 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.4932, allocations: 0 / 0.5669 GB, free: 5.938 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.312e-05/0.4932, allocations: 0 / 0.5669 GB, free: 5.938 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-06/0.4932, allocations: 4 kB / 0.5669 GB, free: 5.934 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.4932, allocations: 1.875 kB / 0.5669 GB, free: 5.934 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003859/0.4936, allocations: 316.4 kB / 0.5672 GB, free: 5.609 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.298e-05/0.4937, allocations: 112.8 kB / 0.5673 GB, free: 5.48 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.238e-05/0.4938, allocations: 0 / 0.5673 GB, free: 5.48 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000158/0.4939, allocations: 15.98 kB / 0.5673 GB, free: 5.465 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.43e-05/0.494, allocations: 16.06 kB / 0.5674 GB, free: 5.449 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.047e-05/0.494, allocations: 4 kB / 0.5674 GB, free: 5.445 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0001394/0.4941, allocations: 160.5 kB / 0.5675 GB, free: 5.289 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.583e-06/0.4942, allocations: 3.188 kB / 0.5675 GB, free: 5.289 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0002975/0.4945, allocations: 43.94 kB / 0.5676 GB, free: 5.246 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: 1 (Breaker1.closed) * 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.0006885/0.4952, allocations: 0.8716 MB / 0.5684 GB, free: 4.352 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0002216/0.4954, allocations: 112.7 kB / 0.5685 GB, free: 4.242 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.4954, allocations: 3.938 kB / 0.5685 GB, free: 4.238 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001013/0.4955, allocations: 67.92 kB / 0.5686 GB, free: 4.172 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003159/0.4958, allocations: 36.19 kB / 0.5686 GB, free: 4.141 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001123/0.497, allocations: 0.5612 MB / 0.5692 GB, free: 3.559 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003193/0.4973, allocations: 0.7579 MB / 0.5699 GB, free: 2.777 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 9.687e-05/0.4974, allocations: 18.06 kB / 0.5699 GB, free: 2.758 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001148/0.4975, allocations: 79.41 kB / 0.57 GB, free: 2.68 MB / 395.1 MB Notification: Performance of SimCode: time 3.3e-07/0.4975, allocations: 224 / 0.57 GB, free: 2.68 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02433/0.5219, allocations: 3.709 MB / 0.5736 GB, free: 15 MB / 411.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002002/0.5221, allocations: 141.3 kB / 0.5738 GB, free: 14.81 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.765/2.287, allocations: 0 / 0.5738 GB, free: 14.81 MB / 411.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe 2>&1)