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.001728/0.001728, allocations: 94.56 kB / 16.3 MB, free: 6.461 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.002008/0.002009, allocations: 182.6 kB / 17.2 MB, free: 6.344 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.891/2.891, allocations: 205.4 MB / 223.4 MB, free: 13.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.5577/0.5577, allocations: 48.78 MB / 320.4 MB, free: 11.31 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.001118/0.001118, allocations: 17.31 kB / 391.2 MB, free: 50.19 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2142/0.2153, allocations: 60.27 MB / 451.5 MB, free: 9.484 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.004148/0.2196, allocations: 1.918 MB / 453.4 MB, free: 7.547 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002074/0.2217, allocations: 0.6597 MB / 454.1 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003411/0.2221, allocations: 7.938 kB / 454.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001022/0.2223, allocations: 23.78 kB / 454.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00056/0.2228, allocations: 95.72 kB / 454.2 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002787/0.2231, allocations: 51.88 kB / 454.2 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004602/0.2236, allocations: 191.6 kB / 454.4 MB, free: 6.516 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002725/0.2239, allocations: 44.72 kB / 454.5 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000249/0.2241, allocations: 103.6 kB / 454.6 MB, free: 6.371 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002522/0.2244, allocations: 103.5 kB / 454.7 MB, free: 6.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.793e-05/0.2245, allocations: 11.94 kB / 454.7 MB, free: 6.258 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.61e-05/0.2246, allocations: 15.98 kB / 454.7 MB, free: 6.242 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.337e-05/0.2246, allocations: 39.83 kB / 454.7 MB, free: 6.203 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.497e-05/0.2247, allocations: 73.45 kB / 454.8 MB, free: 6.125 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003119/0.2251, allocations: 155.8 kB / 455 MB, free: 5.973 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.2251, allocations: 0 / 455 MB, free: 5.973 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.907e-06/0.2251, allocations: 0 / 455 MB, free: 5.973 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.493e-05/0.2251, allocations: 0 / 455 MB, free: 5.973 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.001463/0.2266, allocations: 0.5256 MB / 455.5 MB, free: 5.398 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.999e-05/0.2267, allocations: 12.03 kB / 455.5 MB, free: 5.387 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001171/0.2268, allocations: 50.55 kB / 455.6 MB, free: 5.328 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002087/0.2271, allocations: 31.61 kB / 455.6 MB, free: 5.297 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006084/0.2277, allocations: 253.7 kB / 455.8 MB, free: 5.012 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001187/0.2278, allocations: 37.7 kB / 455.9 MB, free: 4.969 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.213e-05/0.2279, allocations: 23.98 kB / 455.9 MB, free: 4.945 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005631/0.2285, allocations: 190.7 kB / 456.1 MB, free: 4.746 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.499e-05/0.2285, allocations: 3.906 kB / 456.1 MB, free: 4.742 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.011e-05/0.2286, allocations: 12 kB / 456.1 MB, free: 4.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.048e-05/0.2286, allocations: 4 kB / 456.1 MB, free: 4.727 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005608/0.2292, allocations: 127.9 kB / 456.2 MB, free: 4.602 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001941/0.2311, allocations: 0.6812 MB / 456.9 MB, free: 3.859 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007135/0.2319, allocations: 146.6 kB / 457 MB, free: 3.707 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.444e-05/0.2319, allocations: 4 kB / 457.1 MB, free: 3.703 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.033e-05/0.232, allocations: 42.52 kB / 457.1 MB, free: 3.652 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 8.466e-06/0.232, allocations: 0 / 457.1 MB, free: 3.652 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.002316/0.2344, allocations: 0.6006 MB / 457.7 MB, free: 3.004 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.468e-05/0.2345, allocations: 63.36 kB / 457.8 MB, free: 2.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004251/0.2349, allocations: 229 kB / 458 MB, free: 2.699 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.92e-05/0.235, allocations: 33.7 kB / 458 MB, free: 2.66 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001646/0.2351, allocations: 156.2 kB / 458.2 MB, free: 2.504 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.34e-05/0.2352, allocations: 63.02 kB / 458.2 MB, free: 2.441 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.703e-05/0.2353, allocations: 4 kB / 458.2 MB, free: 2.438 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002022/0.2355, allocations: 334.8 kB / 458.6 MB, free: 2.102 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002489/0.2357, allocations: 59.97 kB / 458.6 MB, free: 2.043 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002593/0.236, allocations: 89.61 kB / 458.7 MB, free: 1.949 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002678/0.2363, allocations: 67.98 kB / 458.8 MB, free: 1.883 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2363, allocations: 0 / 458.8 MB, free: 1.883 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0006965/0.237, allocations: 217.2 kB / 459 MB, free: 1.664 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.658e-05/0.2371, allocations: 4 kB / 459 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.2371, allocations: 3.984 kB / 459 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.745e-05/0.2371, allocations: 4 kB / 459 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007054/0.2378, allocations: 83.92 kB / 459.1 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.727e-05/0.2379, allocations: 11.89 kB / 459.1 MB, free: 1.559 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002543/0.2381, allocations: 7.984 kB / 459.1 MB, free: 1.551 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.944e-05/0.2382, allocations: 12 kB / 459.1 MB, free: 1.539 MB / 334.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 0.0002217/0.2384, allocations: 129.8 kB / 459.2 MB, free: 1.402 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.749e-05/0.2385, allocations: 19.72 kB / 459.3 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.805e-05/0.2386, allocations: 34.17 kB / 459.3 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.2387, allocations: 4 kB / 459.3 MB, free: 1.352 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.294e-05/0.2387, allocations: 4 kB / 459.3 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.482e-05/0.2387, allocations: 15.88 kB / 459.3 MB, free: 1.332 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001315/0.24, allocations: 0.5414 MB / 459.9 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.2401, allocations: 3.938 kB / 459.9 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006397/0.2407, allocations: 71.89 kB / 459.9 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.574e-06/0.2407, allocations: 0 / 459.9 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.765e-05/0.2408, allocations: 4 kB / 459.9 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.2408, allocations: 0 / 459.9 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.055e-06/0.2408, allocations: 7.953 kB / 459.9 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009419/0.2418, allocations: 363.4 kB / 460.3 MB, free: 284 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001917/0.242, allocations: 108.8 kB / 460.4 MB, free: 156 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.233e-05/0.242, allocations: 4 kB / 460.4 MB, free: 152 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002742/0.2423, allocations: 15.98 kB / 460.4 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.2424, allocations: 19.94 kB / 460.4 MB, free: 116 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.672e-05/0.2425, allocations: 0 / 460.4 MB, free: 116 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003211/0.2428, allocations: 176.4 kB / 460.6 MB, free: 15.94 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.2428, allocations: 0 / 460.6 MB, free: 15.94 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005594/0.2434, allocations: 44 kB / 460.7 MB, free: 15.89 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: 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.001495/0.2449, allocations: 0.8917 MB / 461.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006651/0.2456, allocations: 159.9 kB / 461.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.2456, allocations: 0 / 461.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003017/0.2459, allocations: 83.95 kB / 461.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007/0.2466, allocations: 32.42 kB / 461.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002907/0.2496, allocations: 1.199 MB / 463 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004903/0.2501, allocations: 0.7481 MB / 463.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001852/0.2503, allocations: 33.86 kB / 463.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001883/0.2505, allocations: 71.42 kB / 463.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of SimCode: time 1.382e-06/0.2505, allocations: 0 / 463.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05164/0.3022, allocations: 3.878 MB / 467.7 MB, free: 8.699 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004127/0.3027, allocations: 190.9 kB / 467.9 MB, free: 8.449 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.131/3.434, allocations: 0 / 467.9 MB, free: 8.449 MB / 350.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: