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/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.001499/0.001499, allocations: 112.2 kB / 21.22 MB, free: 0.75 MB / 14.72 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.001731/0.001731, allocations: 205.2 kB / 24.52 MB, free: 4.156 MB / 14.72 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 1.341/1.341, allocations: 207.6 MB / 235.3 MB, free: 10.02 MB / 190.1 MB " [Timeout remaining time 178] 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.2786/0.2786, allocations: 49.56 MB / 337.1 MB, free: 4.211 MB / 270.1 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.TestElectrical6,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical6,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002053/0.002053, allocations: 71.89 kB / 477.1 MB, free: 12.96 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1071, allocations: 62.42 MB / 0.5269 GB, free: 14.35 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.00421/0.1113, allocations: 2.981 MB / 0.5298 GB, free: 11.34 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001364/0.1126, allocations: 0.8267 MB / 0.5306 GB, free: 10.51 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001449/0.1128, allocations: 7.938 kB / 0.5306 GB, free: 10.5 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001741/0.1129, allocations: 55.39 kB / 0.5307 GB, free: 10.45 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003299/0.1133, allocations: 146.8 kB / 0.5308 GB, free: 10.3 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000232/0.1135, allocations: 111.8 kB / 0.5309 GB, free: 10.19 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005188/0.114, allocations: 494.3 kB / 0.5314 GB, free: 9.707 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001915/0.1142, allocations: 96.69 kB / 0.5315 GB, free: 9.609 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002459/0.1145, allocations: 203.1 kB / 0.5317 GB, free: 9.41 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002849/0.1147, allocations: 210.9 kB / 0.5319 GB, free: 9.203 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.175e-05/0.1148, allocations: 32 kB / 0.5319 GB, free: 9.172 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.562e-05/0.1149, allocations: 36 kB / 0.5319 GB, free: 9.137 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.414e-05/0.115, allocations: 83.62 kB / 0.532 GB, free: 9.055 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001884/0.1152, allocations: 218.7 kB / 0.5322 GB, free: 8.84 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004625/0.1156, allocations: 410 kB / 0.5326 GB, free: 8.438 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1156, allocations: 4 kB / 0.5326 GB, free: 8.434 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1156, allocations: 0 / 0.5326 GB, free: 8.434 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.1156, allocations: 4 kB / 0.5326 GB, free: 8.43 MB / 414.1 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.001248/0.1169, allocations: 0.6838 MB / 0.5333 GB, free: 7.715 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.1169, allocations: 12.03 kB / 0.5333 GB, free: 7.703 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.126e-05/0.1169, allocations: 4.844 kB / 0.5333 GB, free: 7.699 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.167e-05/0.117, allocations: 66.73 kB / 0.5334 GB, free: 7.625 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001235/0.1171, allocations: 56.59 kB / 0.5334 GB, free: 7.57 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004923/0.1176, allocations: 300.6 kB / 0.5337 GB, free: 7.25 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.724e-05/0.1177, allocations: 21.03 kB / 0.5337 GB, free: 7.23 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.364e-05/0.1177, allocations: 43.83 kB / 0.5338 GB, free: 7.188 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004927/0.1182, allocations: 297.9 kB / 0.5341 GB, free: 6.879 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.1182, allocations: 4 kB / 0.5341 GB, free: 6.875 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.503e-05/0.1183, allocations: 8 kB / 0.5341 GB, free: 6.867 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.1183, allocations: 15.92 kB / 0.5341 GB, free: 6.852 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003973/0.1187, allocations: 210.4 kB / 0.5343 GB, free: 6.648 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00169/0.1204, allocations: 1.041 MB / 0.5353 GB, free: 5.547 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003969/0.1208, allocations: 240.6 kB / 0.5355 GB, free: 5.305 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001907/0.1209, allocations: 104.8 kB / 0.5356 GB, free: 5.199 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.431e-05/0.121, allocations: 3.984 kB / 0.5356 GB, free: 5.195 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.415e-05/0.121, allocations: 46.5 kB / 0.5357 GB, free: 5.141 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.452e-06/0.121, allocations: 0 / 0.5357 GB, free: 5.141 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.001674/0.1227, allocations: 0.7892 MB / 0.5365 GB, free: 4.316 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.743e-05/0.1227, allocations: 55.41 kB / 0.5365 GB, free: 4.25 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003863/0.1231, allocations: 361.6 kB / 0.5369 GB, free: 3.883 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.833e-05/0.1231, allocations: 33.7 kB / 0.5369 GB, free: 3.844 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.1233, allocations: 208.6 kB / 0.5371 GB, free: 3.637 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.1234, allocations: 130.9 kB / 0.5372 GB, free: 3.508 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/0.1235, allocations: 66.06 kB / 0.5373 GB, free: 3.434 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.1237, allocations: 358.7 kB / 0.5376 GB, free: 3.074 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001783/0.1238, allocations: 88.7 kB / 0.5377 GB, free: 2.988 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002053/0.124, allocations: 133.5 kB / 0.5378 GB, free: 2.844 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003939/0.1244, allocations: 243.8 kB / 0.5381 GB, free: 2.59 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.1244, allocations: 3.938 kB / 0.5381 GB, free: 2.586 MB / 414.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009205/0.1254, allocations: 409.7 kB / 0.5385 GB, free: 2.176 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.1254, allocations: 4 kB / 0.5385 GB, free: 2.172 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.1254, allocations: 0 / 0.5385 GB, free: 2.172 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005854/0.126, allocations: 124.8 kB / 0.5386 GB, free: 2.047 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004274/0.1264, allocations: 95.88 kB / 0.5387 GB, free: 1.953 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1799/0.3063, allocations: 3.131 MB / 0.5417 GB, free: 21.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002869/0.3066, allocations: 12.33 kB / 0.5417 GB, free: 21.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.322e-05/0.3066, allocations: 20.09 kB / 0.5418 GB, free: 21.5 MB / 414.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 (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001463/0.3067, allocations: 154.3 kB / 0.5419 GB, free: 21.39 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.907e-05/0.3068, allocations: 39.92 kB / 0.5419 GB, free: 21.39 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004585/0.3073, allocations: 299.7 kB / 0.5422 GB, free: 21.35 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.3073, allocations: 4.156 kB / 0.5422 GB, free: 21.35 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.3073, allocations: 3.453 kB / 0.5422 GB, free: 21.35 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.3073, allocations: 3.156 kB / 0.5422 GB, free: 21.35 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000916/0.3082, allocations: 0.7223 MB / 0.5429 GB, free: 21.08 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.3082, allocations: 3.844 kB / 0.5429 GB, free: 21.08 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003734/0.3086, allocations: 76.98 kB / 0.543 GB, free: 21.08 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.3086, allocations: 1.844 kB / 0.543 GB, free: 21.08 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.046e-05/0.3086, allocations: 14.97 kB / 0.543 GB, free: 21.08 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.3086, allocations: 2.406 kB / 0.543 GB, free: 21.08 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3086, allocations: 4.344 kB / 0.543 GB, free: 21.08 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005806/0.3092, allocations: 496.8 kB / 0.5435 GB, free: 20.94 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/0.3093, allocations: 60.44 kB / 0.5436 GB, free: 20.94 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.573e-05/0.3093, allocations: 10.8 kB / 0.5436 GB, free: 20.94 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002001/0.3095, allocations: 12.58 kB / 0.5436 GB, free: 20.94 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.421e-05/0.3096, allocations: 20.11 kB / 0.5436 GB, free: 20.94 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/0.3096, allocations: 12.61 kB / 0.5436 GB, free: 20.94 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002398/0.3098, allocations: 254.6 kB / 0.5439 GB, free: 20.8 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3098, allocations: 0 / 0.5439 GB, free: 20.8 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003646/0.3102, allocations: 91.5 kB / 0.544 GB, free: 20.79 MB / 414.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 34 * 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.000753/0.311, allocations: 1.039 MB / 0.545 GB, free: 20 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008341/0.3118, allocations: 428.2 kB / 0.5454 GB, free: 19.8 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.3118, allocations: 0 / 0.5454 GB, free: 19.8 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001855/0.312, allocations: 120 kB / 0.5455 GB, free: 19.76 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000467/0.3124, allocations: 78.3 kB / 0.5456 GB, free: 19.73 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004963/0.3174, allocations: 3.973 MB / 0.5494 GB, free: 17.37 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002298/0.3176, allocations: 0.818 MB / 0.5502 GB, free: 16.66 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001574/0.3178, allocations: 42.81 kB / 0.5503 GB, free: 16.66 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001769/0.318, allocations: 142.4 kB / 0.5504 GB, free: 16.55 MB / 414.1 MB Notification: Performance of SimCode: time 5.61e-07/0.318, allocations: 0 / 0.5504 GB, free: 16.55 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03338/0.3514, allocations: 9.152 MB / 0.5594 GB, free: 14.94 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.64/12.99, allocations: 10.12 kB / 0.5594 GB, free: 14.93 MB / 414.1 MB " [Timeout remaining time 647] (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/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6_fmu --startTime=0 --stopTime=40 --stepSize=0.016 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.714846289949492] Failed to read output from testmodel.py, exit status != 0: 13.166574665112421 13.186910307 13.067491773 Calling exit ...