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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 104.2 kB / 16.94 MB, free: 5.797 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.001218/0.001218, allocations: 187.3 kB / 17.87 MB, free: 5.141 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.184/1.184, allocations: 205.1 MB / 223.8 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2605/0.2605, allocations: 48.84 MB / 319.9 MB, free: 11.1 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.001354/0.001354, allocations: 67.88 kB / 390.2 MB, free: 48.82 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0915/0.09287, allocations: 59.16 MB / 449.4 MB, free: 9.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.003182/0.0961, allocations: 2.275 MB / 451.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001001/0.09712, allocations: 0.6631 MB / 452.3 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001264/0.09726, allocations: 4 kB / 452.3 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001277/0.0974, allocations: 31.59 kB / 452.4 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002187/0.09763, allocations: 83.31 kB / 452.5 MB, free: 6.559 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001612/0.0978, allocations: 51.94 kB / 452.5 MB, free: 6.508 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002735/0.09808, allocations: 278.7 kB / 452.8 MB, free: 6.234 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001732/0.09826, allocations: 68.7 kB / 452.8 MB, free: 6.168 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001398/0.09841, allocations: 103.6 kB / 452.9 MB, free: 6.066 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001536/0.09857, allocations: 119.4 kB / 453.1 MB, free: 5.949 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.461e-05/0.09861, allocations: 16 kB / 453.1 MB, free: 5.934 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.731e-05/0.09868, allocations: 20 kB / 453.1 MB, free: 5.914 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.025e-05/0.09873, allocations: 43.84 kB / 453.1 MB, free: 5.871 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001011/0.09884, allocations: 123.3 kB / 453.3 MB, free: 5.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000233/0.09908, allocations: 231.3 kB / 453.5 MB, free: 5.523 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.09909, allocations: 0 / 453.5 MB, free: 5.523 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.0991, allocations: 0 / 453.5 MB, free: 5.523 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.09911, allocations: 0 / 453.5 MB, free: 5.523 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0008021/0.09991, allocations: 0.549 MB / 454 MB, free: 4.926 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.09996, allocations: 19.88 kB / 454.1 MB, free: 4.906 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.737e-05/0.1, allocations: 46.75 kB / 454.1 MB, free: 4.852 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.889e-05/0.1001, allocations: 32.55 kB / 454.1 MB, free: 4.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002676/0.1004, allocations: 258.8 kB / 454.4 MB, free: 4.531 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.6e-05/0.1004, allocations: 12.38 kB / 454.4 MB, free: 4.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.672e-05/0.1004, allocations: 24.31 kB / 454.4 MB, free: 4.496 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002845/0.1007, allocations: 175.2 kB / 454.6 MB, free: 4.312 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.1008, allocations: 4 kB / 454.6 MB, free: 4.309 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.665e-05/0.1008, allocations: 8 kB / 454.6 MB, free: 4.301 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.1008, allocations: 7.938 kB / 454.6 MB, free: 4.293 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002546/0.1011, allocations: 111.9 kB / 454.7 MB, free: 4.184 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008768/0.1019, allocations: 0.6539 MB / 455.4 MB, free: 3.469 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002404/0.1022, allocations: 138.5 kB / 455.5 MB, free: 3.324 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001418/0.1023, allocations: 76.83 kB / 455.6 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.231e-05/0.1024, allocations: 0 / 455.6 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.349e-05/0.1024, allocations: 38.56 kB / 455.6 MB, free: 3.199 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.092e-06/0.1024, allocations: 3.938 kB / 455.6 MB, free: 3.195 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.001033/0.1034, allocations: 0.5477 MB / 456.2 MB, free: 2.598 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.133e-05/0.1035, allocations: 51.41 kB / 456.2 MB, free: 2.535 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002016/0.1037, allocations: 237 kB / 456.5 MB, free: 2.297 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.948e-05/0.1037, allocations: 33.7 kB / 456.5 MB, free: 2.258 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.1039, allocations: 144.3 kB / 456.6 MB, free: 2.113 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.13e-05/0.1039, allocations: 63.02 kB / 456.7 MB, free: 2.051 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.75e-05/0.104, allocations: 41.7 kB / 456.7 MB, free: 2.004 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.1041, allocations: 338.8 kB / 457.1 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.1042, allocations: 47.97 kB / 457.1 MB, free: 1.617 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001173/0.1044, allocations: 85.48 kB / 457.2 MB, free: 1.527 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002362/0.1046, allocations: 133.5 kB / 457.3 MB, free: 1.391 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.1046, allocations: 0 / 457.3 MB, free: 1.391 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003098/0.1049, allocations: 197.4 kB / 457.5 MB, free: 1.191 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.105, allocations: 8.031 kB / 457.5 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.105, allocations: 3.984 kB / 457.5 MB, free: 1.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.105, allocations: 4 kB / 457.5 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003379/0.1053, allocations: 67.95 kB / 457.6 MB, free: 1.109 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001011/0.1064, allocations: 1.433 MB / 459 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001183/0.1065, allocations: 8.031 kB / 459 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.224e-05/0.1065, allocations: 4 kB / 459 MB, free: 15.52 MB / 350.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.878e-05/0.1066, allocations: 138 kB / 459.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.187e-05/0.1067, allocations: 23.7 kB / 459.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002993/0.107, allocations: 187.7 kB / 459.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.107, allocations: 0 / 459.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-06/0.107, allocations: 0 / 459.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.107, allocations: 4 kB / 459.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006179/0.1076, allocations: 0.5307 MB / 459.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1076, allocations: 3.938 kB / 459.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002079/0.1078, allocations: 47.97 kB / 460 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.1079, allocations: 0 / 460 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/0.1079, allocations: 8 kB / 460 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.1079, allocations: 0 / 460 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1079, allocations: 0 / 460 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004179/0.1083, allocations: 348.2 kB / 460.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.904e-05/0.1084, allocations: 112.8 kB / 460.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.486e-05/0.1084, allocations: 4 kB / 460.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001267/0.1086, allocations: 4 kB / 460.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.808e-05/0.1086, allocations: 11.98 kB / 460.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.364e-06/0.1086, allocations: 4 kB / 460.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001311/0.1088, allocations: 172.5 kB / 460.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1088, allocations: 0 / 460.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002509/0.109, allocations: 48 kB / 460.7 MB, free: 13.79 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: 0 () * 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.0006411/0.1097, allocations: 0.8765 MB / 461.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004752/0.1102, allocations: 175.8 kB / 461.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.1102, allocations: 0 / 461.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001254/0.1103, allocations: 71.91 kB / 461.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003232/0.1106, allocations: 48.56 kB / 461.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002883/0.1135, allocations: 2.573 MB / 464.4 MB, free: 9.945 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002666/0.1138, allocations: 0.752 MB / 465.2 MB, free: 9.164 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.85e-05/0.1139, allocations: 25.53 kB / 465.2 MB, free: 9.141 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/0.114, allocations: 79.41 kB / 465.3 MB, free: 9.066 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.114, allocations: 4 kB / 465.3 MB, free: 9.062 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02196/0.136, allocations: 4.854 MB / 470.1 MB, free: 4.145 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.49/5.626, allocations: 16.53 kB / 470.1 MB, free: 4.129 MB / 350.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/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)