Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.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.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",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.0008851/0.0008853, allocations: 89.14 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.0008205/0.0008205, allocations: 180.6 kB / 17.21 MB, free: 6.32 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.484/1.484, allocations: 205.4 MB / 223.4 MB, free: 5.477 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4539/0.4539, allocations: 48.77 MB / 320.4 MB, free: 3.828 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.00056/0.0005603, allocations: 18.97 kB / 391.3 MB, free: 14.19 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1349, allocations: 60.25 MB / 451.5 MB, free: 1.797 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.2449/0.3798, allocations: 2.012 MB / 453.5 MB, free: 47.62 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001241/0.3811, allocations: 0.6383 MB / 454.2 MB, free: 47.59 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001325/0.3813, allocations: 4.875 kB / 454.2 MB, free: 47.59 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001047/0.3814, allocations: 24.69 kB / 454.2 MB, free: 47.58 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002002/0.3816, allocations: 80.89 kB / 454.3 MB, free: 47.55 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001188/0.3817, allocations: 42.33 kB / 454.3 MB, free: 47.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002217/0.382, allocations: 257.4 kB / 454.6 MB, free: 47.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001775/0.3821, allocations: 71.92 kB / 454.6 MB, free: 47.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001504/0.3823, allocations: 92.28 kB / 454.7 MB, free: 47.45 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001652/0.3825, allocations: 104.8 kB / 454.8 MB, free: 47.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.987e-05/0.3825, allocations: 10.38 kB / 454.8 MB, free: 47.43 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.528e-05/0.3826, allocations: 14.53 kB / 454.9 MB, free: 47.43 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.666e-05/0.3827, allocations: 47.42 kB / 454.9 MB, free: 47.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.386e-05/0.3827, allocations: 65.98 kB / 455 MB, free: 47.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001851/0.3829, allocations: 157.6 kB / 455.1 MB, free: 47.36 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.3829, allocations: 2.688 kB / 455.1 MB, free: 47.36 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3829, allocations: 0 / 455.1 MB, free: 47.36 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.3829, allocations: 0 / 455.1 MB, free: 47.36 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0008102/0.3838, allocations: 0.5286 MB / 455.7 MB, free: 46.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.3838, allocations: 11.25 kB / 455.7 MB, free: 46.93 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.517e-05/0.3839, allocations: 49.86 kB / 455.7 MB, free: 46.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001181/0.384, allocations: 32.28 kB / 455.7 MB, free: 46.87 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002832/0.3843, allocations: 255 kB / 456 MB, free: 46.65 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.059e-05/0.3844, allocations: 42.5 kB / 456 MB, free: 46.62 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.476e-05/0.3844, allocations: 19.72 kB / 456.1 MB, free: 46.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003262/0.3847, allocations: 189 kB / 456.2 MB, free: 46.56 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.3848, allocations: 0 / 456.2 MB, free: 46.56 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.818e-05/0.3848, allocations: 5.844 kB / 456.2 MB, free: 46.56 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.3848, allocations: 3.812 kB / 456.3 MB, free: 46.56 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002774/0.3851, allocations: 136 kB / 456.4 MB, free: 46.56 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009364/0.386, allocations: 0.6809 MB / 457.1 MB, free: 46.14 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003769/0.3864, allocations: 150.6 kB / 457.2 MB, free: 46.12 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001648/0.3866, allocations: 91.81 kB / 457.3 MB, free: 46.11 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.405e-05/0.3866, allocations: 3.953 kB / 457.3 MB, free: 46.1 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.893e-05/0.3867, allocations: 41.75 kB / 457.3 MB, free: 46.06 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.243e-06/0.3867, allocations: 0 / 457.3 MB, free: 46.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001104/0.3878, allocations: 0.6032 MB / 458 MB, free: 45.75 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.566e-05/0.3878, allocations: 51.41 kB / 458 MB, free: 45.69 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002152/0.3881, allocations: 234.5 kB / 458.2 MB, free: 45.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.652e-05/0.3881, allocations: 34.41 kB / 458.3 MB, free: 45.55 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.421e-05/0.3882, allocations: 149.2 kB / 458.4 MB, free: 45.45 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.703e-05/0.3882, allocations: 66.67 kB / 458.5 MB, free: 45.41 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.468e-06/0.3882, allocations: 4.875 kB / 458.5 MB, free: 45.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.226e-05/0.3883, allocations: 333 kB / 458.8 MB, free: 45.1 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001238/0.3884, allocations: 64.5 kB / 458.9 MB, free: 45.1 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001225/0.3886, allocations: 86.27 kB / 459 MB, free: 45.08 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001245/0.3887, allocations: 64.72 kB / 459 MB, free: 45.08 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.12e-07/0.3887, allocations: 0 / 459 MB, free: 45.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003245/0.389, allocations: 220.6 kB / 459.2 MB, free: 45.03 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.3891, allocations: 3.125 kB / 459.2 MB, free: 45.03 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.3891, allocations: 3.531 kB / 459.2 MB, free: 45.03 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.3891, allocations: 0 / 459.2 MB, free: 45.03 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003618/0.3895, allocations: 85.16 kB / 459.3 MB, free: 45.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.3895, allocations: 4.031 kB / 459.3 MB, free: 45.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001193/0.3896, allocations: 15.66 kB / 459.3 MB, free: 45.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.268e-05/0.3896, allocations: 9.312 kB / 459.3 MB, free: 45.02 MB / 382.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: 1 (BreakerCommand.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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 9.202e-05/0.3897, allocations: 145.5 kB / 459.5 MB, free: 44.89 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.067e-05/0.3898, allocations: 20.97 kB / 459.5 MB, free: 44.88 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.455e-05/0.3898, allocations: 32.48 kB / 459.5 MB, free: 44.88 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.3899, allocations: 2.75 kB / 459.5 MB, free: 44.88 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.3899, allocations: 10.52 kB / 459.6 MB, free: 44.87 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.3899, allocations: 0 / 459.6 MB, free: 44.87 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006696/0.3906, allocations: 0.5432 MB / 460.1 MB, free: 44.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.3906, allocations: 0 / 460.1 MB, free: 44.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003457/0.3909, allocations: 70.81 kB / 460.2 MB, free: 44.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.419e-06/0.3909, allocations: 2.875 kB / 460.2 MB, free: 44.56 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.608e-05/0.391, allocations: 3.438 kB / 460.2 MB, free: 44.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.391, allocations: 3.141 kB / 460.2 MB, free: 44.56 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.391, allocations: 6.859 kB / 460.2 MB, free: 44.56 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005419/0.3915, allocations: 365.4 kB / 460.5 MB, free: 44.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.959e-05/0.3916, allocations: 109.5 kB / 460.6 MB, free: 44.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.576e-05/0.3917, allocations: 7.438 kB / 460.7 MB, free: 44.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001366/0.3918, allocations: 11.44 kB / 460.7 MB, free: 44.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.917e-05/0.3919, allocations: 20.34 kB / 460.7 MB, free: 44.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.06e-05/0.3919, allocations: 4.125 kB / 460.7 MB, free: 44.29 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001638/0.3921, allocations: 169.4 kB / 460.9 MB, free: 44.21 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3921, allocations: 0 / 460.9 MB, free: 44.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002688/0.3923, allocations: 46 kB / 460.9 MB, free: 44.21 MB / 382.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: 1 (BreakerCommand.y) * 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 (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.0006075/0.393, allocations: 0.8906 MB / 461.8 MB, free: 43.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002985/0.3933, allocations: 166.1 kB / 462 MB, free: 43.52 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3933, allocations: 0 / 462 MB, free: 43.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001295/0.3934, allocations: 77.78 kB / 462 MB, free: 43.51 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003927/0.3938, allocations: 38.53 kB / 462.1 MB, free: 43.51 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002083/0.3959, allocations: 1.617 MB / 463.7 MB, free: 42.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001826/0.3961, allocations: 0.7456 MB / 464.4 MB, free: 42.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.566e-05/0.3962, allocations: 28.73 kB / 464.5 MB, free: 42.04 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001299/0.3963, allocations: 77.7 kB / 464.5 MB, free: 42.03 MB / 382.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3963, allocations: 0 / 464.5 MB, free: 42.03 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0144/0.4108, allocations: 3.99 MB / 468.5 MB, free: 41.67 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001325/0.4109, allocations: 186.2 kB / 468.7 MB, free: 41.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.792/2.203, allocations: 3.938 kB / 468.7 MB, free: 41.43 MB / 382.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe 2>&1) Environment - environmentSimulation: