Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.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.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",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.001582/0.001582, allocations: 92.14 kB / 16.3 MB, free: 5.996 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.001505/0.001505, allocations: 183.4 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.72/2.72, allocations: 205.4 MB / 223.3 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.5952/0.5952, allocations: 48.78 MB / 320.4 MB, free: 11.32 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.001064/0.001065, allocations: 12.81 kB / 391.2 MB, free: 50.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1926/0.1937, allocations: 60.28 MB / 451.5 MB, free: 9.477 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical1): time 0.004026/0.1978, allocations: 1.7 MB / 453.2 MB, free: 7.758 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001853/0.1998, allocations: 0.5896 MB / 453.8 MB, free: 7.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000182/0.2, allocations: 0 / 453.8 MB, free: 7.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.231e-05/0.2001, allocations: 15.84 kB / 453.8 MB, free: 7.145 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004243/0.2005, allocations: 71.78 kB / 453.9 MB, free: 7.074 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002178/0.2007, allocations: 39.89 kB / 453.9 MB, free: 7.035 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003755/0.2011, allocations: 143.7 kB / 454.1 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002006/0.2014, allocations: 32.28 kB / 454.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002171/0.2016, allocations: 71.7 kB / 454.2 MB, free: 6.793 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002168/0.2018, allocations: 75.61 kB / 454.2 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.646e-05/0.2019, allocations: 12 kB / 454.2 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.375e-05/0.202, allocations: 12 kB / 454.3 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.259e-05/0.202, allocations: 19.92 kB / 454.3 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.039e-05/0.2021, allocations: 57.58 kB / 454.3 MB, free: 6.613 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002672/0.2024, allocations: 115.9 kB / 454.4 MB, free: 6.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.523e-06/0.2024, allocations: 0 / 454.4 MB, free: 6.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.2025, allocations: 3.938 kB / 454.4 MB, free: 6.496 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.2025, allocations: 0 / 454.4 MB, free: 6.496 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.00119/0.2037, allocations: 474.4 kB / 454.9 MB, free: 5.984 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.939e-05/0.2038, allocations: 12.03 kB / 454.9 MB, free: 5.973 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.219e-05/0.2039, allocations: 46.55 kB / 455 MB, free: 5.918 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001561/0.204, allocations: 15.81 kB / 455 MB, free: 5.902 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005209/0.2046, allocations: 239.6 kB / 455.2 MB, free: 5.625 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.458e-05/0.2046, allocations: 8 kB / 455.2 MB, free: 5.617 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.361e-05/0.2047, allocations: 12 kB / 455.2 MB, free: 5.605 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004333/0.2051, allocations: 127.3 kB / 455.4 MB, free: 5.469 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.943e-05/0.2052, allocations: 4 kB / 455.4 MB, free: 5.465 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.024e-05/0.2052, allocations: 7.953 kB / 455.4 MB, free: 5.457 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/0.2052, allocations: 4 kB / 455.4 MB, free: 5.453 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003654/0.2056, allocations: 84.53 kB / 455.5 MB, free: 5.371 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001374/0.207, allocations: 0.5529 MB / 456 MB, free: 4.758 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004937/0.2075, allocations: 106.5 kB / 456.1 MB, free: 4.645 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.165e-05/0.2076, allocations: 3.984 kB / 456.1 MB, free: 4.641 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.155e-05/0.2076, allocations: 38.56 kB / 456.2 MB, free: 4.594 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 2.635e-06/0.2076, allocations: 0 / 456.2 MB, free: 4.594 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.001465/0.2091, allocations: 449.7 kB / 456.6 MB, free: 4.102 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.402e-05/0.2092, allocations: 55.34 kB / 456.6 MB, free: 4.035 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004095/0.2096, allocations: 229 kB / 456.9 MB, free: 3.805 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.476e-05/0.2097, allocations: 29.7 kB / 456.9 MB, free: 3.77 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000147/0.2098, allocations: 124.3 kB / 457 MB, free: 3.645 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.209e-05/0.2099, allocations: 47.3 kB / 457.1 MB, free: 3.598 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.146e-05/0.2099, allocations: 8 kB / 457.1 MB, free: 3.59 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002114/0.2102, allocations: 334.8 kB / 457.4 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001658/0.2104, allocations: 31.98 kB / 457.4 MB, free: 3.223 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002093/0.2106, allocations: 54.5 kB / 457.5 MB, free: 3.16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001928/0.2108, allocations: 47.98 kB / 457.5 MB, free: 3.113 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2108, allocations: 0 / 457.5 MB, free: 3.113 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005303/0.2114, allocations: 137.4 kB / 457.7 MB, free: 2.973 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.253e-05/0.2114, allocations: 8 kB / 457.7 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.914e-06/0.2114, allocations: 0 / 457.7 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.2115, allocations: 0 / 457.7 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003125/0.2118, allocations: 40.05 kB / 457.7 MB, free: 2.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.74e-05/0.2118, allocations: 7.984 kB / 457.7 MB, free: 2.918 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002189/0.2121, allocations: 7.953 kB / 457.7 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.097e-05/0.2121, allocations: 4 kB / 457.7 MB, free: 2.906 MB / 334.1 MB 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 (16): * Single equations (assignments): 16 * 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.0002081/0.2123, allocations: 129.8 kB / 457.9 MB, free: 2.77 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/0.2124, allocations: 23.72 kB / 457.9 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.329e-05/0.2126, allocations: 21.7 kB / 457.9 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.2126, allocations: 3.938 kB / 457.9 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.729e-06/0.2126, allocations: 4 kB / 457.9 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.2126, allocations: 0 / 457.9 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001056/0.2137, allocations: 458.3 kB / 458.4 MB, free: 2.219 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.451e-06/0.2137, allocations: 4 kB / 458.4 MB, free: 2.215 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002751/0.214, allocations: 27.98 kB / 458.4 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/0.214, allocations: 0 / 458.4 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.2141, allocations: 4 kB / 458.4 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.2141, allocations: 4 kB / 458.4 MB, free: 2.18 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.2141, allocations: 3.953 kB / 458.4 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006076/0.2147, allocations: 268.1 kB / 458.7 MB, free: 1.898 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001386/0.2149, allocations: 101 kB / 458.8 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.639e-05/0.2149, allocations: 0 / 458.8 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002173/0.2152, allocations: 12 kB / 458.8 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.942e-05/0.2152, allocations: 7.984 kB / 458.8 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-05/0.2153, allocations: 7.953 kB / 458.8 MB, free: 1.754 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002959/0.2156, allocations: 168.5 kB / 459 MB, free: 1.594 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.2156, allocations: 0 / 459 MB, free: 1.594 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005264/0.2161, allocations: 28 kB / 459 MB, free: 1.566 MB / 334.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 (12): * Single equations (assignments): 12 * 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.001113/0.2173, allocations: 0.8022 MB / 459.8 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004433/0.2177, allocations: 84.02 kB / 459.9 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.2178, allocations: 0 / 459.9 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001569/0.2179, allocations: 52.05 kB / 459.9 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005747/0.2185, allocations: 28.64 kB / 459.9 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003651/0.2222, allocations: 1.583 MB / 461.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004365/0.2227, allocations: 0.7361 MB / 462.3 MB, free: 14.17 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001307/0.2228, allocations: 21.52 kB / 462.3 MB, free: 14.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000131/0.223, allocations: 51.42 kB / 462.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of SimCode: time 1.032e-06/0.223, allocations: 0 / 462.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05009/0.2731, allocations: 3.292 MB / 465.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003706/0.2735, allocations: 186.9 kB / 465.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.135/3.409, allocations: 0 / 465.8 MB, free: 10.56 MB / 350.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe 2>&1) Environment - environmentSimulation: