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.001587/0.001587, allocations: 90.11 kB / 16.3 MB, free: 6.133 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.006409/0.006409, allocations: 182 kB / 17.2 MB, free: 6.016 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.836/2.836, allocations: 205.4 MB / 223.4 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.6119/0.6119, allocations: 48.79 MB / 320.4 MB, free: 11.3 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.0007839/0.0007843, allocations: 13.8 kB / 391.2 MB, free: 50.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1773/0.1782, allocations: 60.28 MB / 451.5 MB, free: 9.488 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical2): time 0.005817/0.1841, allocations: 1.832 MB / 453.3 MB, free: 7.637 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001941/0.1861, allocations: 0.6324 MB / 454 MB, free: 6.996 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004245/0.1866, allocations: 7.938 kB / 454 MB, free: 6.988 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001392/0.1867, allocations: 23.78 kB / 454 MB, free: 6.965 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007506/0.1875, allocations: 83.75 kB / 454.1 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002949/0.1878, allocations: 39.95 kB / 454.1 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006455/0.1885, allocations: 175.6 kB / 454.3 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002699/0.1888, allocations: 40.8 kB / 454.3 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003733/0.1892, allocations: 83.64 kB / 454.4 MB, free: 6.551 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003829/0.1896, allocations: 95.59 kB / 454.5 MB, free: 6.457 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.683e-05/0.1897, allocations: 8 kB / 454.5 MB, free: 6.449 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001238/0.1898, allocations: 8 kB / 454.5 MB, free: 6.441 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.322e-05/0.1899, allocations: 31.83 kB / 454.6 MB, free: 6.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001355/0.19, allocations: 65.58 kB / 454.6 MB, free: 6.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003338/0.1904, allocations: 131.9 kB / 454.7 MB, free: 6.211 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1904, allocations: 0 / 454.7 MB, free: 6.211 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.075e-06/0.1904, allocations: 0 / 454.7 MB, free: 6.211 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.684e-05/0.1904, allocations: 3.938 kB / 454.7 MB, free: 6.207 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001344/0.1918, allocations: 0.4983 MB / 455.2 MB, free: 5.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.379e-05/0.1919, allocations: 11.97 kB / 455.3 MB, free: 5.648 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.663e-05/0.192, allocations: 46.56 kB / 455.3 MB, free: 5.594 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000211/0.1922, allocations: 27.66 kB / 455.3 MB, free: 5.566 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000646/0.1929, allocations: 249.7 kB / 455.6 MB, free: 5.285 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.801e-05/0.1929, allocations: 15.94 kB / 455.6 MB, free: 5.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.865e-05/0.193, allocations: 19.98 kB / 455.6 MB, free: 5.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005001/0.1935, allocations: 151.3 kB / 455.8 MB, free: 5.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.619e-05/0.1936, allocations: 3.984 kB / 455.8 MB, free: 5.086 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.971e-05/0.1936, allocations: 7.953 kB / 455.8 MB, free: 5.078 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.1936, allocations: 8 kB / 455.8 MB, free: 5.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004178/0.1941, allocations: 103.9 kB / 455.9 MB, free: 4.969 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001721/0.1958, allocations: 0.6152 MB / 456.5 MB, free: 4.293 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004252/0.1963, allocations: 130.5 kB / 456.6 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.233e-05/0.1963, allocations: 4 kB / 456.6 MB, free: 4.152 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.335e-05/0.1963, allocations: 34.56 kB / 456.7 MB, free: 4.109 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 3.868e-06/0.1964, allocations: 0 / 456.7 MB, free: 4.109 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.001915/0.1983, allocations: 0.5768 MB / 457.2 MB, free: 3.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.902e-05/0.1984, allocations: 55.41 kB / 457.3 MB, free: 3.414 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004067/0.1988, allocations: 217 kB / 457.5 MB, free: 3.195 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.711e-05/0.1989, allocations: 33.7 kB / 457.5 MB, free: 3.156 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001599/0.199, allocations: 140.4 kB / 457.7 MB, free: 3.016 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.452e-05/0.1991, allocations: 71.02 kB / 457.7 MB, free: 2.945 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.29e-05/0.1992, allocations: 4 kB / 457.7 MB, free: 2.941 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001903/0.1994, allocations: 326.8 kB / 458.1 MB, free: 2.613 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001924/0.1996, allocations: 55.97 kB / 458.1 MB, free: 2.559 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002268/0.1998, allocations: 90.45 kB / 458.2 MB, free: 2.461 MB / 334.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.001393/0.2012, allocations: 306.8 kB / 458.5 MB, free: 2.145 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2012, allocations: 4 kB / 458.5 MB, free: 2.141 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005858/0.2018, allocations: 197.8 kB / 458.7 MB, free: 1.941 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.168e-05/0.2019, allocations: 4 kB / 458.7 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.2019, allocations: 0 / 458.7 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.88e-05/0.2019, allocations: 4 kB / 458.7 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004101/0.2024, allocations: 56 kB / 458.8 MB, free: 1.879 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/0.2024, allocations: 3.938 kB / 458.8 MB, free: 1.875 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002287/0.2026, allocations: 15.98 kB / 458.8 MB, free: 1.859 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.017e-05/0.2027, allocations: 4 kB / 458.8 MB, free: 1.855 MB / 334.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.0002375/0.2029, allocations: 125.8 kB / 458.9 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.595e-05/0.203, allocations: 27.67 kB / 458.9 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.802e-05/0.2031, allocations: 30.17 kB / 459 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.2031, allocations: 11.94 kB / 459 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.087e-05/0.2031, allocations: 0 / 459 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.2032, allocations: 0 / 459 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00126/0.2044, allocations: 0.5244 MB / 459.5 MB, free: 1.082 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.375e-06/0.2045, allocations: 8 kB / 459.5 MB, free: 1.074 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003923/0.2049, allocations: 59.91 kB / 459.6 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.456e-06/0.2049, allocations: 0 / 459.6 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.217e-05/0.2049, allocations: 0 / 459.6 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.2049, allocations: 0 / 459.6 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.2049, allocations: 0 / 459.6 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009343/0.2059, allocations: 347.4 kB / 459.9 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001514/0.2061, allocations: 112.8 kB / 460 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.241e-05/0.2061, allocations: 4 kB / 460 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002147/0.2063, allocations: 8 kB / 460 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.173e-05/0.2064, allocations: 11.98 kB / 460 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.499e-05/0.2065, allocations: 4 kB / 460 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002537/0.2067, allocations: 172.4 kB / 460.2 MB, free: 340 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2067, allocations: 3.938 kB / 460.2 MB, free: 336 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.000451/0.2072, allocations: 40 kB / 460.3 MB, free: 296 kB / 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 (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.001348/0.2086, allocations: 0.872 MB / 461.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005866/0.2092, allocations: 152 kB / 461.3 MB, free: 15.24 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.2092, allocations: 0 / 461.3 MB, free: 15.24 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000247/0.2094, allocations: 71.91 kB / 461.3 MB, free: 15.17 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005209/0.21, allocations: 32.73 kB / 461.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002828/0.2128, allocations: 1.237 MB / 462.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006383/0.2135, allocations: 0.744 MB / 463.4 MB, free: 13.08 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000172/0.2137, allocations: 25.53 kB / 463.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001768/0.2139, allocations: 55.42 kB / 463.4 MB, free: 13 MB / 350.1 MB Notification: Performance of SimCode: time 1.763e-06/0.2139, allocations: 0 / 463.4 MB, free: 13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04357/0.2575, allocations: 3.717 MB / 467.2 MB, free: 9.277 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003623/0.2579, allocations: 183.6 kB / 467.3 MB, free: 9.035 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.083/3.341, allocations: 4.062 kB / 467.3 MB, free: 9.031 MB / 350.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: