Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.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.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",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.0007909/0.0007909, 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.0008174/0.0008175, allocations: 183.1 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.532/1.532, allocations: 205.4 MB / 223.4 MB, free: 5.289 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4663/0.4663, allocations: 48.77 MB / 320.4 MB, free: 3.887 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.0005446/0.0005447, allocations: 18.66 kB / 391.3 MB, free: 14.21 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1299, allocations: 60.26 MB / 451.5 MB, free: 1.812 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical5): time 0.2087/0.3387, allocations: 2.274 MB / 453.8 MB, free: 47.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001453/0.3402, allocations: 0.7261 MB / 454.5 MB, free: 47.21 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001697/0.3404, allocations: 5.875 kB / 454.5 MB, free: 47.21 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001359/0.3405, allocations: 31.77 kB / 454.6 MB, free: 47.19 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002701/0.3408, allocations: 105 kB / 454.7 MB, free: 47.15 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001553/0.3409, allocations: 65.16 kB / 454.7 MB, free: 47.14 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003039/0.3413, allocations: 365.3 kB / 455.1 MB, free: 47.04 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001786/0.3414, allocations: 70.95 kB / 455.2 MB, free: 47.04 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001763/0.3416, allocations: 129.7 kB / 455.3 MB, free: 47.01 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001875/0.3418, allocations: 152.1 kB / 455.4 MB, free: 46.96 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.465e-05/0.3419, allocations: 14.62 kB / 455.4 MB, free: 46.96 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.948e-05/0.3419, allocations: 14.59 kB / 455.5 MB, free: 46.96 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.419e-05/0.342, allocations: 51.47 kB / 455.5 MB, free: 46.95 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.968e-05/0.3421, allocations: 82.27 kB / 455.6 MB, free: 46.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002029/0.3423, allocations: 226.5 kB / 455.8 MB, free: 46.89 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3423, allocations: 0 / 455.8 MB, free: 46.89 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3423, allocations: 0 / 455.8 MB, free: 46.89 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.3423, allocations: 0 / 455.8 MB, free: 46.89 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0008155/0.3431, allocations: 0.6235 MB / 456.4 MB, free: 46.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.3432, allocations: 8.594 kB / 456.4 MB, free: 46.41 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.214e-05/0.3432, allocations: 60.33 kB / 456.5 MB, free: 46.37 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.514e-05/0.3433, allocations: 39.91 kB / 456.5 MB, free: 46.35 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003243/0.3437, allocations: 302 kB / 456.8 MB, free: 46.12 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.894e-05/0.3437, allocations: 17.89 kB / 456.9 MB, free: 46.12 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.422e-05/0.3437, allocations: 27.62 kB / 456.9 MB, free: 46.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003832/0.3441, allocations: 248.7 kB / 457.1 MB, free: 46.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.3442, allocations: 0 / 457.1 MB, free: 46.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.333e-05/0.3442, allocations: 10.22 kB / 457.1 MB, free: 46.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.3442, allocations: 5.688 kB / 457.1 MB, free: 46.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003567/0.3446, allocations: 192.7 kB / 457.3 MB, free: 46.04 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001016/0.3456, allocations: 0.8733 MB / 458.2 MB, free: 45.53 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002812/0.3459, allocations: 190.7 kB / 458.4 MB, free: 45.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001716/0.3461, allocations: 120.2 kB / 458.5 MB, free: 45.49 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.241e-05/0.3461, allocations: 6.906 kB / 458.5 MB, free: 45.49 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.577e-05/0.3461, allocations: 33.47 kB / 458.5 MB, free: 45.45 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 1.453e-06/0.3461, allocations: 0.5625 kB / 458.5 MB, free: 45.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.00123/0.3474, allocations: 0.7632 MB / 459.3 MB, free: 45.12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.124e-05/0.3474, allocations: 57.58 kB / 459.4 MB, free: 45.06 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002839/0.3477, allocations: 298 kB / 459.7 MB, free: 44.95 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.788e-05/0.3477, allocations: 29.77 kB / 459.7 MB, free: 44.92 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.3479, allocations: 179.1 kB / 459.9 MB, free: 44.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.963e-05/0.3479, allocations: 101.3 kB / 460 MB, free: 44.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.208e-05/0.348, allocations: 7.25 kB / 460 MB, free: 44.75 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.837e-05/0.348, allocations: 345.7 kB / 460.3 MB, free: 44.44 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001503/0.3482, allocations: 82.56 kB / 460.4 MB, free: 44.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001769/0.3484, allocations: 112.6 kB / 460.5 MB, free: 44.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001675/0.3485, allocations: 99.2 kB / 460.6 MB, free: 44.4 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.3486, allocations: 2.812 kB / 460.6 MB, free: 44.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005297/0.3491, allocations: 325 kB / 460.9 MB, free: 44.33 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.3491, allocations: 9.391 kB / 460.9 MB, free: 44.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.3491, allocations: 2.562 kB / 460.9 MB, free: 44.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002409/0.3494, allocations: 59.52 kB / 461 MB, free: 44.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003232/0.3497, allocations: 77.44 kB / 461.1 MB, free: 44.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001749/0.3515, allocations: 2.815 MB / 463.9 MB, free: 41.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001726/0.3517, allocations: 20.42 kB / 463.9 MB, free: 41.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.553e-05/0.3517, allocations: 12.44 kB / 463.9 MB, free: 41.68 MB / 382.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 (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001104/0.3518, allocations: 141.8 kB / 464 MB, free: 41.56 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.693e-05/0.3519, allocations: 34.42 kB / 464.1 MB, free: 41.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003873/0.3522, allocations: 266.5 kB / 464.3 MB, free: 41.49 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.3523, allocations: 10.75 kB / 464.3 MB, free: 41.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.974e-06/0.3523, allocations: 1.438 kB / 464.4 MB, free: 41.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.3523, allocations: 5.062 kB / 464.4 MB, free: 41.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007717/0.3531, allocations: 0.6801 MB / 465 MB, free: 41.17 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.3531, allocations: 0 / 465 MB, free: 41.17 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002859/0.3534, allocations: 68.19 kB / 465.1 MB, free: 41.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.3534, allocations: 2.688 kB / 465.1 MB, free: 41.17 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.3534, allocations: 3 kB / 465.1 MB, free: 41.17 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.3534, allocations: 6.781 kB / 465.1 MB, free: 41.17 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.3534, allocations: 0 / 465.1 MB, free: 41.17 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006332/0.3541, allocations: 471.5 kB / 465.6 MB, free: 41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.928e-05/0.3542, allocations: 124.9 kB / 465.7 MB, free: 40.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.79e-05/0.3542, allocations: 3.938 kB / 465.7 MB, free: 40.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001776/0.3544, allocations: 17.3 kB / 465.7 MB, free: 40.89 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.784e-05/0.3544, allocations: 15.03 kB / 465.7 MB, free: 40.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.169e-05/0.3545, allocations: 7.531 kB / 465.7 MB, free: 40.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000204/0.3547, allocations: 211.9 kB / 465.9 MB, free: 40.8 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3547, allocations: 0 / 465.9 MB, free: 40.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003296/0.355, allocations: 76 kB / 466 MB, free: 40.8 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.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 (28): * Single equations (assignments): 28 * 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.0007626/0.3558, allocations: 1.007 MB / 467 MB, free: 40.02 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007691/0.3566, allocations: 376.2 kB / 467.4 MB, free: 39.84 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.3566, allocations: 0 / 467.4 MB, free: 39.84 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001718/0.3568, allocations: 117 kB / 467.5 MB, free: 39.8 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004147/0.3572, allocations: 58.95 kB / 467.6 MB, free: 39.78 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002761/0.3599, allocations: 2.264 MB / 469.8 MB, free: 38.51 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002009/0.3602, allocations: 0.7889 MB / 470.6 MB, free: 37.81 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001342/0.3603, allocations: 36.88 kB / 470.7 MB, free: 37.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001502/0.3605, allocations: 111.9 kB / 470.8 MB, free: 37.72 MB / 382.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3605, allocations: 0 / 470.8 MB, free: 37.72 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01827/0.3787, allocations: 6.24 MB / 477 MB, free: 37.16 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001347/0.3789, allocations: 214.6 kB / 477.2 MB, free: 36.91 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.891/2.27, allocations: 4 kB / 477.2 MB, free: 36.91 MB / 382.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-07 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe 2>&1) Environment - environmentSimulation: