Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.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.TestElectrical2,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical2,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2",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.0009778/0.0009779, allocations: 88.53 kB / 16.31 MB, free: 6.449 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.001056/0.001057, allocations: 183 kB / 17.21 MB, free: 6.316 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.572/1.572, allocations: 205.4 MB / 223.4 MB, free: 5.293 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4675/0.4675, allocations: 48.77 MB / 320.4 MB, free: 3.867 MB / 254.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.0005201/0.0005203, allocations: 18.66 kB / 391.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.134, allocations: 60.25 MB / 451.5 MB, free: 1.805 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical2): time 0.2479/0.382, allocations: 1.913 MB / 453.4 MB, free: 47.3 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00136/0.3835, allocations: 0.6148 MB / 454.1 MB, free: 47.28 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001624/0.3836, allocations: 9.656 kB / 454.1 MB, free: 47.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001224/0.3838, allocations: 17.69 kB / 454.1 MB, free: 47.27 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002405/0.384, allocations: 75.12 kB / 454.2 MB, free: 47.23 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001424/0.3842, allocations: 33.98 kB / 454.2 MB, free: 47.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000263/0.3844, allocations: 228.8 kB / 454.4 MB, free: 47.17 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001656/0.3846, allocations: 48.3 kB / 454.5 MB, free: 47.17 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001341/0.3848, allocations: 88.06 kB / 454.5 MB, free: 47.15 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001383/0.3849, allocations: 86.38 kB / 454.6 MB, free: 47.12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.683e-05/0.3849, allocations: 9.438 kB / 454.6 MB, free: 47.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.808e-05/0.385, allocations: 12.22 kB / 454.7 MB, free: 47.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.249e-05/0.385, allocations: 34.81 kB / 454.7 MB, free: 47.12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.965e-05/0.3851, allocations: 62.77 kB / 454.7 MB, free: 47.08 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001616/0.3853, allocations: 136.8 kB / 454.9 MB, free: 47.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.3853, allocations: 3.875 kB / 454.9 MB, free: 47.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.3853, allocations: 0 / 454.9 MB, free: 47.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.3853, allocations: 0 / 454.9 MB, free: 47.07 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007074/0.386, allocations: 0.4982 MB / 455.4 MB, free: 46.64 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.3861, allocations: 10.59 kB / 455.4 MB, free: 46.64 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.618e-05/0.3861, allocations: 52.05 kB / 455.4 MB, free: 46.6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001049/0.3862, allocations: 30.47 kB / 455.5 MB, free: 46.58 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002571/0.3865, allocations: 245.5 kB / 455.7 MB, free: 46.37 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.657e-05/0.3865, allocations: 8.812 kB / 455.7 MB, free: 46.37 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.271e-05/0.3866, allocations: 15.31 kB / 455.7 MB, free: 46.37 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002947/0.3869, allocations: 169.3 kB / 455.9 MB, free: 46.31 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.3869, allocations: 0 / 455.9 MB, free: 46.31 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.741e-05/0.3869, allocations: 6.562 kB / 455.9 MB, free: 46.31 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.3869, allocations: 2.719 kB / 455.9 MB, free: 46.31 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000238/0.3872, allocations: 103.2 kB / 456 MB, free: 46.31 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008416/0.388, allocations: 0.6198 MB / 456.6 MB, free: 45.9 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002418/0.3883, allocations: 127.3 kB / 456.8 MB, free: 45.88 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001532/0.3884, allocations: 82.05 kB / 456.8 MB, free: 45.86 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.189e-05/0.3885, allocations: 1.547 kB / 456.8 MB, free: 45.86 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.109e-05/0.3885, allocations: 37.53 kB / 456.9 MB, free: 45.82 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 1.142e-06/0.3885, allocations: 0 / 456.9 MB, free: 45.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.001099/0.3896, allocations: 0.5673 MB / 457.4 MB, free: 45.52 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.621e-05/0.3897, allocations: 54.31 kB / 457.5 MB, free: 45.46 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002273/0.3899, allocations: 229.8 kB / 457.7 MB, free: 45.36 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.723e-05/0.3899, allocations: 29.64 kB / 457.7 MB, free: 45.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.39, allocations: 138.9 kB / 457.9 MB, free: 45.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.41e-05/0.3901, allocations: 60 kB / 457.9 MB, free: 45.19 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.065e-05/0.3901, allocations: 10.34 kB / 458 MB, free: 45.19 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.164e-05/0.3902, allocations: 328.7 kB / 458.3 MB, free: 44.88 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.3903, allocations: 53.27 kB / 458.3 MB, free: 44.88 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001492/0.3905, allocations: 82.22 kB / 458.4 MB, free: 44.85 MB / 382.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: $DER.generator.theta = generator.omega_e_nom (6.283185307179586 * grid.fnom = generator.omega_e_nom) Notification: Performance of analyzeInitialSystem (initialization): time 0.0008644/0.3914, allocations: 310.7 kB / 458.7 MB, free: 44.74 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.3914, allocations: 0 / 458.7 MB, free: 44.74 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003667/0.3918, allocations: 202.9 kB / 458.9 MB, free: 44.69 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.3918, allocations: 9.297 kB / 458.9 MB, free: 44.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.3918, allocations: 2.938 kB / 458.9 MB, free: 44.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.3918, allocations: 0 / 458.9 MB, free: 44.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002506/0.3921, allocations: 60.67 kB / 459 MB, free: 44.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.3921, allocations: 0 / 459 MB, free: 44.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001111/0.3922, allocations: 19 kB / 459 MB, free: 44.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.228e-05/0.3922, allocations: 8.969 kB / 459 MB, free: 44.68 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.generator.theta = generator.omega_e_nom. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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 0.000103/0.3923, allocations: 124 kB / 459.1 MB, free: 44.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.163e-05/0.3924, allocations: 23.31 kB / 459.1 MB, free: 44.55 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.665e-05/0.3924, allocations: 25.09 kB / 459.2 MB, free: 44.55 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.3925, allocations: 2.781 kB / 459.2 MB, free: 44.55 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/0.3925, allocations: 4.422 kB / 459.2 MB, free: 44.55 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.3925, allocations: 0 / 459.2 MB, free: 44.55 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005709/0.3931, allocations: 0.5374 MB / 459.7 MB, free: 44.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3931, allocations: 0 / 459.7 MB, free: 44.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002309/0.3933, allocations: 55.23 kB / 459.8 MB, free: 44.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.3933, allocations: 4 kB / 459.8 MB, free: 44.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.311e-05/0.3933, allocations: 3.375 kB / 459.8 MB, free: 44.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.3933, allocations: 6.844 kB / 459.8 MB, free: 44.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.3934, allocations: 0 / 459.8 MB, free: 44.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004447/0.3938, allocations: 349.4 kB / 460.1 MB, free: 44.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.086e-05/0.3939, allocations: 106.6 kB / 460.2 MB, free: 43.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.031e-05/0.3939, allocations: 3 kB / 460.2 MB, free: 43.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001283/0.3941, allocations: 12.41 kB / 460.2 MB, free: 43.97 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.062e-05/0.3941, allocations: 14.8 kB / 460.3 MB, free: 43.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.036e-05/0.3941, allocations: 5.938 kB / 460.3 MB, free: 43.97 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001288/0.3943, allocations: 167.5 kB / 460.4 MB, free: 43.88 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3943, allocations: 4 kB / 460.4 MB, free: 43.88 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002665/0.3946, allocations: 41.12 kB / 460.5 MB, free: 43.88 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (generator.phi,generator.omega_m,generator.omega_e_filt) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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.0006251/0.3952, allocations: 0.8681 MB / 461.3 MB, free: 43.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003844/0.3956, allocations: 144.5 kB / 461.5 MB, free: 43.19 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3956, allocations: 0 / 461.5 MB, free: 43.19 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001912/0.3958, allocations: 79.23 kB / 461.6 MB, free: 43.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000464/0.3963, allocations: 35.22 kB / 461.6 MB, free: 43.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002284/0.3986, allocations: 1.439 MB / 463 MB, free: 42.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002102/0.3988, allocations: 0.7366 MB / 463.8 MB, free: 41.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.739e-05/0.3989, allocations: 22.08 kB / 463.8 MB, free: 41.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001045/0.399, allocations: 62.42 kB / 463.9 MB, free: 41.79 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.399, allocations: 0 / 463.9 MB, free: 41.79 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01581/0.4148, allocations: 3.829 MB / 467.7 MB, free: 41.43 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001644/0.4151, allocations: 192 kB / 467.9 MB, free: 41.19 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.823/2.239, allocations: 2.062 kB / 467.9 MB, free: 41.19 MB / 382.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe 2>&1) Environment - environmentSimulation: