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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.0009372/0.0009372, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.482/1.482, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000838/0.0008381, allocations: 75.8 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4323/0.4323, allocations: 48.77 MB / 358.8 MB, free: 53.13 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.125e-05/2.126e-05, allocations: 4 kB / 425.4 MB, free: 8.148 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1305, allocations: 60.26 MB / 485.6 MB, free: 11.74 MB / 379.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3582/0.4887, allocations: 86.06 MB / 0.5583 GB, free: 14.95 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000312/0.4891, allocations: 75.95 kB / 0.5584 GB, free: 14.87 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.0213/0.5104, allocations: 5.422 MB / 0.5637 GB, free: 9.488 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.5104, allocations: 0 / 0.5637 GB, free: 9.488 MB / 395.1 MB Notification: Performance of Transformations before backend: time 3.357e-05/0.5105, allocations: 8 kB / 0.5637 GB, free: 9.48 MB / 395.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.001025/0.5115, allocations: 0.5697 MB / 0.5642 GB, free: 8.871 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.5116, allocations: 8.031 kB / 0.5642 GB, free: 8.863 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001057/0.5117, allocations: 39.53 kB / 0.5643 GB, free: 8.824 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006551/0.5124, allocations: 316.2 kB / 0.5646 GB, free: 8.48 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.193e-05/0.5124, allocations: 8 kB / 0.5646 GB, free: 8.473 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.428e-05/0.5125, allocations: 21.38 kB / 0.5646 GB, free: 8.453 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003758/0.5129, allocations: 128.8 kB / 0.5647 GB, free: 8.328 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004445/0.5133, allocations: 193.8 kB / 0.5649 GB, free: 8.125 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.746e-05/0.5134, allocations: 4 kB / 0.5649 GB, free: 8.121 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.723e-05/0.5134, allocations: 3.953 kB / 0.5649 GB, free: 8.117 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.5134, allocations: 8 kB / 0.5649 GB, free: 8.109 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001452/0.5149, allocations: 0.7995 MB / 0.5657 GB, free: 7.262 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003525/0.5152, allocations: 167.3 kB / 0.5659 GB, free: 7.09 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001844/0.5154, allocations: 89.81 kB / 0.566 GB, free: 7 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.847e-05/0.5155, allocations: 8 kB / 0.566 GB, free: 6.992 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/0.5155, allocations: 32.31 kB / 0.566 GB, free: 6.953 MB / 395.1 MB Notification: Performance of pre-optimization done (n=26): time 2.064e-06/0.5156, allocations: 0 / 0.566 GB, free: 6.953 MB / 395.1 MB Notification: Performance of matching and sorting (n=28): time 0.001466/0.517, allocations: 0.5754 MB / 0.5666 GB, free: 6.324 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.638e-05/0.5171, allocations: 55.64 kB / 0.5666 GB, free: 6.258 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003605/0.5175, allocations: 255 kB / 0.5669 GB, free: 6.004 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 2.575e-05/0.5175, allocations: 29.7 kB / 0.5669 GB, free: 5.969 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001488/0.5177, allocations: 184.4 kB / 0.5671 GB, free: 5.785 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.669e-05/0.5178, allocations: 94.56 kB / 0.5671 GB, free: 5.691 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.363e-05/0.5178, allocations: 0 / 0.5671 GB, free: 5.691 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.518, allocations: 338.8 kB / 0.5675 GB, free: 5.352 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001492/0.5181, allocations: 56 kB / 0.5675 GB, free: 5.297 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001784/0.5183, allocations: 90.7 kB / 0.5676 GB, free: 5.195 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001982/0.5185, allocations: 73.31 kB / 0.5677 GB, free: 5.125 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.5185, allocations: 0 / 0.5677 GB, free: 5.125 MB / 395.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006677/0.5192, allocations: 272 kB / 0.5679 GB, free: 4.852 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.42e-05/0.5193, allocations: 8 kB / 0.5679 GB, free: 4.844 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-06/0.5193, allocations: 2.5 kB / 0.5679 GB, free: 4.844 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004147/0.5197, allocations: 68.88 kB / 0.568 GB, free: 4.773 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005005/0.5202, allocations: 75.88 kB / 0.5681 GB, free: 4.699 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00179/0.522, allocations: 1.902 MB / 0.5699 GB, free: 2.66 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002806/0.5223, allocations: 20.06 kB / 0.57 GB, free: 2.645 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.68e-05/0.5224, allocations: 12 kB / 0.57 GB, free: 2.633 MB / 395.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * 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: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001297/0.5225, allocations: 104.9 kB / 0.5701 GB, free: 2.523 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004329/0.5229, allocations: 201.5 kB / 0.5703 GB, free: 2.32 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.841e-05/0.523, allocations: 31.62 kB / 0.5703 GB, free: 2.289 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005128/0.5236, allocations: 226.5 kB / 0.5705 GB, free: 2.066 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.5236, allocations: 8 kB / 0.5705 GB, free: 2.059 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.5236, allocations: 1 kB / 0.5705 GB, free: 2.059 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.5236, allocations: 7.922 kB / 0.5705 GB, free: 2.051 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001091/0.5247, allocations: 0.5899 MB / 0.5711 GB, free: 1.418 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.5247, allocations: 0 / 0.5711 GB, free: 1.418 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005111/0.5252, allocations: 75.91 kB / 0.5712 GB, free: 1.344 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.117e-06/0.5253, allocations: 7.938 kB / 0.5712 GB, free: 1.336 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.404e-05/0.5253, allocations: 7.984 kB / 0.5712 GB, free: 1.328 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.155e-05/0.5253, allocations: 5.125 kB / 0.5712 GB, free: 1.324 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.5253, allocations: 0 / 0.5712 GB, free: 1.324 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006589/0.526, allocations: 391 kB / 0.5716 GB, free: 0.9258 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00016/0.5262, allocations: 124.8 kB / 0.5717 GB, free: 0.7852 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.333e-05/0.5262, allocations: 3.953 kB / 0.5717 GB, free: 0.7812 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002883/0.5265, allocations: 15.98 kB / 0.5717 GB, free: 0.7656 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.249e-05/0.5266, allocations: 16.73 kB / 0.5717 GB, free: 0.75 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.257e-05/0.5267, allocations: 11.98 kB / 0.5717 GB, free: 0.7383 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0002555/0.5269, allocations: 192.6 kB / 0.5719 GB, free: 0.5508 MB / 395.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5269, allocations: 0 / 0.5719 GB, free: 0.5508 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.000515/0.5275, allocations: 67.98 kB / 0.572 GB, free: 496 kB / 395.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 30 * 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.001063/0.5285, allocations: 0.9264 MB / 0.5729 GB, free: 15.54 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0007068/0.5293, allocations: 200 kB / 0.5731 GB, free: 15.34 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.5293, allocations: 0 / 0.5731 GB, free: 15.34 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001876/0.5295, allocations: 93 kB / 0.5732 GB, free: 15.25 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000537/0.53, allocations: 55.94 kB / 0.5732 GB, free: 15.2 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002302/0.5323, allocations: 0.8233 MB / 0.574 GB, free: 14.36 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004816/0.5328, allocations: 0.8014 MB / 0.5748 GB, free: 13.54 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.0002004/0.533, allocations: 39.25 kB / 0.5748 GB, free: 13.49 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002296/0.5333, allocations: 115.4 kB / 0.575 GB, free: 13.38 MB / 411.1 MB Notification: Performance of SimCode: time 5.01e-07/0.5333, allocations: 0 / 0.575 GB, free: 13.38 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03288/0.5662, allocations: 5.749 MB / 0.5806 GB, free: 7.664 MB / 411.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000393/0.5667, allocations: 139.1 kB / 0.5807 GB, free: 7.473 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.065/2.632, allocations: 2.5 kB / 0.5807 GB, free: 7.473 MB / 411.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)