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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 106.6 kB / 16.94 MB, free: 6.309 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.001093/0.001093, allocations: 187.4 kB / 17.87 MB, free: 5.391 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.175/1.175, allocations: 205.1 MB / 223.8 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2306/0.2306, allocations: 48.84 MB / 319.9 MB, free: 11.08 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.001283/0.001283, allocations: 72.45 kB / 390.2 MB, free: 48.83 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0744/0.0757, allocations: 59.15 MB / 449.4 MB, free: 9.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.003673/0.0794, allocations: 3.129 MB / 452.5 MB, free: 6.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001136/0.08055, allocations: 0.8421 MB / 453.4 MB, free: 5.629 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001446/0.08071, allocations: 4 kB / 453.4 MB, free: 5.625 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001465/0.08086, allocations: 59.27 kB / 453.4 MB, free: 5.566 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003037/0.08118, allocations: 154.7 kB / 453.6 MB, free: 5.414 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002228/0.08141, allocations: 119.8 kB / 453.7 MB, free: 5.297 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004407/0.08186, allocations: 0.5256 MB / 454.2 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002124/0.08208, allocations: 137.7 kB / 454.4 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001908/0.08228, allocations: 207.1 kB / 454.6 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002339/0.08252, allocations: 222.9 kB / 454.8 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.856e-05/0.08259, allocations: 36 kB / 454.8 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.616e-05/0.08268, allocations: 40 kB / 454.8 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.536e-05/0.08275, allocations: 99.53 kB / 454.9 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001594/0.08291, allocations: 226.7 kB / 455.2 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003621/0.08328, allocations: 446.2 kB / 455.6 MB, free: 3.379 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.08329, allocations: 0 / 455.6 MB, free: 3.379 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.0833, allocations: 0 / 455.6 MB, free: 3.379 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.08331, allocations: 0 / 455.6 MB, free: 3.379 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001136/0.08445, allocations: 0.7865 MB / 456.4 MB, free: 2.543 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.239e-05/0.08449, allocations: 11.89 kB / 456.4 MB, free: 2.531 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.857e-05/0.08455, allocations: 74.72 kB / 456.5 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001045/0.08466, allocations: 52.28 kB / 456.5 MB, free: 2.398 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003817/0.08505, allocations: 366 kB / 456.9 MB, free: 2 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.021e-05/0.08508, allocations: 25.03 kB / 456.9 MB, free: 1.973 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.324e-05/0.08514, allocations: 36.38 kB / 456.9 MB, free: 1.938 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004384/0.08558, allocations: 318 kB / 457.3 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.08561, allocations: 7.844 kB / 457.3 MB, free: 1.605 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.377e-05/0.08564, allocations: 16 kB / 457.3 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.08565, allocations: 8 kB / 457.3 MB, free: 1.582 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003664/0.08602, allocations: 222.4 kB / 457.5 MB, free: 1.363 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001517/0.08755, allocations: 1.156 MB / 458.7 MB, free: 144 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004312/0.08799, allocations: 255.6 kB / 458.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00019/0.08819, allocations: 133.4 kB / 459 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.86e-05/0.08823, allocations: 4.281 kB / 459 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.83e-05/0.08825, allocations: 34.84 kB / 459.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.413e-06/0.08826, allocations: 0 / 459.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.001783/0.09005, allocations: 1.08 MB / 460.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.193e-05/0.09009, allocations: 59.34 kB / 460.2 MB, free: 14.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003314/0.09043, allocations: 389.5 kB / 460.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.39e-05/0.09046, allocations: 33.7 kB / 460.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.09058, allocations: 220.6 kB / 460.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.742e-05/0.09066, allocations: 130.1 kB / 461 MB, free: 13.69 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.636e-05/0.09076, allocations: 70.03 kB / 461 MB, free: 13.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.09087, allocations: 354.8 kB / 461.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001583/0.09103, allocations: 92.83 kB / 461.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001833/0.09122, allocations: 148.6 kB / 461.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003485/0.09158, allocations: 252 kB / 461.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.09159, allocations: 0 / 461.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004692/0.09206, allocations: 348.8 kB / 462.2 MB, free: 12.4 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.09208, allocations: 8 kB / 462.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.09209, allocations: 0 / 462.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.09211, allocations: 4 kB / 462.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006303/0.09275, allocations: 139.8 kB / 462.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009752/0.09374, allocations: 1.449 MB / 463.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002065/0.09395, allocations: 16.02 kB / 463.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.106e-05/0.09398, allocations: 12 kB / 463.8 MB, free: 10.63 MB / 350.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001364/0.09413, allocations: 153.6 kB / 464 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.734e-05/0.0942, allocations: 43.47 kB / 464 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004644/0.09467, allocations: 325.9 kB / 464.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.09468, allocations: 4 kB / 464.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-06/0.09469, allocations: 3.938 kB / 464.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.0947, allocations: 0 / 464.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009216/0.09563, allocations: 0.7908 MB / 465.1 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.09564, allocations: 0 / 465.1 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003703/0.09602, allocations: 75.91 kB / 465.2 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.09603, allocations: 0 / 465.2 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.476e-05/0.09606, allocations: 15.98 kB / 465.2 MB, free: 9.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.09607, allocations: 4 kB / 465.2 MB, free: 9.156 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.09607, allocations: 0 / 465.2 MB, free: 9.156 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006127/0.09669, allocations: 0.5115 MB / 465.7 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000128/0.09683, allocations: 136.5 kB / 465.9 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.392e-05/0.09688, allocations: 12 kB / 465.9 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000213/0.0971, allocations: 11.98 kB / 465.9 MB, free: 8.449 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.168e-05/0.09715, allocations: 23.97 kB / 465.9 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.508e-05/0.09718, allocations: 11.94 kB / 465.9 MB, free: 8.414 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002429/0.09742, allocations: 271.2 kB / 466.2 MB, free: 8.148 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09743, allocations: 0 / 466.2 MB, free: 8.148 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003128/0.09775, allocations: 87.94 kB / 466.3 MB, free: 8.062 MB / 350.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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008373/0.09859, allocations: 1.056 MB / 467.3 MB, free: 6.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006013/0.0992, allocations: 284.1 kB / 467.6 MB, free: 6.703 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.09922, allocations: 0 / 467.6 MB, free: 6.703 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001815/0.0994, allocations: 131.7 kB / 467.7 MB, free: 6.574 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000445/0.09986, allocations: 92.47 kB / 467.8 MB, free: 6.488 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004461/0.1043, allocations: 4.082 MB / 471.9 MB, free: 2.297 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003117/0.1047, allocations: 0.8274 MB / 472.7 MB, free: 1.445 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001404/0.1048, allocations: 43.25 kB / 472.8 MB, free: 1.402 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001948/0.105, allocations: 155.4 kB / 472.9 MB, free: 1.25 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.105, allocations: 4 kB / 472.9 MB, free: 1.246 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02376/0.1288, allocations: 8.44 MB / 481.4 MB, free: 8.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.529/5.657, allocations: 0.875 kB / 481.4 MB, free: 8.73 MB / 366.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/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)