Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.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.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",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.001552/0.001552, allocations: 175.4 kB / 8.348 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.503/1.503, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.0008495/0.0008496, allocations: 78.44 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.4647/0.4647, allocations: 48.78 MB / 358.8 MB, free: 53.15 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.833e-05/1.835e-05, allocations: 224 / 425.4 MB, free: 8.145 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.128, allocations: 60.26 MB / 485.6 MB, free: 11.73 MB / 379.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4055/0.5336, allocations: 87.81 MB / 0.56 GB, free: 13.16 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002599/0.5339, allocations: 75.95 kB / 0.5601 GB, free: 13.09 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02129/0.5552, allocations: 7.414 MB / 0.5673 GB, free: 5.73 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.5553, allocations: 0 / 0.5673 GB, free: 5.73 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.65e-05/0.5553, allocations: 11.98 kB / 0.5673 GB, free: 5.719 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.0009555/0.5563, allocations: 0.6446 MB / 0.568 GB, free: 5.031 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.5563, allocations: 8.031 kB / 0.568 GB, free: 5.023 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.19e-05/0.5564, allocations: 51.44 kB / 0.568 GB, free: 4.973 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005188/0.5569, allocations: 371.2 kB / 0.5684 GB, free: 4.578 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/0.557, allocations: 8 kB / 0.5684 GB, free: 4.57 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.61e-05/0.557, allocations: 27.91 kB / 0.5684 GB, free: 4.543 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000355/0.5574, allocations: 182.9 kB / 0.5686 GB, free: 4.367 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004194/0.5578, allocations: 258.2 kB / 0.5688 GB, free: 4.102 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.715e-05/0.5578, allocations: 1.125 kB / 0.5688 GB, free: 4.102 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.339e-05/0.5579, allocations: 0 / 0.5688 GB, free: 4.102 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.5579, allocations: 15.94 kB / 0.5688 GB, free: 4.086 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001621/0.5595, allocations: 1.104 MB / 0.5699 GB, free: 2.918 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004113/0.5599, allocations: 249.9 kB / 0.5702 GB, free: 2.664 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001719/0.5601, allocations: 114.1 kB / 0.5703 GB, free: 2.551 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.148e-05/0.5602, allocations: 4.281 kB / 0.5703 GB, free: 2.547 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.293e-05/0.5602, allocations: 34.84 kB / 0.5703 GB, free: 2.504 MB / 395.1 MB Notification: Performance of pre-optimization done (n=34): time 1.573e-06/0.5602, allocations: 0 / 0.5703 GB, free: 2.504 MB / 395.1 MB Notification: Performance of matching and sorting (n=36): time 0.001178/0.5614, allocations: 0.7104 MB / 0.571 GB, free: 1.746 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.638e-05/0.5614, allocations: 59.39 kB / 0.5711 GB, free: 1.676 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003223/0.5618, allocations: 309.2 kB / 0.5713 GB, free: 1.371 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 2.447e-05/0.5618, allocations: 25.7 kB / 0.5714 GB, free: 1.34 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.5619, allocations: 220.5 kB / 0.5716 GB, free: 1.117 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.049e-05/0.562, allocations: 126.1 kB / 0.5717 GB, free: 0.9922 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.38e-05/0.5621, allocations: 3.828 kB / 0.5717 GB, free: 0.9922 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.5622, allocations: 358.8 kB / 0.572 GB, free: 0.6328 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001341/0.5623, allocations: 84.8 kB / 0.5721 GB, free: 0.5508 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001671/0.5625, allocations: 124.2 kB / 0.5722 GB, free: 424 kB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001715/0.5627, allocations: 97.83 kB / 0.5723 GB, free: 328 kB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.5627, allocations: 4 kB / 0.5723 GB, free: 324 kB / 395.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004705/0.5632, allocations: 301.9 kB / 0.5726 GB, free: 16 kB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.5632, allocations: 4 kB / 0.5726 GB, free: 12 kB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.5632, allocations: 0 / 0.5726 GB, free: 12 kB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.391e-05/0.5632, allocations: 7.984 kB / 0.5726 GB, free: 4 kB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007593/0.564, allocations: 148.4 kB / 0.5728 GB, free: 15.86 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000892/0.5649, allocations: 1.293 MB / 0.574 GB, free: 14.45 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002324/0.5652, allocations: 12.17 kB / 0.5741 GB, free: 14.44 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.882e-05/0.5652, allocations: 11.95 kB / 0.5741 GB, free: 14.43 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 48 * 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: 0 * 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: Performance of prepare postOptimizeDAE: time 0.0001189/0.5653, allocations: 112.9 kB / 0.5742 GB, free: 14.31 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003921/0.5657, allocations: 248.9 kB / 0.5744 GB, free: 14.06 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.372e-05/0.5658, allocations: 39.53 kB / 0.5745 GB, free: 14.02 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004474/0.5663, allocations: 295.7 kB / 0.5747 GB, free: 13.73 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.5663, allocations: 4 kB / 0.5747 GB, free: 13.73 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.5663, allocations: 7.953 kB / 0.5747 GB, free: 13.72 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.5663, allocations: 4 kB / 0.5748 GB, free: 13.72 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00093/0.5672, allocations: 0.7013 MB / 0.5754 GB, free: 12.97 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.5672, allocations: 0 / 0.5754 GB, free: 12.97 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004377/0.5677, allocations: 88.45 kB / 0.5755 GB, free: 12.89 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.59e-06/0.5677, allocations: 4 kB / 0.5755 GB, free: 12.88 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.305e-05/0.5677, allocations: 7.984 kB / 0.5755 GB, free: 12.88 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.174e-06/0.5677, allocations: 11.89 kB / 0.5755 GB, free: 12.86 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.5678, allocations: 4 kB / 0.5755 GB, free: 12.86 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005873/0.5683, allocations: 485.5 kB / 0.576 GB, free: 12.37 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001428/0.5685, allocations: 136.6 kB / 0.5761 GB, free: 12.21 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.649e-05/0.5686, allocations: 0 / 0.5761 GB, free: 12.21 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002262/0.5688, allocations: 7.984 kB / 0.5761 GB, free: 12.21 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.502e-05/0.5689, allocations: 27.92 kB / 0.5762 GB, free: 12.18 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.708e-05/0.5689, allocations: 11.83 kB / 0.5762 GB, free: 12.17 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0002334/0.5691, allocations: 243 kB / 0.5764 GB, free: 11.94 MB / 411.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5691, allocations: 0 / 0.5764 GB, free: 11.94 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0003638/0.5695, allocations: 83.94 kB / 0.5765 GB, free: 11.86 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.omega_e_filt,torqueGen_a.y,torqueGen_b.y,secondaryController.powerOffset) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * 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.0008815/0.5704, allocations: 1.03 MB / 0.5775 GB, free: 10.8 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0004907/0.5709, allocations: 251.7 kB / 0.5777 GB, free: 10.56 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.5709, allocations: 4 kB / 0.5777 GB, free: 10.55 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001724/0.5711, allocations: 124.5 kB / 0.5779 GB, free: 10.43 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004601/0.5716, allocations: 63.16 kB / 0.5779 GB, free: 10.38 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001871/0.5734, allocations: 1.017 MB / 0.5789 GB, free: 9.332 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003517/0.5738, allocations: 0.8391 MB / 0.5797 GB, free: 8.469 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.0001836/0.574, allocations: 43.25 kB / 0.5798 GB, free: 8.426 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002161/0.5742, allocations: 153.1 kB / 0.5799 GB, free: 8.277 MB / 411.1 MB Notification: Performance of SimCode: time 2.51e-07/0.5742, allocations: 4 kB / 0.5799 GB, free: 8.273 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02717/0.6014, allocations: 7.147 MB / 0.5869 GB, free: 1.168 MB / 411.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001634/0.6016, allocations: 149.5 kB / 0.5871 GB, free: 0.9648 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.186/2.788, allocations: 0 / 0.5871 GB, free: 0.9648 MB / 411.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1)