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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009195/0.0009195, allocations: 98.03 kB / 16.5 MB, free: 6.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008861/0.0008861, allocations: 194 kB / 17.42 MB, free: 6.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.13/1.13, allocations: 205.1 MB / 223.3 MB, free: 12.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2324/0.2324, allocations: 48.84 MB / 319.5 MB, free: 11.34 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 61.86 kB / 389.5 MB, free: 49.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07509/0.07643, allocations: 59.15 MB / 448.6 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.003312/0.07978, allocations: 2.457 MB / 451.1 MB, free: 7.703 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001142/0.08094, allocations: 0.6631 MB / 451.7 MB, free: 7.031 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000183/0.08115, allocations: 7.938 kB / 451.7 MB, free: 7.023 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001328/0.08131, allocations: 23.78 kB / 451.8 MB, free: 7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002326/0.08155, allocations: 67.53 kB / 451.8 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001466/0.0817, allocations: 59.88 kB / 451.9 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002759/0.08199, allocations: 266.8 kB / 452.2 MB, free: 6.613 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001457/0.08214, allocations: 65.16 kB / 452.2 MB, free: 6.551 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001598/0.08231, allocations: 107.5 kB / 452.3 MB, free: 6.445 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001521/0.08247, allocations: 111.4 kB / 452.4 MB, free: 6.336 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.181e-05/0.0825, allocations: 15.98 kB / 452.4 MB, free: 6.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.467e-05/0.08257, allocations: 16 kB / 452.5 MB, free: 6.305 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.078e-05/0.08262, allocations: 43.77 kB / 452.5 MB, free: 6.262 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001093/0.08274, allocations: 119.3 kB / 452.6 MB, free: 6.145 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002135/0.08296, allocations: 223.1 kB / 452.8 MB, free: 5.926 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.08297, allocations: 4 kB / 452.8 MB, free: 5.922 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.08297, allocations: 3.984 kB / 452.8 MB, free: 5.918 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.76e-06/0.08298, allocations: 0 / 452.8 MB, free: 5.918 MB / 334.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.0008139/0.0838, allocations: 0.5529 MB / 453.4 MB, free: 5.316 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.08385, allocations: 12.03 kB / 453.4 MB, free: 5.305 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.742e-05/0.0839, allocations: 50.73 kB / 453.5 MB, free: 5.246 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.903e-05/0.084, allocations: 32.56 kB / 453.5 MB, free: 5.215 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002658/0.08428, allocations: 266.7 kB / 453.8 MB, free: 4.918 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.561e-05/0.08433, allocations: 38.27 kB / 453.8 MB, free: 4.875 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.53e-05/0.08437, allocations: 28.03 kB / 453.8 MB, free: 4.848 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003072/0.08468, allocations: 175.1 kB / 454 MB, free: 4.664 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.08471, allocations: 4 kB / 454 MB, free: 4.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.629e-05/0.08473, allocations: 7.938 kB / 454 MB, free: 4.652 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.08474, allocations: 4 kB / 454 MB, free: 4.648 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002758/0.08502, allocations: 123.9 kB / 454.1 MB, free: 4.527 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008763/0.0859, allocations: 0.6656 MB / 454.8 MB, free: 3.801 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003294/0.08624, allocations: 162.5 kB / 454.9 MB, free: 3.633 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000153/0.08641, allocations: 80.83 kB / 455 MB, free: 3.551 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.516e-05/0.08643, allocations: 0 / 455 MB, free: 3.551 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.053e-05/0.08646, allocations: 30.56 kB / 455.1 MB, free: 3.512 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 9.42e-07/0.08646, allocations: 3.938 kB / 455.1 MB, free: 3.508 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.001004/0.08747, allocations: 0.5808 MB / 455.6 MB, free: 2.879 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.852e-05/0.08751, allocations: 59.39 kB / 455.7 MB, free: 2.809 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002143/0.08773, allocations: 237 kB / 455.9 MB, free: 2.57 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.786e-05/0.08775, allocations: 29.7 kB / 456 MB, free: 2.535 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.925e-05/0.08785, allocations: 148.3 kB / 456.1 MB, free: 2.387 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.542e-05/0.0879, allocations: 67 kB / 456.2 MB, free: 2.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.99e-05/0.08797, allocations: 45.7 kB / 456.2 MB, free: 2.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.08809, allocations: 338.8 kB / 456.5 MB, free: 1.93 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001306/0.08822, allocations: 55.97 kB / 456.6 MB, free: 1.875 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001322/0.08836, allocations: 81.61 kB / 456.7 MB, free: 1.789 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002617/0.08863, allocations: 154.2 kB / 456.8 MB, free: 1.633 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.08864, allocations: 0 / 456.8 MB, free: 1.633 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003436/0.08899, allocations: 201.2 kB / 457 MB, free: 1.43 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.08901, allocations: 8 kB / 457 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.08902, allocations: 0 / 457 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.277e-06/0.08903, allocations: 0 / 457 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003741/0.08941, allocations: 79.92 kB / 457.1 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.08943, allocations: 4 kB / 457.1 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000123/0.08956, allocations: 12 kB / 457.1 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.266e-05/0.08958, allocations: 7.984 kB / 457.1 MB, free: 1.32 MB / 334.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 (BreakerCommand.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * 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.0001085/0.08969, allocations: 142.4 kB / 457.3 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.341e-05/0.08974, allocations: 19.72 kB / 457.3 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.587e-05/0.08979, allocations: 26.17 kB / 457.3 MB, free: 1.133 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.0898, allocations: 8 kB / 457.3 MB, free: 1.125 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.08981, allocations: 0 / 457.3 MB, free: 1.125 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.08981, allocations: 0 / 457.3 MB, free: 1.125 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006743/0.09049, allocations: 0.5335 MB / 457.9 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.09051, allocations: 3.938 kB / 457.9 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003396/0.09085, allocations: 63.97 kB / 457.9 MB, free: 480 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.94e-06/0.09087, allocations: 3.984 kB / 457.9 MB, free: 476 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.09088, allocations: 7.938 kB / 457.9 MB, free: 468 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.09089, allocations: 7.875 kB / 457.9 MB, free: 460 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.0909, allocations: 4 kB / 457.9 MB, free: 456 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004901/0.0914, allocations: 351.4 kB / 458.3 MB, free: 88 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.418e-05/0.0915, allocations: 112.8 kB / 458.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.106e-05/0.09154, allocations: 4 kB / 458.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001451/0.09169, allocations: 11.94 kB / 458.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.768e-05/0.09174, allocations: 15.97 kB / 458.4 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.042e-05/0.09176, allocations: 8 kB / 458.4 MB, free: 15.92 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001509/0.09192, allocations: 168.5 kB / 458.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09192, allocations: 0 / 458.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002534/0.09218, allocations: 44 kB / 458.6 MB, free: 15.71 MB / 350.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 (BreakerCommand.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * 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.0007136/0.0929, allocations: 0.8915 MB / 459.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000301/0.09321, allocations: 147.8 kB / 459.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.09322, allocations: 0 / 459.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001325/0.09336, allocations: 75.97 kB / 459.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000379/0.09375, allocations: 40.34 kB / 459.8 MB, free: 14.53 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002957/0.09672, allocations: 2.685 MB / 462.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000261/0.09699, allocations: 0.7556 MB / 463.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.781e-05/0.09709, allocations: 21.95 kB / 463.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000104/0.0972, allocations: 75.41 kB / 463.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.09721, allocations: 0 / 463.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01314/0.1104, allocations: 4.165 MB / 467.5 MB, free: 6.676 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001957/0.1106, allocations: 206.8 kB / 467.7 MB, free: 6.414 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.56/1.671, allocations: 0 / 467.7 MB, free: 6.414 MB / 350.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/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)