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.001133/0.001133, allocations: 109.3 kB / 16.62 MB, free: 6.812 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.001105/0.001105, allocations: 186 kB / 17.55 MB, free: 5.934 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.162/1.162, allocations: 205.1 MB / 223.4 MB, free: 12.44 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2261/0.2261, allocations: 48.83 MB / 319.6 MB, free: 11.27 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.001381/0.001382, allocations: 67.17 kB / 389.6 MB, free: 48.97 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07552/0.07691, allocations: 59.16 MB / 448.8 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.003727/0.08068, allocations: 3.401 MB / 452.2 MB, free: 6.609 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001117/0.08181, allocations: 0.8655 MB / 453.1 MB, free: 5.734 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001619/0.08198, allocations: 11.94 kB / 453.1 MB, free: 5.723 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001457/0.08214, allocations: 39.62 kB / 453.1 MB, free: 5.684 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002878/0.08244, allocations: 131 kB / 453.2 MB, free: 5.555 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000215/0.08266, allocations: 111.8 kB / 453.4 MB, free: 5.445 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000431/0.0831, allocations: 0.5101 MB / 453.9 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002274/0.08334, allocations: 149.7 kB / 454 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002023/0.08355, allocations: 207.1 kB / 454.2 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002118/0.08377, allocations: 214.9 kB / 454.4 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.772e-05/0.08382, allocations: 39.94 kB / 454.5 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.215e-05/0.08391, allocations: 40 kB / 454.5 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.535e-05/0.08398, allocations: 95.59 kB / 454.6 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001637/0.08415, allocations: 238.7 kB / 454.8 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003457/0.0845, allocations: 426.3 kB / 455.2 MB, free: 3.547 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.08451, allocations: 0 / 455.2 MB, free: 3.547 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.554e-06/0.08452, allocations: 0 / 455.2 MB, free: 3.547 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.712e-06/0.08453, allocations: 3.938 kB / 455.3 MB, free: 3.543 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.00116/0.0857, allocations: 0.7827 MB / 456 MB, free: 2.711 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.08574, allocations: 15.89 kB / 456 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.992e-05/0.0858, allocations: 66.72 kB / 456.1 MB, free: 2.621 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001073/0.08591, allocations: 56.28 kB / 456.2 MB, free: 2.566 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003521/0.08627, allocations: 366 kB / 456.5 MB, free: 2.168 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.389e-05/0.0863, allocations: 29.03 kB / 456.6 MB, free: 2.137 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.517e-05/0.08637, allocations: 40.31 kB / 456.6 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004526/0.08682, allocations: 318 kB / 456.9 MB, free: 1.773 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.08685, allocations: 3.906 kB / 456.9 MB, free: 1.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.793e-05/0.08688, allocations: 16 kB / 456.9 MB, free: 1.754 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.08689, allocations: 8 kB / 456.9 MB, free: 1.746 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003549/0.08725, allocations: 218.4 kB / 457.1 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001502/0.08876, allocations: 1.168 MB / 458.3 MB, free: 304 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000426/0.0892, allocations: 263.9 kB / 458.6 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001945/0.08941, allocations: 125.4 kB / 458.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.995e-05/0.08945, allocations: 4.281 kB / 458.7 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.138e-05/0.08947, allocations: 42.84 kB / 458.7 MB, free: 15.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.323e-06/0.08948, allocations: 4 kB / 458.7 MB, free: 15.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.001866/0.09135, allocations: 1.072 MB / 459.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.432e-05/0.0914, allocations: 55.41 kB / 459.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003364/0.09174, allocations: 389.5 kB / 460.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.363e-05/0.09177, allocations: 33.7 kB / 460.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.09189, allocations: 220.6 kB / 460.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.906e-05/0.09198, allocations: 134.1 kB / 460.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001003/0.09209, allocations: 78.03 kB / 460.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.09219, allocations: 350.8 kB / 461 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001661/0.09237, allocations: 92.83 kB / 461.1 MB, free: 13.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001791/0.09255, allocations: 144.6 kB / 461.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003401/0.0929, allocations: 252 kB / 461.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.09291, allocations: 4 kB / 461.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004639/0.09338, allocations: 344.8 kB / 461.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.0934, allocations: 7.984 kB / 461.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.09342, allocations: 4.125 kB / 461.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.09343, allocations: 4 kB / 461.9 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006626/0.0941, allocations: 139.8 kB / 462 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009566/0.09507, allocations: 1.441 MB / 463.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002195/0.0953, allocations: 20.08 kB / 463.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.07e-05/0.09533, allocations: 12 kB / 463.5 MB, free: 10.78 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.0001361/0.09547, allocations: 157.6 kB / 463.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.395e-05/0.09554, allocations: 43.47 kB / 463.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004625/0.09601, allocations: 325.9 kB / 464 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.09602, allocations: 4 kB / 464 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.09604, allocations: 8 kB / 464 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.09605, allocations: 0 / 464 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009072/0.09696, allocations: 0.783 MB / 464.8 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.09697, allocations: 0 / 464.8 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003886/0.09737, allocations: 75.91 kB / 464.9 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.09738, allocations: 4 kB / 464.9 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.3e-05/0.09741, allocations: 11.98 kB / 464.9 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.09742, allocations: 4 kB / 464.9 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.09742, allocations: 4 kB / 464.9 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006016/0.09803, allocations: 0.5076 MB / 465.4 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001166/0.09816, allocations: 140.5 kB / 465.5 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.49e-05/0.09821, allocations: 4 kB / 465.5 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002221/0.09843, allocations: 11.98 kB / 465.6 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.406e-05/0.0985, allocations: 23.97 kB / 465.6 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.524e-05/0.09852, allocations: 12 kB / 465.6 MB, free: 8.566 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002306/0.09875, allocations: 267.2 kB / 465.9 MB, free: 8.309 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09876, allocations: 0 / 465.9 MB, free: 8.309 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000321/0.09909, allocations: 91.94 kB / 465.9 MB, free: 8.219 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.0008438/0.09994, allocations: 1.06 MB / 467 MB, free: 7.133 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007037/0.1007, allocations: 299.9 kB / 467.3 MB, free: 6.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.1007, allocations: 0 / 467.3 MB, free: 6.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001861/0.1009, allocations: 135.7 kB / 467.4 MB, free: 6.707 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004988/0.1014, allocations: 92.09 kB / 467.5 MB, free: 6.621 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004437/0.1058, allocations: 4.195 MB / 471.7 MB, free: 2.316 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002877/0.1061, allocations: 0.8274 MB / 472.5 MB, free: 1.465 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001724/0.1063, allocations: 59.16 kB / 472.6 MB, free: 1.406 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001972/0.1065, allocations: 155.3 kB / 472.8 MB, free: 1.254 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1065, allocations: 0 / 472.8 MB, free: 1.254 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01858/0.1251, allocations: 8.321 MB / 481.1 MB, free: 8.906 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002032/0.1253, allocations: 207.9 kB / 481.3 MB, free: 8.645 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.735/1.86, allocations: 0 / 481.3 MB, free: 8.645 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)