Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.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.TestElectrical6,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical6,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6",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.001133/0.001133, allocations: 174.4 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.498/1.498, allocations: 205.2 MB / 219.4 MB, free: 14.26 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008833/0.0008831, allocations: 82.66 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3478/0.3478, allocations: 48.79 MB / 364.4 MB, free: 6.863 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.375e-05/3.385e-05, allocations: 7.984 kB / 432.6 MB, free: 16.67 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1605/0.1605, allocations: 60.25 MB / 492.8 MB, free: 4.289 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4353/0.5959, allocations: 87.88 MB / 0.5671 GB, free: 1.16 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002375/0.5962, allocations: 75.77 kB / 0.5671 GB, free: 1.125 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02026/0.6165, allocations: 6.904 MB / 0.5739 GB, free: 11.34 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.6166, allocations: 0 / 0.5739 GB, free: 11.34 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.846e-05/0.6166, allocations: 8 kB / 0.5739 GB, free: 11.33 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001169/0.6178, allocations: 0.6186 MB / 0.5745 GB, free: 10.69 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.382e-05/0.6178, allocations: 8.031 kB / 0.5745 GB, free: 10.68 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.222e-05/0.6179, allocations: 67.22 kB / 0.5746 GB, free: 10.62 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001109/0.6181, allocations: 63.52 kB / 0.5746 GB, free: 10.56 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006529/0.6187, allocations: 352.2 kB / 0.575 GB, free: 10.21 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.018e-05/0.6188, allocations: 23.47 kB / 0.575 GB, free: 10.2 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.781e-05/0.6189, allocations: 30.5 kB / 0.575 GB, free: 10.18 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005448/0.6194, allocations: 285.7 kB / 0.5753 GB, free: 9.965 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.185e-05/0.6194, allocations: 3.984 kB / 0.5753 GB, free: 9.961 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.309e-05/0.6195, allocations: 14.31 kB / 0.5753 GB, free: 9.957 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.608e-05/0.6195, allocations: 15.95 kB / 0.5753 GB, free: 9.941 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003819/0.6199, allocations: 185.3 kB / 0.5755 GB, free: 9.812 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001874/0.6218, allocations: 1.118 MB / 0.5766 GB, free: 8.824 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003855/0.6222, allocations: 243.2 kB / 0.5768 GB, free: 8.652 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001663/0.6224, allocations: 111.3 kB / 0.5769 GB, free: 8.582 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.314e-05/0.6224, allocations: 11.97 kB / 0.5769 GB, free: 8.57 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.13e-05/0.6224, allocations: 42.44 kB / 0.577 GB, free: 8.523 MB / 394.7 MB Notification: Performance of pre-optimization done (n=32): time 1.433e-06/0.6224, allocations: 0 / 0.577 GB, free: 8.523 MB / 394.7 MB Notification: Performance of matching and sorting (n=34): time 0.001234/0.6237, allocations: 0.7361 MB / 0.5777 GB, free: 7.863 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.074e-05/0.6238, allocations: 59.39 kB / 0.5778 GB, free: 7.793 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003407/0.6241, allocations: 312.2 kB / 0.5781 GB, free: 7.539 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.874e-05/0.6241, allocations: 33.39 kB / 0.5781 GB, free: 7.508 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.6243, allocations: 209.9 kB / 0.5783 GB, free: 7.355 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001067/0.6244, allocations: 121.8 kB / 0.5784 GB, free: 7.25 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.462e-05/0.6244, allocations: 7.625 kB / 0.5784 GB, free: 7.25 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.6246, allocations: 349.8 kB / 0.5787 GB, free: 6.914 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001528/0.6247, allocations: 79.69 kB / 0.5788 GB, free: 6.863 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001691/0.6249, allocations: 124 kB / 0.5789 GB, free: 6.762 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001753/0.6251, allocations: 114.1 kB / 0.579 GB, free: 6.684 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-06/0.6251, allocations: 0 / 0.579 GB, free: 6.684 MB / 394.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000918/0.626, allocations: 422 kB / 0.5794 GB, free: 6.348 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.6261, allocations: 8 kB / 0.5795 GB, free: 6.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.6261, allocations: 0 / 0.5795 GB, free: 6.34 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007437/0.6268, allocations: 150.6 kB / 0.5796 GB, free: 6.211 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004218/0.6273, allocations: 87.27 kB / 0.5797 GB, free: 6.129 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001758/0.629, allocations: 1.994 MB / 0.5816 GB, free: 4.055 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000216/0.6293, allocations: 15.19 kB / 0.5816 GB, free: 4.047 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.022e-05/0.6293, allocations: 15.31 kB / 0.5817 GB, free: 4.035 MB / 394.7 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 (34): * Single equations (assignments): 32 * 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 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001114/0.6294, allocations: 126.1 kB / 0.5818 GB, free: 3.914 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.819e-05/0.6295, allocations: 39.53 kB / 0.5818 GB, free: 3.875 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004898/0.63, allocations: 307.4 kB / 0.5821 GB, free: 3.656 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.63, allocations: 4 kB / 0.5821 GB, free: 3.652 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-06/0.63, allocations: 7.938 kB / 0.5821 GB, free: 3.645 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.63, allocations: 3.984 kB / 0.5821 GB, free: 3.641 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009727/0.631, allocations: 0.7499 MB / 0.5829 GB, free: 2.996 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.631, allocations: 4 kB / 0.5829 GB, free: 2.992 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004044/0.6314, allocations: 83.45 kB / 0.5829 GB, free: 2.914 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.6315, allocations: 0 / 0.5829 GB, free: 2.914 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.557e-05/0.6315, allocations: 7.812 kB / 0.5829 GB, free: 2.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.6315, allocations: 0 / 0.5829 GB, free: 2.91 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.6315, allocations: 4 kB / 0.583 GB, free: 2.906 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006218/0.6321, allocations: 498.7 kB / 0.5834 GB, free: 2.512 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001536/0.6323, allocations: 138.3 kB / 0.5836 GB, free: 2.367 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.272e-05/0.6323, allocations: 10.8 kB / 0.5836 GB, free: 2.363 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002083/0.6326, allocations: 7.5 kB / 0.5836 GB, free: 2.359 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.137e-05/0.6326, allocations: 23.16 kB / 0.5836 GB, free: 2.34 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-05/0.6327, allocations: 7.5 kB / 0.5836 GB, free: 2.336 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002748/0.6329, allocations: 250.5 kB / 0.5838 GB, free: 2.137 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6329, allocations: 0 / 0.5838 GB, free: 2.137 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003586/0.6333, allocations: 85.88 kB / 0.5839 GB, free: 2.062 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (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) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 36 * 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.001033/0.6343, allocations: 1.039 MB / 0.5849 GB, free: 1.109 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007358/0.6351, allocations: 287 kB / 0.5852 GB, free: 0.8945 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.6351, allocations: 0 / 0.5852 GB, free: 0.8945 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001815/0.6353, allocations: 118.5 kB / 0.5853 GB, free: 0.8086 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004792/0.6358, allocations: 79.22 kB / 0.5854 GB, free: 0.7539 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002015/0.6378, allocations: 0.9796 MB / 0.5864 GB, free: 15.81 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004741/0.6383, allocations: 0.8228 MB / 0.5872 GB, free: 14.96 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001721/0.6385, allocations: 51.25 kB / 0.5872 GB, free: 14.91 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002007/0.6387, allocations: 137.1 kB / 0.5873 GB, free: 14.87 MB / 410.7 MB Notification: Performance of SimCode: time 6.12e-07/0.6387, allocations: 0 / 0.5873 GB, free: 14.87 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02201/0.6607, allocations: 7.601 MB / 0.5948 GB, free: 7.273 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001823/0.6609, allocations: 183 kB / 0.5949 GB, free: 7.047 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.179/2.84, allocations: 0 / 0.5949 GB, free: 7.047 MB / 410.7 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6_fmu --startTime=0 --stopTime=40 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe 2>&1)