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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 91.67 kB / 20.68 MB, free: 3.871 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 166 kB / 23.95 MB, free: 0.5977 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8198/0.8198, allocations: 158.6 MB / 185.7 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo): time 0.1867/0.1867, allocations: 36.34 MB / 274.3 MB, free: 10.9 MB / 266.7 MB " [Timeout remaining time 180] Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.384e-06/2.384e-06, allocations: 0 / 414.3 MB, free: 6.102 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.54e-05/1.778e-05, allocations: 2.281 kB / 414.3 MB, free: 6.098 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.00401/0.004028, allocations: 2.883 MB / 417.2 MB, free: 3.195 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001578/0.005606, allocations: 0.8107 MB / 418 MB, free: 2.375 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001737/0.00578, allocations: 11.94 kB / 418 MB, free: 2.363 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001593/0.005939, allocations: 55.31 kB / 418.1 MB, free: 2.309 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002898/0.006229, allocations: 166.5 kB / 418.2 MB, free: 2.145 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002052/0.006434, allocations: 123.8 kB / 418.4 MB, free: 2.023 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004145/0.006849, allocations: 0.5448 MB / 418.9 MB, free: 1.477 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002398/0.007088, allocations: 102 kB / 419 MB, free: 1.371 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003184/0.007407, allocations: 303.2 kB / 419.3 MB, free: 1.074 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001737/0.007581, allocations: 159.4 kB / 419.5 MB, free: 0.918 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.173e-05/0.007622, allocations: 36 kB / 419.5 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.716e-05/0.007689, allocations: 36 kB / 419.5 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.334e-05/0.007743, allocations: 99.52 kB / 419.6 MB, free: 0.75 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001345/0.007877, allocations: 159.5 kB / 419.8 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003376/0.008215, allocations: 430.4 kB / 420.2 MB, free: 176 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.145e-06/0.008217, allocations: 0 / 420.2 MB, free: 176 kB / 346.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.008218, allocations: 4 kB / 420.2 MB, free: 172 kB / 346.7 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.008223, allocations: 0 / 420.2 MB, free: 172 kB / 346.7 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.001092/0.009316, allocations: 0.7343 MB / 420.9 MB, free: 15.4 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.009352, allocations: 8.031 kB / 421 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.119e-05/0.009404, allocations: 62.72 kB / 421 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.05e-05/0.009494, allocations: 56.61 kB / 421.1 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000367/0.009861, allocations: 319.7 kB / 421.4 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.882e-05/0.00988, allocations: 25.03 kB / 421.4 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.402e-05/0.009924, allocations: 36.38 kB / 421.4 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00034/0.01026, allocations: 318.4 kB / 421.8 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.01028, allocations: 4.172 kB / 421.8 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.032e-05/0.0103, allocations: 16.12 kB / 421.8 MB, free: 14.53 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.503e-06/0.0103, allocations: 4 kB / 421.8 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002717/0.01058, allocations: 214.5 kB / 422 MB, free: 14.31 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00111/0.01169, allocations: 1.03 MB / 423 MB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003339/0.01202, allocations: 251.5 kB / 423.3 MB, free: 12.97 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001331/0.01215, allocations: 125.2 kB / 423.4 MB, free: 12.84 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.072e-05/0.01217, allocations: 8.281 kB / 423.4 MB, free: 12.84 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.661e-05/0.01219, allocations: 30.84 kB / 423.4 MB, free: 12.8 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 1.262e-06/0.01219, allocations: 0 / 423.4 MB, free: 12.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=35): time 0.001249/0.01344, allocations: 0.8691 MB / 424.3 MB, free: 11.89 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.868e-05/0.01347, allocations: 55.41 kB / 424.3 MB, free: 11.83 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002845/0.01375, allocations: 377.7 kB / 424.7 MB, free: 11.45 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.892e-05/0.01377, allocations: 33.7 kB / 424.8 MB, free: 11.41 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.01388, allocations: 224.9 kB / 425 MB, free: 11.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.043e-05/0.01394, allocations: 130.9 kB / 425.1 MB, free: 11.05 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.986e-05/0.01401, allocations: 74.19 kB / 425.2 MB, free: 10.98 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.846e-05/0.01409, allocations: 354.7 kB / 425.5 MB, free: 10.62 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/0.01421, allocations: 100.9 kB / 425.6 MB, free: 10.52 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001366/0.01435, allocations: 145.2 kB / 425.8 MB, free: 10.36 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002651/0.01462, allocations: 255.9 kB / 426 MB, free: 10.1 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.01462, allocations: 0 / 426 MB, free: 10.1 MB / 362.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0003828/0.015, allocations: 349.2 kB / 426.3 MB, free: 9.75 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.01501, allocations: 8 kB / 426.4 MB, free: 9.742 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.01502, allocations: 0 / 426.4 MB, free: 9.742 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.01503, allocations: 4 kB / 426.4 MB, free: 9.738 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003705/0.0154, allocations: 143.8 kB / 426.5 MB, free: 9.598 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009308/0.01633, allocations: 1.338 MB / 427.8 MB, free: 8.141 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000119/0.01645, allocations: 19.95 kB / 427.9 MB, free: 8.121 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.577e-05/0.01647, allocations: 12 kB / 427.9 MB, free: 8.109 MB / 362.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 () * 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.0001109/0.01658, allocations: 153.7 kB / 428 MB, free: 7.949 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.427e-05/0.01662, allocations: 43.72 kB / 428.1 MB, free: 7.906 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003162/0.01694, allocations: 321.9 kB / 428.4 MB, free: 7.586 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.01694, allocations: 4 kB / 428.4 MB, free: 7.582 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-06/0.01694, allocations: 0 / 428.4 MB, free: 7.582 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.01695, allocations: 0 / 428.4 MB, free: 7.582 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006803/0.01763, allocations: 0.7284 MB / 429.1 MB, free: 6.805 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.01763, allocations: 0 / 429.1 MB, free: 6.805 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002177/0.01785, allocations: 83.84 kB / 429.2 MB, free: 6.723 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.01785, allocations: 4 kB / 429.2 MB, free: 6.719 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.66e-05/0.01787, allocations: 7.984 kB / 429.2 MB, free: 6.711 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.01787, allocations: 4 kB / 429.2 MB, free: 6.707 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.01787, allocations: 7.938 kB / 429.2 MB, free: 6.699 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004471/0.01832, allocations: 0.5049 MB / 429.7 MB, free: 6.176 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.664e-05/0.0184, allocations: 63.67 kB / 429.8 MB, free: 6.113 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.534e-05/0.01843, allocations: 4 kB / 429.8 MB, free: 6.109 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.01853, allocations: 8 kB / 429.8 MB, free: 6.102 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.795e-05/0.01858, allocations: 27.98 kB / 429.8 MB, free: 6.074 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.096e-05/0.01859, allocations: 12 kB / 429.8 MB, free: 6.062 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001802/0.01877, allocations: 267.2 kB / 430.1 MB, free: 5.805 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01877, allocations: 4 kB / 430.1 MB, free: 5.801 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002292/0.019, allocations: 84 kB / 430.2 MB, free: 5.719 MB / 362.7 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.0006197/0.01962, allocations: 1.06 MB / 431.2 MB, free: 4.633 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004124/0.02004, allocations: 275.9 kB / 431.5 MB, free: 4.363 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.02004, allocations: 0 / 431.5 MB, free: 4.363 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000125/0.02016, allocations: 119.8 kB / 431.6 MB, free: 4.246 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003232/0.02048, allocations: 93.38 kB / 431.7 MB, free: 4.156 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003466/0.02395, allocations: 3.848 MB / 435.6 MB, free: 204 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001318/0.02408, allocations: 232.4 kB / 435.8 MB, free: 15.95 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001077/0.02419, allocations: 47.25 kB / 435.8 MB, free: 15.91 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001582/0.02435, allocations: 156.8 kB / 436 MB, free: 15.75 MB / 378.7 MB Notification: Performance of SimCode: time 5e-07/0.02435, allocations: 0 / 436 MB, free: 15.75 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01957/0.04392, allocations: 9.665 MB / 445.7 MB, free: 6.031 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.392/7.436, allocations: 4.062 kB / 445.7 MB, free: 6.027 MB / 378.7 MB " [Timeout remaining time 652] (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 --stepSize=0.12 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.450911961495876] Failed to read output from testmodel.py, exit status != 0: 7.520850183442235 7.697560036 7.687227121 Calling exit ...