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.000815/0.0008148, allocations: 91.14 kB / 16.65 MB, free: 6.535 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.0008715/0.0008716, allocations: 177.5 kB / 17.56 MB, free: 6.18 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.118/1.118, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2237/0.2237, allocations: 48.78 MB / 320.8 MB, free: 11.12 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.0004412/0.0004412, allocations: 13.48 kB / 391.9 MB, free: 50.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07299/0.07344, allocations: 60.27 MB / 452.2 MB, free: 9.086 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.002812/0.07628, allocations: 3.019 MB / 455.2 MB, free: 6.043 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001278/0.07757, allocations: 0.8655 MB / 456.1 MB, free: 5.168 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001592/0.07775, allocations: 4 kB / 456.1 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001136/0.07787, allocations: 43.56 kB / 456.1 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002917/0.07817, allocations: 131 kB / 456.2 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000192/0.07837, allocations: 107.8 kB / 456.3 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000414/0.07879, allocations: 0.4945 MB / 456.8 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002022/0.079, allocations: 129.4 kB / 457 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001865/0.07919, allocations: 175 kB / 457.1 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002012/0.07941, allocations: 202.9 kB / 457.3 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.351e-05/0.07946, allocations: 20 kB / 457.3 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.664e-05/0.07953, allocations: 23.98 kB / 457.4 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.466e-05/0.07959, allocations: 71.56 kB / 457.4 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001611/0.07976, allocations: 236.4 kB / 457.7 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003263/0.08009, allocations: 406.2 kB / 458.1 MB, free: 3.141 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.766e-06/0.0801, allocations: 0 / 458.1 MB, free: 3.141 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.22e-07/0.08011, allocations: 0 / 458.1 MB, free: 3.141 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.598e-06/0.08012, allocations: 0 / 458.1 MB, free: 3.141 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.00105/0.08118, allocations: 0.7167 MB / 458.8 MB, free: 2.371 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.129e-05/0.08122, allocations: 8.031 kB / 458.8 MB, free: 2.363 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.268e-05/0.08128, allocations: 70.72 kB / 458.9 MB, free: 2.285 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001128/0.0814, allocations: 56.28 kB / 458.9 MB, free: 2.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003705/0.08178, allocations: 358 kB / 459.3 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.893e-05/0.08181, allocations: 25.03 kB / 459.3 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.54e-05/0.08188, allocations: 44.27 kB / 459.3 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004581/0.08234, allocations: 322 kB / 459.6 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.08236, allocations: 7.875 kB / 459.7 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.567e-05/0.08239, allocations: 16 kB / 459.7 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.08241, allocations: 8 kB / 459.7 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000377/0.08279, allocations: 210.5 kB / 459.9 MB, free: 1.211 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001551/0.08435, allocations: 1.175 MB / 461.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004186/0.08478, allocations: 263.6 kB / 461.3 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001912/0.08498, allocations: 129.7 kB / 461.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.447e-05/0.08502, allocations: 12.2 kB / 461.5 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.85e-05/0.08504, allocations: 34.84 kB / 461.5 MB, free: 15.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.263e-06/0.08505, allocations: 0 / 461.5 MB, free: 15.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.00186/0.08692, allocations: 1.096 MB / 462.6 MB, free: 14.33 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.772e-05/0.08696, allocations: 59.39 kB / 462.6 MB, free: 14.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003502/0.08731, allocations: 381.6 kB / 463 MB, free: 13.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.225e-05/0.08735, allocations: 41.64 kB / 463.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.08748, allocations: 216.6 kB / 463.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.444e-05/0.08757, allocations: 134 kB / 463.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.512e-05/0.08762, allocations: 37.7 kB / 463.4 MB, free: 13.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.08774, allocations: 354.8 kB / 463.8 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001636/0.08791, allocations: 88.84 kB / 463.9 MB, free: 13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001963/0.08811, allocations: 156.5 kB / 464 MB, free: 12.83 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003669/0.08849, allocations: 260 kB / 464.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.0885, allocations: 4 kB / 464.3 MB, free: 12.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004932/0.089, allocations: 341 kB / 464.6 MB, free: 12.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.156e-05/0.08902, allocations: 4 kB / 464.6 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.08903, allocations: 0 / 464.6 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.08905, allocations: 7.938 kB / 464.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000631/0.08968, allocations: 155.9 kB / 464.8 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008824/0.09057, allocations: 1.35 MB / 466.1 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002223/0.09081, allocations: 15.91 kB / 466.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.307e-05/0.09084, allocations: 16 kB / 466.2 MB, free: 10.53 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.0001358/0.09098, allocations: 157.7 kB / 466.3 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.117e-05/0.09105, allocations: 43.52 kB / 466.4 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004732/0.09153, allocations: 325.8 kB / 466.7 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.09154, allocations: 4 kB / 466.7 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-06/0.09155, allocations: 0 / 466.7 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.09156, allocations: 3.984 kB / 466.7 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009246/0.09249, allocations: 0.795 MB / 467.5 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.0925, allocations: 0 / 467.5 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003723/0.09288, allocations: 83.89 kB / 467.6 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.09289, allocations: 0 / 467.6 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.028e-05/0.09291, allocations: 8 kB / 467.6 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.09292, allocations: 0 / 467.6 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.09292, allocations: 0 / 467.6 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006343/0.09356, allocations: 0.5188 MB / 468.1 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001143/0.09369, allocations: 136.6 kB / 468.2 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.103e-05/0.09373, allocations: 7.984 kB / 468.2 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002101/0.09395, allocations: 11.91 kB / 468.2 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.563e-05/0.094, allocations: 28 kB / 468.3 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.117e-05/0.09403, allocations: 8 kB / 468.3 MB, free: 8.305 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000236/0.09427, allocations: 267.2 kB / 468.5 MB, free: 8.047 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09428, allocations: 4 kB / 468.5 MB, free: 8.043 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003042/0.09459, allocations: 84 kB / 468.6 MB, free: 7.961 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.0008584/0.09545, allocations: 1.07 MB / 469.7 MB, free: 6.867 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005708/0.09603, allocations: 292 kB / 470 MB, free: 6.582 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.09604, allocations: 0 / 470 MB, free: 6.582 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001881/0.09624, allocations: 135.9 kB / 470.1 MB, free: 6.449 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004798/0.09673, allocations: 85.48 kB / 470.2 MB, free: 6.367 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004563/0.1013, allocations: 4.305 MB / 474.5 MB, free: 1.953 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000319/0.1016, allocations: 0.8312 MB / 475.3 MB, free: 1.098 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001571/0.1018, allocations: 51.25 kB / 475.4 MB, free: 1.047 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001972/0.102, allocations: 155.4 kB / 475.5 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.102, allocations: 0 / 475.5 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01654/0.1186, allocations: 7.952 MB / 483.5 MB, free: 8.93 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002003/0.1188, allocations: 199 kB / 483.7 MB, free: 8.676 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.699/1.817, allocations: 0 / 483.7 MB, free: 8.676 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)